Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildsystem update for Frontier using the worldshared directory and rocm/5.6 #126

Merged
merged 7 commits into from
Mar 14, 2024
2 changes: 1 addition & 1 deletion buildsystem/clang-hip/cache.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
message(STATUS "Loading CMake cache for a GCC+CUDA+MPI build")
message(STATUS "Loading CMake cache for a GCC+HIP+MPI build")
cameronrutherford marked this conversation as resolved.
Show resolved Hide resolved

set(prefix ${CMAKE_SOURCE_DIR}/install)
message(STATUS "Setting initial installation prefix to ${prefix}")
Expand Down
8 changes: 4 additions & 4 deletions buildsystem/clang-hip/crusher/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ module reset
module load PrgEnv-gnu-amd
module load craype-x86-trento
module load craype-accel-amd-gfx90a
module load amd-mixed/5.2.0
module load amd-mixed/5.6.0
module load gcc/12.2.0
module load cray-mpich/8.1.25
module load libfabric

# Consider changing to $(which clang) as for deception
export CC=/opt/rocm-5.2.0/llvm/bin/amdclang
export CXX=/opt/rocm-5.2.0/llvm/bin/amdclang++
export FC=/opt/rocm-5.2.0/llvm/bin/amdflang
export CC=/opt/rocm-5.6.0/llvm/bin/amdclang
export CXX=/opt/rocm-5.6.0/llvm/bin/amdclang++
export FC=/opt/rocm-5.6.0/llvm/bin/amdflang

export EXTRA_CMAKE_ARGS="$EXTRA_CMAKE_ARGS -DEXAGO_CTEST_LAUNCH_COMMAND='srun'"
export EXTRA_CMAKE_ARGS="$EXTRA_CMAKE_ARGS -DAMDGPU_TARGETS='gfx90a'"
4 changes: 2 additions & 2 deletions buildsystem/spack/crusher/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Configure python
module load cray-python/3.9.12.1

BASE=/lustre/orion/eng145/proj-shared/$(whoami)
BASE=/lustre/orion/eng145/world-shared/$(whoami)

