Skip to content

Commit

Permalink
Updated Makefiles on ACF
Browse files Browse the repository at this point in the history
  • Loading branch information
wztzjhn committed Sep 19, 2017
1 parent 89099d5 commit 5a3c351
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 10 deletions.
8 changes: 4 additions & 4 deletions examples/trans_absent/platform_acf/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CXX = icpc
CPPFLAGS = -O2 -std=c++11 -traceback -DMKL_ILP64 \
CXX = g++
CPPFLAGS = -O2 -std=c++11 -DMKL_ILP64 -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${HOME}/opt/ARPACK_ILP64 -larpack -lgfortran \
-L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-L /sw/acf/boost/1.64.0/centos7.3_binary/lib -lboost_filesystem -lboost_system
-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-L${HOME}/installs/lib -lboost_filesystem -lboost_system

include ../object_list.txt

Expand Down
20 changes: 20 additions & 0 deletions examples/trans_absent/platform_acf/Makefile_intel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CXX = icpc
CPPFLAGS = -O2 -std=c++11 -traceback -DMKL_ILP64 \
-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${HOME}/opt/ARPACK_ILP64 -larpack -lgfortran \
-L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-L${HOME}/installs/lib -lboost_filesystem -lboost_system

include ../object_list.txt

all: $(EXEC)
@echo '************ COMPILED! ************'

%.x: %.cc
$(CXX) $(CPPFLAGS) $< $(LIBS) -o $@

clean:
$(RM) *.o *.x
8 changes: 4 additions & 4 deletions examples/trans_symmetric/platform_acf/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CXX = icpc
CPPFLAGS = -O2 -std=c++11 -traceback -DMKL_ILP64 \
CXX = g++
CPPFLAGS = -O2 -std=c++11 -DMKL_ILP64 -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${HOME}/opt/ARPACK_ILP64 -larpack -lgfortran \
-L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-L /sw/acf/boost/1.64.0/centos7.3_binary/lib -lboost_filesystem -lboost_system
-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-L${HOME}/installs/lib -lboost_filesystem -lboost_system

include ../object_list.txt

Expand Down
20 changes: 20 additions & 0 deletions examples/trans_symmetric/platform_acf/Makefile_intel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CXX = icpc
CPPFLAGS = -O2 -std=c++11 -traceback -DMKL_ILP64 \
-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${HOME}/opt/ARPACK_ILP64 -larpack -lgfortran \
-L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-L${HOME}/installs/lib -lboost_filesystem -lboost_system

include ../object_list.txt

all: $(EXEC)
@echo '************ COMPILED! ************'

%.x: %.cc
$(CXX) $(CPPFLAGS) $< $(LIBS) -o $@

clean:
$(RM) *.o *.x
26 changes: 26 additions & 0 deletions src/makefile_list/Makefile_acf_gcc_ILP64
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CXX = g++
CPPFLAGS = -O2 -std=c++11 -Wall -Wextra -DMKL_ILP64 -m64 -fopenmp \
-isystem ${MKLROOT}/include \
-isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig \
-isystem ${HOME}/installs/include
LIBS = -L${HOME}/opt/ARPACK_ILP64 -larpack -lgfortran \
-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-fopenmp \
-L${HOME}/installs/lib -lboost_filesystem -lboost_system

include makefile_list/object_list.txt

test: $(OBJS) test.o test_basis.o test_lanczos.o test_lattice.o test_operator.o
$(CXX) $(OBJS) test.o test_basis.o test_lanczos.o test_lattice.o test_operator.o $(LIBS) -o ../bin/test.x

libqbasis.a: $(OBJS)
ar rvs libqbasis.a $(OBJS)

install: libqbasis.a
$(RM) ${HOME}/installs/lib/libqbasis.*; cp libqbasis.a ${HOME}/installs/lib; cp qbasis.h ${HOME}/installs/include

%.o: %.cc
$(CXX) $(CPPFLAGS) -c -o $@ $<

clean:
$(RM) *.o
4 changes: 2 additions & 2 deletions src/makefile_list/Makefile_acf_intel_ILP64
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ CXX = icpc
CPPFLAGS = -O2 -std=c++11 -traceback -w3 -wd383,981 -DMKL_ILP64 -qopenmp \
-isystem ${MKLROOT}/include \
-isystem ${HOME}/opt/arpackpp/include -isystem ${HOME}/opt/arpackpp/examples/areig \
-isystem /sw/acf/boost/1.64.0/centos7.3_binary/include
-isystem ${HOME}/installs/include
LIBS = -L${HOME}/opt/ARPACK_ILP64 -larpack -lgfortran \
-L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl \
-qopenmp \
-L /sw/acf/boost/1.64.0/centos7.3_binary/lib -lboost_filesystem -lboost_system
-L${HOME}/installs/lib -lboost_filesystem -lboost_system

include makefile_list/object_list.txt

Expand Down

0 comments on commit 5a3c351

Please sign in to comment.