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-07-01 22:48:58 +01:00
|
|
|
g++-avx)
|
|
|
|
CXX=g++ ../../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
|
|
|
;;
|
|
|
|
g++-avx-openmp)
|
|
|
|
CXX=g++ ../../configure --enable-simd=AVX CXXFLAGS="-mavx -fopenmp -O3 -std=c++11" LIBS="-fopenmp -lgmp -lmpfr" --enable-comms=none
|
|
|
|
;;
|
|
|
|
g++5-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-07-01 22:48:58 +01:00
|
|
|
g++5-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)
|
2015-09-25 16:55:04 +01:00
|
|
|
CXX=icpc ../../configure --enable-precision=single --enable-simd=AVX CXXFLAGS="-mavx -fopenmp -O3 -std=c++11" LIBS="-fopenmp -lgmp -lmpfr" --enable-comms=mpi
|
2015-05-23 09:35:37 +01:00
|
|
|
;;
|
2015-05-16 06:40:10 +01:00
|
|
|
icpc-avx2)
|
2015-09-25 16:55:04 +01:00
|
|
|
CXX=icpc ../../configure --enable-simd=AVX2 CXXFLAGS="-march=core-avx2 -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-09-23 13:23:45 +01:00
|
|
|
CXX=icpc ../../configure --host=none --enable-simd=IMCI CXXFLAGS="-mmic -O3 -std=c++11" LDFLAGS=-mmic LIBS="-lgmp -lmpfr" --enable-comms=none
|
|
|
|
;;
|
|
|
|
icpc-mic-avx512)
|
|
|
|
CXX=icpc ../../configure --host=none --enable-simd=IMCI CXXFLAGS="-xCOMMON_AVX512 -O3 -std=c++11" LDFLAGS=-xCOMMON_AVX512 LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-15 12:21:10 +01:00
|
|
|
;;
|
2015-05-19 13:57:35 +01:00
|
|
|
clang-sse)
|
2015-09-25 16:55:04 +01:00
|
|
|
CXX=clang++ ../../configure --enable-precision=single --enable-simd=SSE4 CXXFLAGS="-msse4 -O3 -std=c++11" LIBS="-lgmp -lmpfr" --enable-comms=none
|
2015-05-19 13:57:35 +01:00
|
|
|
;;
|
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-07-01 22:48:58 +01:00
|
|
|
clang-xc30)
|
|
|
|
CXX=$HOME/Clang/install/bin/clang++ ../../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11 -I/opt/gcc/4.9.2/snos/include/g++/x86_64-suse-linux/ -I/opt/gcc/4.9.2/snos/include/g++/ " LDFLAGS="" LIBS="-lgmp -lmpfr" --enable-comms=none
|
|
|
|
;;
|
|
|
|
clang-xc30-openmp)
|
|
|
|
CXX=$HOME/Clang/install/bin/clang++ ../../configure --enable-simd=AVX CXXFLAGS="-mavx -fopenmp -O3 -std=c++11 -I/opt/gcc/4.9.2/snos/include/g++/x86_64-suse-linux/ -I/opt/gcc/4.9.2/snos/include/g++/ " LDFLAGS="-fopenmp" LIBS="-lgmp -lmpfr" --enable-comms=none
|
|
|
|
;;
|
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-08-12 09:49:33 +01:00
|
|
|
clang-avx2)
|
|
|
|
CXX=clang++ ../../configure --enable-simd=AVX2 CXXFLAGS="-mavx2 -mfma -O3 -std=c++11" LDFLAGS="-L/usr/local/lib/" LIBS="-lgmp -lmpfr" --enable-comms=none
|
|
|
|
;;
|
2015-05-15 12:21:10 +01:00
|
|
|
esac
|
2015-05-16 07:16:45 +01:00
|
|
|
echo -e $NORMAL
|