2015-05-15 12:21:10 +01:00
|
|
|
#!/bin/bash
|
|
|
|
WD=$1
|
|
|
|
echo $WD
|
|
|
|
case $WD in
|
2015-05-16 06:40:10 +01:00
|
|
|
g++-sse4)
|
2015-05-15 14:41:59 +01:00
|
|
|
CXX=g++-5 ../configure --enable-simd=SSE4 CXXFLAGS="-msse4 -O3 -std=c++11" --enable-comms=none
|
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
g++-avx)
|
|
|
|
CXX=g++-5 ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" --enable-comms=none
|
|
|
|
;;
|
|
|
|
icpc-avx)
|
2015-05-15 12:33:18 +01:00
|
|
|
CXX=icpc ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
icpc-avx2)
|
|
|
|
CXX=icpc ../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -O3 -std=c++11" --enable-comms=none
|
|
|
|
;;
|
|
|
|
icpc-avx512)
|
2015-05-15 12:33:18 +01:00
|
|
|
CXX=icpc ../configure --enable-simd=AVX512 CXXFLAGS="-xCOMMON-AVX512 -O3 -std=c++11" --host=none --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
icpc-mic)
|
2015-05-15 12:33:18 +01:00
|
|
|
CXX=icpc ../configure --host=none --enable-simd=AVX512 CXXFLAGS="-mmic -O3 -std=c++11" LDFLAGS=-mmic --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx)
|
2015-05-15 12:21:10 +01:00
|
|
|
CXX=clang++ ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" --enable-comms=none
|
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx2)
|
|
|
|
CXX=clang++ ../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -O3 -std=c++11" --enable-comms=none
|
|
|
|
;;
|
|
|
|
clang-avx-openmp)
|
2015-05-15 12:21:10 +01:00
|
|
|
CXX=clang-omp++ ../configure --enable-simd=AVX CXXFLAGS="-mavx -fopenmp -O3 -std=c++11" LDFLAGS="-fopenmp" --enable-comms=none
|
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx2-openmp)
|
|
|
|
CXX=clang-omp++ ../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -fopenmp -O3 -std=c++11" LDFLAGS="-fopenmp" --enable-comms=none
|
|
|
|
;;
|
|
|
|
clang-avx-openmp-mpi)
|
2015-05-15 12:21:10 +01:00
|
|
|
CXX=clang-omp++ ../configure --enable-simd=AVX CXXFLAGS="-mavx -fopenmp -O3 -I/opt/local/include/openmpi-mp/ -std=c++11" LDFLAGS=-L/opt/local/lib/openmpi-mp/ LIBS="-lmpi -lmpi_cxx -fopenmp" --enable-comms=mpi
|
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx2-openmp-mpi)
|
|
|
|
CXX=clang-omp++ ../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -fopenmp -O3 -I/opt/local/include/openmpi-mp/ -std=c++11" LDFLAGS=-L/opt/local/lib/openmpi-mp/ LIBS="-lmpi -lmpi_cxx -fopenmp" --enable-comms=mpi
|
|
|
|
;;
|
|
|
|
clang-avx-mpi)
|
2015-05-15 12:21:10 +01:00
|
|
|
CXX=clang++ ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -I/opt/local/include/openmpi-mp/ -std=c++11" LDFLAGS=-L/opt/local/lib/openmpi-mp/ LIBS="-lmpi -lmpi_cxx " --enable-comms=mpi
|
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx2-mpi)
|
|
|
|
CXX=clang++ ../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -O3 -I/opt/local/include/openmpi-mp/ -std=c++11" LDFLAGS=-L/opt/local/lib/openmpi-mp/ LIBS="-lmpi -lmpi_cxx " --enable-comms=mpi
|
|
|
|
;;
|
2015-05-15 12:21:10 +01:00
|
|
|
esac
|