-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CUDA detection in CMake script
- Loading branch information
1 parent
1e6a699
commit a6ab342
Showing
3 changed files
with
87 additions
and
20 deletions.
There are no files selected for viewing
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 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 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
rm -r build install | ||
|
||
# No MPI, yes GPU | ||
CC=gcc FC=gfortran \ | ||
BML_GPU=yes GPU_ARCH=sm_60 \ | ||
CUDA_TOOLKIT_ROOT_DIR=/projects/opt/centos7/cuda/9.0 \ | ||
BLAS_VENDOR=Intel CMAKE_BUILD_TYPE=Release \ | ||
BML_OPENMP=yes \ | ||
CMAKE_INSTALL_PREFIX=/home/smm/bml/bml/install \ | ||
./build.sh configure | ||
|
||
# No MPI | ||
#CC=gcc FC=gfortran BLAS_VENDOR=Intel CMAKE_BUILD_TYPE=Release BML_OPENMP=yes CMAKE_INSTALL_PREFIX=/home/smm/bml/bml/install ./build.sh configure | ||
|
||
# With MPI Release | ||
#CC=mpicc FC=mpif90 BLAS_VENDOR=Intel CMAKE_BUILD_TYPE=Release BML_OPENMP=yes BML_MPI=yes CMAKE_INSTALL_PREFIX=/home/smm/bml/bml/install ./build.sh configure | ||
|
||
# With MPI Debug | ||
#CC=mpicc FC=mpif90 BLAS_VENDOR=Intel CMAKE_BUILD_TYPE=Debug BML_OPENMP=yes BML_MPI=yes CMAKE_INSTALL_PREFIX=/home/smm/bml/bml/install ./build.sh configure | ||
|
||
# With MPI Release setenv | ||
#setenv CC mpicc;setenv FC mpif90;setenv BLAS_VENDOR Intel;setenv CMAKE_BUILD_Type Release;setenv BML_OPENMP yes;setenv BML_MPI yes;setenv CMAKE_INSTALL_PREFIX /usr/projects/infmodels/smm/qmd/bml/bml/install; setenv BML_TESTING yes; ./build.sh configure |