-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added build script for nvcc11 and xl compiler.
- Loading branch information
1 parent
49edd98
commit f6e4567
Showing
1 changed file
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
############################################################################### | ||
# Copyright (c) 2016-20, Lawrence Livermore National Security, LLC | ||
# and RAJA project contributors. See the RAJA/COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (BSD-3-Clause) | ||
############################################################################### | ||
|
||
# | ||
## NOTE: After building code, you need to load the cuda 11 module to run | ||
## your code or RAJA tests | ||
# | ||
|
||
BUILD_SUFFIX=lc_blueos-nvcc11-xl_2020.08.24 | ||
|
||
rm -rf build_${BUILD_SUFFIX} 2>/dev/null | ||
mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} | ||
|
||
module load cmake/3.14.5 | ||
|
||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_COMPILER=/usr/tce/packages/xl/xl-2020.08.24/bin/xlc++_r \ | ||
-C ../host-configs/lc-builds/blueos/nvcc_xl_X.cmake \ | ||
-DENABLE_OPENMP=On \ | ||
-DENABLE_CUDA=On \ | ||
-DCUDA_TOOLKIT_ROOT_DIR=/usr/tce/packages/cuda/cuda-11.0.2 \ | ||
-DCMAKE_CUDA_COMPILER=/usr/tce/packages/cuda/cuda-11.0.2/bin/nvcc \ | ||
-DCUDA_ARCH=sm_70 \ | ||
-DCMAKE_CUDA_STANDARD="14" \ | ||
-DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ | ||
"$@" \ | ||
.. |