2015-05-15 12:21:10 +01:00
|
|
|
#!/bin/bash
|
|
|
|
WD=$1
|
|
|
|
echo $WD
|
|
|
|
case $WD in
|
2015-05-15 14:41:59 +01:00
|
|
|
build-g++-sse4)
|
|
|
|
CXX=g++-5 ../configure --enable-simd=SSE4 CXXFLAGS="-msse4 -O3 -std=c++11" --enable-comms=none
|
|
|
|
;;
|
2015-05-15 12:21:10 +01:00
|
|
|
build-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
|
|
|
;;
|
|
|
|
build-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
|
|
|
;;
|
|
|
|
build-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
|
|
|
;;
|
|
|
|
build-clang-avx)
|
|
|
|
CXX=clang++ ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" --enable-comms=none
|
|
|
|
;;
|
|
|
|
build-clang-avx-openmp)
|
|
|
|
CXX=clang-omp++ ../configure --enable-simd=AVX CXXFLAGS="-mavx -fopenmp -O3 -std=c++11" LDFLAGS="-fopenmp" --enable-comms=none
|
|
|
|
;;
|
|
|
|
build-clang-avx-openmp-mpi)
|
|
|
|
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
|
|
|
|
;;
|
|
|
|
build-clang-avx-mpi)
|
|
|
|
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
|
|
|
|
;;
|
|
|
|
esac
|