ADD: nvhpc compiler

This commit is contained in:
svcusr-spack (Resp. Germann Elsa Sylvia)
2024-07-25 09:56:13 +02:00
parent ca2c5ceb4e
commit 543add99bb
2 changed files with 37 additions and 7 deletions

View File

@ -45,3 +45,20 @@ compilers:
- libfabric/1.15.2.0
environment: {}
extra_rpaths: []
- compiler:
spec: nvhpc@=23.9
paths:
cc: /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvc
cxx: /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvc++
f77: /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvfortran
fc: /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvfortran
flags: {}
operating_system: sles15
target: x86_64
modules:
- nvhpc-nompi/23.9
- libfabric/1.15.2.0
environment:
prepend_path:
LD_LIBRARY_PATH: /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/math_libs/lib64/stubs
extra_rpaths: []

View File

@ -7,8 +7,12 @@ packages:
mpi: [cray-mpich, openmpi]
pkgconfig: [pkg-config]
scalapack: [cray-libsci]
require: "os=sles15"
target: [x86_64]
require:
- spec: "os=sles15"
- spec: "target=x86_64"
when: "%gcc"
- spec: "target=zen3"
when: "%nvhpc"
# Grace Hopper arch
variants:
- cuda_arch=80
@ -53,12 +57,15 @@ packages:
- cray-pmi
prefix: /opt/cray/pe/pmi/6.1.13
spec: cray-pmi@6.1.13%gcc
ctffind:
require: '%gcc@7.5.0'
cuda:
prefer:
- spec: '@12.2.0'
require: '@12.2.0:'
externals:
- modules:
- nvhpc-nompi/23.9
prefix: /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda
spec: cuda@12.2.0%nvhpc@23.9
curl:
require: '%gcc@7.5.0'
expat:
@ -183,14 +190,17 @@ packages:
require: '%gcc@7.5.0'
numactl:
require: '%gcc@7.5.0'
nvhpc:
externals:
- modules:
- nvhpc-nompi/23.9
spec: nvhpc@23.9
opal:
require:
- spec: '%gcc'
- message: Opal 2022.1.0 only builds with gcc@10.4.0
spec: '%gcc@10.4.0 ^openmpi'
when: '@2022.1.0'
openblas:
require: '%gcc@7.5.0'
opengl:
require: '%gcc@7.5.0'
openldap:
@ -200,7 +210,10 @@ packages:
spec: openldap@2.4.46
openmpi:
require:
- schedulers=slurm fabrics=ofi +pmi pmi-interface=cray +cxx +cxx_exceptions +cuda +legacylaunchers
- spec: 'schedulers=slurm fabrics=ofi +pmi pmi-interface=cray +cxx +cxx_exceptions +cuda +legacylaunchers'
when: '%gcc'
- spec: 'schedulers=slurm fabrics=ofi +pmi pmi-interface=cray +cxx +cuda +legacylaunchers'
when: '%nvhpc'
openssh:
require: '%gcc@7.5.0'
openssl: