Source

is-solver / compile_instructions.txt

source /opt/intel/bin/compilervars.sh intel64
export EPATH=/home/stevejb/myhg/eigentrial/eigen-eigen-304c88ca3aff

## Here is a link line:
## what do I do with it?
-L$(MKLROOT)/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-eig-test.cpp -o sjb-eig-test -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-make-states.cpp -o sjb-make-states -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O2

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-etest.cpp -o sjb-etest -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O2

export EPATH=/home/stevejb/myhg/is-solver
icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isA.cpp -o solve_isA -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O2

export OMP_NUM_THREADS=4
icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isA.cpp -o solve_isA-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 


export EPATH=/home/stevejb/myhg/is-solver
export OMP_NUM_THREADS=4



icpc -I 
$EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-test-broadcast.cpp -o sjb-test-broadcast -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 


icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-test-inplace.cpp -o sjb-test-inplace-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 


export OMP_NUM_THREADS=8
g++ -I $EPATH -DMKL_ILP64 sjb-test-inplace.cpp -o sjb-test-inplace-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3

export OMP_NUM_THREADS=16
g++ -I $EPATH -DMKL_ILP64 solve_isA.cpp -o solve_isA-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3

g++ -I $EPATH -DMKL_ILP64 solve_isB.cpp -o solve_isB-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3

g++ -I $EPATH -DMKL_ILP64 solve_isB.cpp -o solve_isB-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm 


icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isB.cpp -o solve_isB-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isB_dbg.cpp -o solve_isB_dbg-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isB_dbg.cpp -o solve_isB_dbg-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -msse4

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isB_dbg_pwhile.cpp -o solve_isB_dbg_pwhile-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -msse4

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isC.cpp -o solve_isC-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx -ltrng4

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_test.cpp -o solve_test-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx


icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-vecvartest.cpp -o sjb-vecvartest-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x 

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_DDW.cpp -o solve_DDW-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x  -xavx -mavx

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_DDW.cpp -o solve_DDW-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x  

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-valiter-demo.cpp -o sjb-valiter-demo-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -msse4

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include rosen.cpp -o rosen-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -msse4

+++++++

SSE4

g++ -I $EPATH -DMKL_ILP64 solve_isB.cpp -o solve_isB-gpp-sse4 -DMKL_ILP64  -m64 -msse4 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3



===========================================

export OMP_NUM_THREADS=32
export EPATH=/home/ec2-user/is-solver
source /opt/intel/bin/compilervars.sh intel64


g++ -I $EPATH -DMKL_ILP64 solve_isA.cpp -o solve_isA-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3

g++ -I $EPATH -DMKL_ILP64 solve_helpme.cpp -o solve_helpme-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3

g++ -I $EPATH -DMKL_ILP64 sjb-powtest.cpp -o sjb-powtest-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3


export OMP_NUM_THREADS=4

export EPATH=/home/stevejb/myhg/is-solver
export OMP_NUM_THREADS=4
source /opt/intel/bin/compilervars.sh intel64

g++ -I $EPATH -DMKL_ILP64 sjb-simple.cpp -o sjb-simple-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-simple.cpp -o sjb-simple-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -msse4

g++ -I $EPATH -DMKL_ILP64 sjb-tbtest.cpp -o sjb-tbtest-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3




==== 
MWE

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include ice-mwe.cpp -o ice-mwe-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include ice-mwe.cpp -o ice-mwe-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm 


g++ -I $EPATH -DMKL_ILP64 ice-mwe.cpp -o ice-mwe-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3



======= C++ tester



icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include test_csv_parse.cpp -o test_csv_parse -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include indep_sim.cpp -o indep_sim -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx -ltrng4

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include e_serialize.cpp -o e_serialize -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx

g++ -I $EPATH -DMKL_ILP64 e_serialize.cpp -o e_serialize-gpp -DMKL_ILP64  -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -O3


icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjb-meantest.cpp -o sjb-meantest -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx -ltrng4 

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjbstlmaptest.cpp -o sjbstlmaptest -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx -ltrng4 

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isC.cpp -o solve_isC-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx -ltrng4

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include impulser.cpp -o impulser-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx -ltrng4



icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isC.cpp -o solve_isC-test -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O2 -std=c++0x -xavx -mavx -ltrng4 -g -shared-intel -shared-libgcc

icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include sjbtestfileexists.cpp -o sjbtestfileexists-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O2 -std=c++0x -xavx -mavx -ltrng4 -g -shared-intel -shared-libgcc


icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include test_trng.cpp -o test_trng-icpc -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx -ltrng4


icpc -I $EPATH -DMKL_ILP64 -I$MKLROOT/include solve_isC.cpp -o solve_isC-icpc-smallz -L$MKLROOT/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm -O3 -std=c++0x -xavx -mavx -ltrng4