export SPACK_INSTALL=/lustre/orion/eng145/proj-shared/nkouk/spack-install
export SPACK_INSTALL=/lustre/orion/eng145/world-shared/spack-install
export SPACK_MODULES=modules
export SPACK_CACHE=$BASE/spack-cache
export SPACK_MIRROR=$BASE/spack-mirror
Expand Down
218 changes: 107 additions & 111 deletions buildsystem/spack/crusher/modules/dependencies.sh

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions buildsystem/spack/crusher/modules/exago.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module use -a /lustre/orion/eng145/proj-shared/nkouk/spack-install/modules/linux-sles15-zen3
# exago@=develop%clang@=14.0.0-rocm5.2.0-mixed~cuda+hiop~ipo+ipopt+logging+mpi~python+raja+rocm amdgpu_target=gfx90a build_system=cmake build_type=Release dev_path=/lustre/orion/scratch/nkouk/eng145/ExaGO generator=make arch=linux-sles15-zen3
module load exago/develop-clang-14.0.0-rocm5.2.0-mixed-stynmti
module use -a /lustre/orion/eng145/world-shared/spack-install/modules/linux-sles15-x86_64
# exago@=develop%clang@=16.0.0-rocm5.6.0-mixed~cuda+hiop~ipo+ipopt+logging+mpi~python+raja+rocm amdgpu_target=gfx90a build_system=cmake build_type=Release generator=make arch=linux-sles15-x86_64
module load exago/develop-clang-16.0.0-rocm5.6.0-mixed-kqa5be2
161 changes: 81 additions & 80 deletions buildsystem/spack/crusher/spack.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
spack:
specs:
- exago@develop%clang@14.0.0-rocm5.2.0-mixed amdgpu_target=gfx90a
- exago@develop%clang@16.0.0-rocm5.6.0-mixed amdgpu_target=gfx90a
^coinhsl%[email protected]
^openblas%[email protected]
^petsc%[email protected] target=x86_64
- [email protected]%[email protected]
view: false
concretizer:
unify: when_possible
reuse: false
compilers:
- compiler:
spec: clang@14.0.0-rocm5.2.0-mixed
spec: clang@16.0.0-rocm5.6.0-mixed
paths:
cc: /opt/rocm-5.2.0/llvm/bin/amdclang
cxx: /opt/rocm-5.2.0/llvm/bin/amdclang++
f77: /opt/rocm-5.2.0/llvm/bin/amdflang
fc: /opt/rocm-5.2.0/llvm/bin/amdflang
cc: /opt/rocm-5.6.0/llvm/bin/amdclang
cxx: /opt/rocm-5.6.0/llvm/bin/amdclang++
f77: /opt/rocm-5.6.0/llvm/bin/amdflang
fc: /opt/rocm-5.6.0/llvm/bin/amdflang
flags: {}
operating_system: sles15
target: x86_64
modules:
- PrgEnv-gnu-amd
- cray-mpich/8.1.25
- amd-mixed/5.2.0
- amd-mixed/5.6.0
- gcc/12.2.0
- craype-accel-amd-gfx90a
- craype-x86-trento
Expand All @@ -41,7 +43,7 @@ spack:
modules:
- PrgEnv-gnu-amd
- cray-mpich/8.1.25
- amd-mixed/5.2.0
- amd-mixed/5.6.0
- gcc/12.2.0
- craype-accel-amd-gfx90a
- craype-x86-trento
Expand All @@ -51,15 +53,16 @@ spack:
packages:
all:
compiler:
- clang@14.0.0-rocm5.2.0-mixed
- clang@16.0.0-rocm5.6.0-mixed
providers:
blas: [openblas]
mpi: [cray-mpich]
target: [zen3]
target: [x86_64]
exago:
require: ~python+raja+hiop+rocm+ipopt
hiop:
require: '@develop+sparse+mpi+raja+rocm+ginkgo+kron'
require: +sparse+mpi+raja+rocm~ginkgo+kron
version: [develop]
ipopt:
require: '@3.12.10~metis+coinhsl~mumps'
# Pin OpenBlas version for consistent test results.
Expand All @@ -71,23 +74,21 @@ spack:
raja:
require: ~examples~exercises
version: [0.14.0]
ginkgo:
require: '@1.5.0.glu_experimental~openmp'
coinhsl:
require: '@2019.05.21'
magma:
require: '@2.6.2'
require: '@2.7.2'
petsc:
require: ~hypre~superlu-dist~hdf5~metis
cray-mpich:
buildable: false
externals:
- spec: [email protected] %clang@14.0.0-rocm5.2.0-mixed
- spec: [email protected] %clang@16.0.0-rocm5.6.0-mixed
prefix: /opt/cray/pe/mpich/8.1.25/ofi/gnu/9.1
modules:
- PrgEnv-gnu-amd
- cray-mpich/8.1.25
- amd-mixed/5.2.0
- amd-mixed/5.6.0
- gcc/12.2.0
- craype-accel-amd-gfx90a
- craype-x86-trento
Expand All @@ -113,163 +114,163 @@ spack:
comgr:
buildable: false
externals:
- spec: comgr@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: comgr@5.6.0
prefix: /opt/rocm-5.6.0/
hip-rocclr:
buildable: false
externals:
- spec: hip-rocclr@5.2.0
prefix: /opt/rocm-5.2.0/hip
- spec: hip-rocclr@5.6.0
prefix: /opt/rocm-5.6.0/hip
hipblas:
buildable: false
externals:
- spec: hipblas@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: hipblas@5.6.0
prefix: /opt/rocm-5.6.0/
hipcub:
buildable: false
externals:
- spec: hipcub@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: hipcub@5.6.0
prefix: /opt/rocm-5.6.0/
hipfft:
buildable: false
externals:
- spec: hipfft@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: hipfft@5.6.0
prefix: /opt/rocm-5.6.0/
hipsparse:
buildable: false
externals:
- spec: hipsparse@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: hipsparse@5.6.0
prefix: /opt/rocm-5.6.0/
miopen-hip:
buildable: false
externals:
- spec: hip-rocclr@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: hip-rocclr@5.6.0
prefix: /opt/rocm-5.6.0/
miopengemm:
buildable: false
externals:
- spec: miopengemm@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: miopengemm@5.6.0
prefix: /opt/rocm-5.6.0/
rccl:
buildable: false
externals:
- spec: rccl@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rccl@5.6.0
prefix: /opt/rocm-5.6.0/
rocblas:
buildable: false
externals:
- spec: rocblas@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocblas@5.6.0
prefix: /opt/rocm-5.6.0/
rocfft:
buildable: false
externals:
- spec: rocfft@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocfft@5.6.0
prefix: /opt/rocm-5.6.0/
rocm-clang-ocl:
buildable: false
externals:
- spec: rocm-clang-ocl@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocm-clang-ocl@5.6.0
prefix: /opt/rocm-5.6.0/
rocm-cmake:
buildable: false
externals:
- spec: rocm-cmake@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocm-cmake@5.6.0
prefix: /opt/rocm-5.6.0/
rocm-dbgapi:
buildable: false
externals:
- spec: rocm-dbgapi@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocm-dbgapi@5.6.0
prefix: /opt/rocm-5.6.0/
rocm-debug-agent:
buildable: false
externals:
- spec: rocm-debug-agent@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocm-debug-agent@5.6.0
prefix: /opt/rocm-5.6.0/
rocm-device-libs:
buildable: false
externals:
- spec: rocm-device-libs@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocm-device-libs@5.6.0
prefix: /opt/rocm-5.6.0/
rocm-gdb:
buildable: false
externals:
- spec: rocm-gdb@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocm-gdb@5.6.0
prefix: /opt/rocm-5.6.0/
rocm-opencl:
buildable: false
externals:
- spec: rocm-opencl@5.2.0
prefix: /opt/rocm-5.2.0/opencl
- spec: rocm-opencl@5.6.0
prefix: /opt/rocm-5.6.0/opencl
rocm-smi-lib:
buildable: false
externals:
- spec: rocm-smi-lib@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: rocm-smi-lib@5.6.0
prefix: /opt/rocm-5.6.0/
hip:
buildable: false
externals:
- spec: hip@5.2.0
prefix: /opt/rocm-5.2.0
- spec: hip@5.6.0
prefix: /opt/rocm-5.6.0
llvm-amdgpu:
buildable: false
externals:
- spec: llvm-amdgpu@5.2.0
prefix: /opt/rocm-5.2.0/llvm
- spec: llvm-amdgpu@5.6.0
prefix: /opt/rocm-5.6.0/llvm
hsakmt-roct:
buildable: false
externals:
- spec: hsakmt-roct@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: hsakmt-roct@5.6.0
prefix: /opt/rocm-5.6.0/
hsa-rocr-dev:
buildable: false
externals:
- spec: hsa-rocr-dev@5.2.0
prefix: /opt/rocm-5.2.0/
- spec: hsa-rocr-dev@5.6.0
prefix: /opt/rocm-5.6.0/
roctracer-dev-api:
buildable: false
externals:
- spec: roctracer-dev-api@5.2.0
prefix: /opt/rocm-5.2.0/roctracer
- spec: roctracer-dev-api@5.6.0
prefix: /opt/rocm-5.6.0/roctracer
rocprim:
buildable: false
externals:
- spec: rocprim@5.2.0
prefix: /opt/rocm-5.2.0
- spec: rocprim@5.6.0
prefix: /opt/rocm-5.6.0
rocrand:
buildable: false
externals:
- spec: rocrand@5.2.0
prefix: /opt/rocm-5.2.0
- spec: rocrand@5.6.0
prefix: /opt/rocm-5.6.0
hiprand:
buildable: false
externals:
- spec: hiprand@5.2.0
prefix: /opt/rocm-5.2.0
- spec: hiprand@5.6.0
prefix: /opt/rocm-5.6.0
hipsolver:
buildable: false
externals:
- spec: hipsolver@5.2.0
prefix: /opt/rocm-5.2.0
- spec: hipsolver@5.6.0
prefix: /opt/rocm-5.6.0
rocsolver:
buildable: false
externals:
- spec: rocsolver@5.2.0
prefix: /opt/rocm-5.2.0
- spec: rocsolver@5.6.0
prefix: /opt/rocm-5.6.0
rocsparse:
buildable: false
externals:
- spec: rocsparse@5.2.0
prefix: /opt/rocm-5.2.0
- spec: rocsparse@5.6.0
prefix: /opt/rocm-5.6.0
rocthrust:
buildable: false
externals:
- spec: rocthrust@5.2.0
prefix: /opt/rocm-5.2.0
- spec: rocthrust@5.6.0
prefix: /opt/rocm-5.6.0
rocprofiler-dev:
buildable: false
externals:
- spec: rocprofiler-dev@5.2.0
prefix: /opt/rocm-5.2.0
- spec: rocprofiler-dev@5.6.0
prefix: /opt/rocm-5.6.0
config:
install_tree:
root: $SPACK_INSTALL
Expand Down
2 changes: 1 addition & 1 deletion tpl/spack
Submodule spack updated 9155 files
Loading