Skip to content

Commit

Permalink
Added build script for nvcc11 and xl compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornung67 committed Aug 31, 2020
1 parent 49edd98 commit f6e4567
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions scripts/lc-builds/blueos_nvcc11_xl-2020.08.24.sh
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} \
"$@" \
..

0 comments on commit f6e4567

Please sign in to comment.