mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Convenience multi-compiler build with out of source compile
This commit is contained in:
parent
0b4d3544b9
commit
022c12b8e4
11
build-all
Executable file
11
build-all
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
DIRS="build-clang-avx build-clang-avx-openmp build-clang-avx-openmp-mpi build-clang-avx-mpi build-icpc-avx512 build-icpc-avx "
|
||||||
|
|
||||||
|
for D in $DIRS
|
||||||
|
do
|
||||||
|
echo $D
|
||||||
|
mkdir -p $D
|
||||||
|
cd $D
|
||||||
|
make clean all -j 8
|
||||||
|
cd ..
|
||||||
|
done
|
11
configure-all
Executable file
11
configure-all
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
DIRS="build-icpc-avx build-icpc-avx512 build-clang-avx build-clang-avx-openmp build-clang-avx-openmp-mpi build-clang-avx-mpi"
|
||||||
|
|
||||||
|
for D in $DIRS
|
||||||
|
do
|
||||||
|
echo $D
|
||||||
|
mkdir -p $D
|
||||||
|
cd $D
|
||||||
|
../configure-commands $D
|
||||||
|
cd ..
|
||||||
|
done
|
34
configure-commands
Normal file → Executable file
34
configure-commands
Normal file → Executable file
@ -1,8 +1,26 @@
|
|||||||
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" --enable-comms=mpi
|
#!/bin/bash
|
||||||
|
WD=$1
|
||||||
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
|
echo $WD
|
||||||
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
|
case $WD in
|
||||||
CXX=clang++ ./configure --enable-simd=AVX CXXFLAGS="-mavx -g -I/opt/local/include/openmpi-mp/ -std=c++11" LDFLAGS=-L/opt/local/lib/openmpi-mp/ LIBS="-lmpi -lmpi_cxx" --enable-comms=mpi
|
build-icpc-avx)
|
||||||
CXX=clang++ ./configure --enable-simd=AVX CXXFLAGS="-mavx -g -std=c++11" LDFLAGS= LIBS=-lmpi --enable-comms=fake
|
CXX=icpc ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -I -std=c++11" --enable-comms=none
|
||||||
CXX=clang++ ./configure --enable-simd=AVX CXXFLAGS="-mavx -g -std=c++11" LDFLAGS= LIBS=-lmpi --enable-comms=none
|
;;
|
||||||
CXX=/usr/local/clang-3.7/bin/clang++ ./configure --enable-simd=AVX512 CXXFLAGS="-mavx512f -O3 -std=c++11" LDFLAGS= LIBS= --enable-comms=none
|
build-icpc-avx512)
|
||||||
|
CXX=icpc ../configure --enable-simd=AVX512 CXXFLAGS="-xCOMMON-AVX512 -O3 -I -std=c++11" --host=none --enable-comms=none
|
||||||
|
;;
|
||||||
|
build-icpc-mic)
|
||||||
|
CXX=icpc ../configure --host=none --enable-simd=AVX512 CXXFLAGS="-mmic -O3 -I -std=c++11" LDFLAGS=-mmic --enable-comms=none
|
||||||
|
;;
|
||||||
|
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
|
||||||
|
10
configure-mic
Executable file
10
configure-mic
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
DIRS="build-icpc-mic"
|
||||||
|
|
||||||
|
for D in $DIRS
|
||||||
|
do
|
||||||
|
mkdir -p $D
|
||||||
|
cd $D
|
||||||
|
../configure-commands
|
||||||
|
cd ..
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user