Skip to content

Commit

Permalink
Updating the Tioga superbuild scripts to force the runpaths to be pro…
Browse files Browse the repository at this point in the history
…perly set.
  • Loading branch information
bvanessen committed Jun 17, 2024
1 parent 518e8ef commit 991cd65
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
44 changes: 44 additions & 0 deletions scripts/superbuild/ci/ci_pascal_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
################################################################################
## Copyright (c) 2014-2024, Lawrence Livermore National Security, LLC.
## Produced at the Lawrence Livermore National Laboratory.
## Written by the LBANN Research Team (B. Van Essen, et al.) listed in
## the CONTRIBUTORS file. <[email protected]>
##
## LLNL-CODE-697807.
## All rights reserved.
##
## This file is part of LBANN: Livermore Big Artificial Neural Network
## Toolkit. For details, see http://software.llnl.gov/LBANN or
## https://github.com/LLNL/LBANN.
##
## Licensed under the Apache License, Version 2.0 (the "Licensee"); you
## may not use this file except in compliance with the License. You may
## obtain a copy of the License at:
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
## implied. See the License for the specific language governing
## permissions and limitations under the license.
################################################################################

# Improve debugging info and remove some misguided warnings. These are
# passed only to the LBANN stack.
EXTRA_CXX_FLAGS="-g3 -Wno-deprecated-declarations"
EXTRA_CUDA_FLAGS="-g3 -Wno-deprecated-declarations"

# Prefer RPATH to RUNPATH (stability over flexibility)
EXTRA_LINK_FLAGS="-Wl,--disable-new-dtags"

# Set this to the CUDA GPU arch(s) to support (example set for Lassen/Sierra)
CUDA_GPU_ARCH=60

# Set to the preferred install directory
INSTALL_ROOT=/usr/workspace/lbann/ci_stable_dependencies/pascal/cuda-11.8.0
INSTALL_PREFIX_EXTERNALS=${INSTALL_ROOT}/openmpi-4.1.2

# Location of external packages
export CMAKE_PREFIX_PATH=${INSTALL_ROOT}/cudnn-8.9.4:${INSTALL_ROOT}/nccl-2.19.4
CMAKE_CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH//:/;}
2 changes: 2 additions & 0 deletions scripts/superbuild/ci/ci_tioga_core_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ cmake \
-D CMAKE_PREFIX_PATH=${CMAKE_CMAKE_PREFIX_PATH} \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
-D CMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \
-D CMAKE_INSTALL_RPATH=${EXTRA_RPATHS} \
\
-D CMAKE_C_COMPILER=$(which amdclang) \
-D CMAKE_CXX_COMPILER=$(which amdclang++) \
Expand Down
2 changes: 2 additions & 0 deletions scripts/superbuild/ci/ci_tioga_dha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ cmake \
-D CMAKE_PREFIX_PATH=${CMAKE_CMAKE_PREFIX_PATH} \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
-D CMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \
-D CMAKE_INSTALL_RPATH=${EXTRA_RPATHS} \
\
-D CMAKE_C_COMPILER=$(which amdclang) \
-D CMAKE_CXX_COMPILER=$(which amdclang++) \
Expand Down
1 change: 1 addition & 0 deletions scripts/superbuild/ci/ci_tioga_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ EXTRA_HIP_FLAGS="-g3 -Wno-deprecated-declarations"

# Prefer RPATH to RUNPATH (stability over flexibility)
EXTRA_LINK_FLAGS="-Wl,--disable-new-dtags"
EXTRA_RPATHS=${CRAYLIBS_X86_64}

# Set this to the AMD GPU arch(s) to support (example set for Crusher/Frontier/Tioga)
AMD_GPU_ARCH=gfx90a,gfx942
Expand Down

0 comments on commit 991cd65

Please sign in to comment.