2015-05-15 12:21:10 +01:00
|
|
|
#!/bin/bash
|
|
|
|
WD=$1
|
2015-05-16 07:16:45 +01:00
|
|
|
BLACK="\033[30m"
|
|
|
|
RED="\033[31m"
|
|
|
|
GREEN="\033[32m"
|
|
|
|
YELLOW="\033[33m"
|
|
|
|
BLUE="\033[34m"
|
|
|
|
PINK="\033[35m"
|
|
|
|
CYAN="\033[36m"
|
|
|
|
WHITE="\033[37m"
|
|
|
|
NORMAL="\033[0;39m"
|
|
|
|
echo
|
|
|
|
echo -e $RED ==============================
|
|
|
|
echo -e $GREEN $WD
|
|
|
|
echo -e $RED ==============================
|
|
|
|
echo -e $YELLOW
|
|
|
|
|
2015-05-15 12:21:10 +01:00
|
|
|
case $WD in
|
2015-05-16 06:40:10 +01:00
|
|
|
g++-sse4)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=g++-5 ../../configure --enable-simd=SSE4 CXXFLAGS="-msse4 -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-15 14:41:59 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
g++-avx)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=g++-5 ../../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-16 06:40:10 +01:00
|
|
|
;;
|
|
|
|
icpc-avx)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=icpc ../../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-23 09:35:37 +01:00
|
|
|
icpc-avx-openmp-mpi)
|
|
|
|
CXX=icpc ../../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 -lgmp -lmpfr" --enable-comms=mpi
|
|
|
|
;;
|
|
|
|
icpc-avx-openmp)
|
|
|
|
CXX=icpc ../../configure --enable-simd=AVX CXXFLAGS="-mavx -fopenmp -O3 -std=c++11" LIBS="-fopenmp -lgmp -lmpfr" --enable-comms=mpi
|
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
icpc-avx2)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=icpc ../../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-16 06:40:10 +01:00
|
|
|
;;
|
|
|
|
icpc-avx512)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=icpc ../../configure --enable-simd=AVX512 CXXFLAGS="-xCOMMON-AVX512 -O3 -std=c++11" --host=none LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
icpc-mic)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=icpc ../../configure --host=none --enable-simd=AVX512 CXXFLAGS="-mmic -O3 -std=c++11" LDFLAGS=-mmic LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-19 13:57:35 +01:00
|
|
|
clang-sse)
|
|
|
|
CXX=clang++ ../../configure --enable-simd=SSE4 CXXFLAGS="-msse4 -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=clang++ ../../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx2)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=clang++ ../../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-16 06:40:10 +01:00
|
|
|
;;
|
|
|
|
clang-avx-openmp)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=clang-omp++ ../../configure --enable-simd=AVX CXXFLAGS="-mavx -fopenmp -O3 -std=c++11" LDFLAGS="-fopenmp" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx2-openmp)
|
2015-05-18 12:09:25 +01:00
|
|
|
CXX=clang-omp++ ../../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -fopenmp -O3 -std=c++11" LDFLAGS="-fopenmp" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-16 06:40:10 +01:00
|
|
|
;;
|
|
|
|
clang-avx-openmp-mpi)
|
2015-05-19 13:57:35 +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 -lgmp -lmpfr" --enable-comms=mpi
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx2-openmp-mpi)
|
2015-05-19 13:57:35 +01:00
|
|
|
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 -lgmp -lmpfr" --enable-comms=mpi
|
2015-05-16 06:40:10 +01:00
|
|
|
;;
|
|
|
|
clang-avx-mpi)
|
2015-05-19 13:57:35 +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 -lgmp -lmpfr" --enable-comms=mpi
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
clang-avx2-mpi)
|
2015-05-19 13:57:35 +01:00
|
|
|
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 -lgmp -lmpfr" --enable-comms=mpi
|
2015-05-16 06:40:10 +01:00
|
|
|
;;
|
2015-05-15 12:21:10 +01:00
|
|
|
esac
|
2015-05-16 07:16:45 +01:00
|
|
|
echo -e $NORMAL
|