-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from hpc4cmb/mpitranslate
Change the way that MPI communicators are passed to C++
- Loading branch information
Showing
17 changed files
with
72 additions
and
361 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Pass extra configure options to this script, including | ||
# things like --prefix, --with-elemental, etc. | ||
# Pass extra cmake options to this script, including | ||
# things like -DCMAKE_INSTALL_PREFIX=/path/to/install, etc. | ||
|
||
OPTS="$@" | ||
opts="$@" | ||
|
||
export PYTHON=python3 | ||
export CC=mpiicc | ||
export CXX=mpiicpc | ||
export MPICC=mpiicc | ||
export MPICXX=mpiicpc | ||
export CFLAGS="-O3 -g -fPIC -pthread" | ||
export CXXFLAGS="-O3 -g -fPIC -pthread" | ||
export OPENMP_CFLAGS="-qopenmp" | ||
export OPENMP_CXXFLAGS="-qopenmp" | ||
|
||
./configure ${OPTS} \ | ||
--with-math="-limf -lsvml" \ | ||
--with-mkl="${MKLROOT}/lib/intel64" \ | ||
--with-tbb="${TBBROOT}/lib/intel64/gcc4.7" | ||
cmake \ | ||
-DCMAKE_C_COMPILER="icc" \ | ||
-DCMAKE_CXX_COMPILER="icpc" \ | ||
-DMPI_C_COMPILER="mpiicc" \ | ||
-DMPI_CXX_COMPILER="mpiicpc" \ | ||
-DCMAKE_C_FLAGS="-O3 -g -fPIC -pthread" \ | ||
-DCMAKE_CXX_FLAGS="-O3 -g -fPIC -pthread -std=c++11" \ | ||
-DBLAS_LIBRARIES=${MKLROOT}/lib/intel64/libmkl_rt.so \ | ||
-DLAPACK_LIBRARIES=${MKLROOT}/lib/intel64/libmkl_rt.so \ | ||
-DPYTHON_EXECUTABLE:FILEPATH=$(which python3) \ | ||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | ||
${opts} \ | ||
.. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.