Compile FlameMaster
The snippet can be accessed without any authentication.
Authored by
Raymond Langer
The following command can be used to compile FlameMaster with reasonable optimization options
Intel:
CC=icc CXX=icpc FC=ifort \
cmake ../Repository -DCMAKE_LINKER=/opt/intel/bin/xild \
-DCMAKE_AR=/opt/intel/bin/xiar \
-DCMAKE_BUILD_TYPE=Release \
-DINSTALL_EIGEN=OFF \
-DEIGEN_INTEGRATION=ON \
-DCOMBUSTION_LIBS=ON \
-DCMAKE_CXX_FLAGS_RELEASE="-prof-use -ipo -inline-factor=200 -O3 -DNDEBUG -ffast-math -march=skylake -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2" \
-DCMAKE_C_FLAGS_RELEASE="-prof-use -ipo -inline-factor=200 -O3 -DNDEBUG -ffast-math -march=skylake -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2" \
-DCMAKE_Fortran_FLAGS_RELEASE="-prof-use -ipo -inline-factor=200 -O3 -DNDEBUG -march=skylake -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2"
make install -j16
GCC:
CC=/usr/local/opt/gcc/bin/gcc-9 CXX=/usr/local/opt/gcc/bin/g++-9 FC=gfortran LDFALGS="-flto" \
cmake ../Repository -DCMAKE_BUILD_TYPE=Release \
-DINSTALL_EIGEN=OFF \
-DEIGEN_INTEGRATION=ON \
-DCOMBUSTION_LIBS=ON \
-DCMAKE_CXX_FLAGS_RELEASE="-Ofast -DNDEBUG -ffast-math -march=native -funroll-loops -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -fargument-noalias-global -fargument-noalias -finline-limit=200 -flto" \
-DCMAKE_C_FLAGS_RELEASE="-Ofast -DNDEBUG -ffast-math -march=native -funroll-loops -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -fargument-noalias-global -fargument-noalias -finline-limit=200 -flto" \
-DCMAKE_Fortran_FLAGS_RELEASE="-Ofast -DNDEBUG -march=native -funroll-loops -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -fargument-noalias-global -fargument-noalias -finline-limit=200 -flto"
make install -j16
Cluster:
module load cmake intel gcc/8
CC=icc CXX=icpc FC=ifort cmake ../Repository -DCMAKE_BUILD_TYPE=Release -DINSTALL_EIGEN=ON -DEIGEN_INTEGRATION=ON -DCOMBUSTION_LIBS=ON -DCMAKE_CXX_FLAGS_RELEASE=" -ipo -inline-factor=200 -O3 -DNDEBUG -ffast-math -march=native -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2" -DCMAKE_C_FLAGS_RELEASE=" -ipo -inline-factor=200 -O3 -DNDEBUG -ffast-math -march=native -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2" -DCMAKE_Fortran_FLAGS_RELEASE=" -ipo -inline-factor=200 -O3 -DNDEBUG -march=native -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2"
make install -j16
compile-fast-fm.sh 1.17 KiB
CC=icc CXX=icpc FC=ifort \
cmake ../Repository -DCMAKE_LINKER=/opt/intel/bin/xild \
-DCMAKE_AR=/opt/intel/bin/xiar \
-DCMAKE_BUILD_TYPE=Release \
-DINSTALL_EIGEN=OFF \
-DEIGEN_INTEGRATION=ON \
-DCOMBUSTION_LIBS=ON \
-DCMAKE_CXX_FLAGS_RELEASE="-prof-use -ipo -inline-factor=200 -O3 -DNDEBUG -ffast-math -march=skylake -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2" \
-DCMAKE_C_FLAGS_RELEASE="-prof-use -ipo -inline-factor=200 -O3 -DNDEBUG -ffast-math -march=skylake -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2" \
-DCMAKE_Fortran_FLAGS_RELEASE="-prof-use -ipo -inline-factor=200 -O3 -DNDEBUG -march=skylake -DMKL_DIRECT_CALL_SEQ -DMKL_DIRECT_CALL_SEQ_JIT -ftz -fno-alias -fno-fnalias -unroll-aggressive -no-prec-div -no-prec-sqrt -fast-transcendentals -fp-model fast=2"
make install -j16
Please register or sign in to comment