Skip to content

Commit

Permalink
updated makefiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
wztzjhn committed Sep 16, 2017
1 parent afeebb4 commit b6daa83
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 17 deletions.
10 changes: 8 additions & 2 deletions examples/trans_absent/platform_linux/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CXX = g++
CPPFLAGS = -O2 -std=c++11 -I ${HOME}/installs/include -m64 -isystem ${MKLROOT}/include -isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L ${HOME}/installs/lib -lqbasis -L/usr/local/lib -larpack -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -fopenmp
CPPFLAGS = -O2 -std=c++11 -m64 \
-I ${HOME}/installs/include \
-isystem ${MKLROOT}/include \
-isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L ${HOME}/installs/lib -lqbasis \
-L/usr/local/lib -larpack \
-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-lboost_filesystem -lboost_system

include ../object_list.txt

Expand Down
10 changes: 8 additions & 2 deletions examples/trans_absent/platform_linux/Makefile_intel
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CXX = icpc
CPPFLAGS = -O2 -std=c++11 -I ${HOME}/installs/include -isystem ${MKLROOT}/include -isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L ${HOME}/installs/lib -lqbasis -L/usr/local/lib -larpack -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -qopenmp
CPPFLAGS = -O2 -std=c++11 \
-I ${HOME}/installs/include \
-isystem ${MKLROOT}/include \
-isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L ${HOME}/installs/lib -lqbasis \
-L/usr/local/lib -larpack \
-L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-lboost_filesystem -lboost_system

include ../object_list.txt

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// spinless fermion model on honeycomb lattice
// benchmarked with Capponi et al., prb 92, 085146 (2015), Fig. 2
int main() {
qbasis::enable_ckpt = true;
std::cout << std::setprecision(10);
// parameters
double t = 1;
Expand Down Expand Up @@ -115,11 +116,11 @@ int main() {
spinless.enumerate_basis_repr({m,n}, {Nfermion}, {N_total});

// generating matrix of the Hamiltonian in the subspace
spinless.generate_Ham_sparse_repr();
//spinless.generate_Ham_sparse_repr();
std::cout << std::endl;

// obtaining the lowest eigenvals of the matrix
spinless.locate_E0_repr(4,10);
spinless.locate_E0_lanczos(1);
std::cout << std::endl;

E0_list.push_back(spinless.eigenvals_repr[0]);
Expand Down
5 changes: 3 additions & 2 deletions examples/trans_symmetric/latt_square/square_Fermi_Hubbard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

// Fermi-Hubbard model on square lattice
int main() {
qbasis::enable_ckpt = true;
std::cout << std::setprecision(10);
// parameters
double t = 1;
Expand Down Expand Up @@ -104,11 +105,11 @@ int main() {
Hubbard.enumerate_basis_repr({m,n}, {Nup,Ndown}, {Nup_total,Ndn_total});

// generating matrix of the Hamiltonian in the subspace
Hubbard.generate_Ham_sparse_repr();
//Hubbard.generate_Ham_sparse_repr();
std::cout << std::endl;

// obtaining the lowest eigenvals of the matrix
Hubbard.locate_E0_repr(4,10);
Hubbard.locate_E0_lanczos(1);
std::cout << std::endl;

E0_list.push_back(Hubbard.eigenvals_repr[0]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

// Heisenberg model on triangular lattices
int main() {
qbasis::enable_ckpt = false;
std::cout << std::setprecision(10);
// parameters
double J1 = 1.0;
Expand Down Expand Up @@ -115,7 +116,7 @@ int main() {
std::cout << std::endl;

// obtaining the lowest eigenvals of the matrix
Heisenberg.locate_E0_repr(4,10);
Heisenberg.locate_E0_lanczos(1);
std::cout << std::endl;

E0_list.push_back(Heisenberg.eigenvals_repr[0]);
Expand Down
9 changes: 7 additions & 2 deletions examples/trans_symmetric/platform_linux/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CXX = g++
CPPFLAGS = -O2 -std=c++11 -I ${HOME}/installs/include -m64 -isystem ${MKLROOT}/include -isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L ${HOME}/installs/lib -lqbasis -L/usr/local/lib -larpack -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -fopenmp
CPPFLAGS = -O2 -std=c++11 -m64 \
-I ${HOME}/installs/include \
-isystem ${MKLROOT}/include -isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L ${HOME}/installs/lib -lqbasis \
-L/usr/local/lib -larpack \
-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-lboost_filesystem -lboost_system

include ../object_list.txt

Expand Down
10 changes: 8 additions & 2 deletions examples/trans_symmetric/platform_linux/Makefile_intel
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CXX = icpc
CPPFLAGS = -O2 -std=c++11 -I ${HOME}/installs/include -isystem ${MKLROOT}/include -isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L ${HOME}/installs/lib -lqbasis -L/usr/local/lib -larpack -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -qopenmp
CPPFLAGS = -O2 -std=c++11 \
-I ${HOME}/installs/include \
-isystem ${MKLROOT}/include \
-isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L ${HOME}/installs/lib -lqbasis \
-L/usr/local/lib -larpack \
-L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-lboost_filesystem -lboost_system

include ../object_list.txt

Expand Down
9 changes: 7 additions & 2 deletions src/makefile_list/Makefile_linux_gcc
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CXX = g++
CPPFLAGS = -Ofast -std=c++11 -Wall -Wextra -m64 -fopenmp -isystem ${MKLROOT}/include -isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -lboost_system -lboost_filesystem -L${HOME}/installs/lib -larpack -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -fopenmp
CPPFLAGS = -Ofast -std=c++11 -Wall -Wextra -m64 -fopenmp \
-isystem ${MKLROOT}/include \
-isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L${HOME}/installs/lib -larpack \
-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-fopenmp \
-lboost_system -lboost_filesystem

include makefile_list/object_list.txt

Expand Down
9 changes: 7 additions & 2 deletions src/makefile_list/Makefile_linux_intel
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CXX = icpc
CPPFLAGS = -Ofast -std=c++11 -w3 -wd383,981 -qopenmp -isystem ${MKLROOT}/include -isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L/usr/local/lib -larpack -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -qopenmp
CPPFLAGS = -Ofast -std=c++11 -w3 -wd383,981 -qopenmp \
-isystem ${MKLROOT}/include \
-isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig
LIBS = -L/usr/local/lib -larpack \
-L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-qopenmp \
-lboost_system -lboost_filesystem

include makefile_list/object_list.txt

Expand Down

0 comments on commit b6daa83

Please sign in to comment.