Repository navigation
New compiler added to Ursa: nvhpc@26.9 with cuda@13.3 support #2201
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
Draft
natalie-perlin
wants to merge
6
commits into
JCSDA:develop
Choose a base branch
from
natalie-perlin:ursa-nvhpc-26.9
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a80847e
Ursa configuration: nvhpc/26.9 compiler suite with cuda/13.3 support
natalie-perlin 92014f4
Ursa new compiler configuration: nvhpc/26.9 with cuda/13.3 support
natalie-perlin 19a6df3
Update for Ursa: packages_nvhpc-26.9.yaml, packages.yaml
natalie-perlin 38632bf
Ursa nvhpc-26.9: hdf5/NCEPLIBS Fortran flags, more gcc fallbacks
natalie-perlin 73eadab
Ursa nvhpc-26.9: build more packages with gcc, sort Fortran flags block
natalie-perlin 1b8094d
EPIC batch_install.sh script: fix default compiler option, add -v and…
natalie-perlin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,207 @@ | ||
| packages: | ||
| all: | ||
| require: | ||
| - any_of: ['%nvhpc@=26.9'] | ||
| when: '%nvhpc' | ||
| - any_of: ['%gcc@=11.5.0'] | ||
| when: '%gcc' | ||
|
|
||
| mpi: | ||
| buildable: false | ||
| require: | ||
| - 'openmpi@5.0.10rc2' | ||
|
|
||
| nvhpc: | ||
| buildable: false | ||
| externals: | ||
| - spec: nvhpc@26.9+blas+lapack~mpi | ||
| prefix: /apps/spack-2026-10/linux-x86_64/nvhpc-26.9-5ltv4xi | ||
| modules: | ||
| - spack-apps/2026.10 | ||
| - nvhpc/26.9 | ||
| extra_attributes: | ||
| compilers: | ||
| c: /apps/spack-2026-10/linux-x86_64/nvhpc-26.9-5ltv4xi/Linux_x86_64/26.9/compilers/bin/nvc | ||
| cxx: /apps/spack-2026-10/linux-x86_64/nvhpc-26.9-5ltv4xi/Linux_x86_64/26.9/compilers/bin/nvc++ | ||
| fortran: /apps/spack-2026-10/linux-x86_64/nvhpc-26.9-5ltv4xi/Linux_x86_64/26.9/compilers/bin/nvfortran | ||
|
|
||
| openmpi: | ||
| buildable: false | ||
| require:: | ||
| - '+internal-hwloc' | ||
| externals: | ||
| - spec: openmpi@5.0.10rc2 +internal-hwloc +internal-pmix +internal-libevent +two_level_namespace | ||
| prefix: /apps/spack-2026-10/linux-x86_64/nvhpc-26.9-5ltv4xi/Linux_x86_64/26.9/comm_libs/13.3/hpcx/hpcx-2.50/ompi5 | ||
| modules: | ||
| - spack-apps/2026.10 | ||
| - nvhpc/26.9 | ||
|
|
||
| # System gcc (no module needed, nvhpc module stays loaded); also the CUDA 13.3 host compiler. | ||
| gcc: | ||
| buildable: false | ||
| require: | ||
| - '@11.5.0' | ||
| externals: | ||
| - spec: gcc@11.5.0 languages:='c,c++,fortran' | ||
| prefix: /usr | ||
| extra_attributes: | ||
| compilers: | ||
| c: /usr/bin/gcc | ||
| cxx: /usr/bin/g++ | ||
| fortran: /usr/bin/gfortran | ||
|
|
||
| cuda: | ||
| buildable: false | ||
| externals: | ||
| - spec: cuda@13.3 | ||
| prefix: /apps/spack-2026-10/linux-x86_64/nvhpc-26.9-5ltv4xi/Linux_x86_64/26.9/cuda/13.3 | ||
| modules: | ||
| - spack-apps/2026.10 | ||
| - nvhpc/26.9 | ||
|
|
||
| # libsm and others include <uuid/uuid.h>, which ossp-uuid does not provide | ||
| uuid: | ||
| require: | ||
| - util-linux-uuid | ||
|
|
||
| # Ursa GPUs H100: CUDA build for H100 (cuda_arch=90) | ||
| kokkos: | ||
| require: | ||
| - '+cuda cuda_arch=90' | ||
| - '+wrapper' | ||
| kokkos-kernels: | ||
| require: | ||
| - '+cuda cuda_arch=90' | ||
| arborx: | ||
| require: | ||
| - '+cuda cuda_arch=90' | ||
|
|
||
| # Fortran flags for nvfortran | ||
| # gfsio, landsfcutil, sfcio, sigio: free-form sources with .f suffix; | ||
| # upstream CMake sets free-form/big-endian flags only for Intel/GNU | ||
| gfsio: | ||
| require: | ||
| - "fflags='-Mfree -byteswapio'" | ||
| # hdf5 2.x hl/fortran targets miss the MPI Fortran module dir (HPC-X keeps mpi_f08.mod in lib/) | ||
| hdf5: | ||
| require: | ||
| - "fflags='-I/apps/spack-2026-10/linux-x86_64/nvhpc-26.9-5ltv4xi/Linux_x86_64/26.9/comm_libs/13.3/hpcx/hpcx-2.50/ompi5/lib'" | ||
| # landsfcutil_d is not built with -r8 under NVHPC (CMake sets it for Intel only); needs a patch | ||
| landsfcutil: | ||
| require: | ||
| - "fflags='-Mfree'" | ||
| sfcio: | ||
| require: | ||
| - "fflags='-Mfree -byteswapio'" | ||
| sigio: | ||
| require: | ||
| - "fflags='-Mfree -byteswapio'" | ||
|
|
||
| # Packages that nvc/nvc++ cannot build: use gcc | ||
| # nvc rejects GNU computed goto and inline asm .previous directives | ||
| alsa-lib: | ||
| require: | ||
| - '%c=gcc' | ||
| # Build with gcc; ecflow+ui (boost, qt) is C++ heavy | ||
| ecflow: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # nvc rejects -Wold-style-definition | ||
| elfutils: | ||
| require: | ||
| - '%c=gcc' | ||
| # GNU-specific inline assembly; depends on alsa-lib | ||
| ffmpeg: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # nvc++ rejects GNU warning flags (-Wold-style-cast, -Wnon-virtual-dtor) | ||
| flatbuffers: | ||
| require: | ||
| - '%cxx=gcc' | ||
| # nvc rejects -Wmissing-declarations | ||
| fontconfig: | ||
| require: | ||
| - '%c=gcc' | ||
| # nvc rejects -ansi | ||
| fribidi: | ||
| require: | ||
| - '%c=gcc' | ||
| # nvc++ cannot parse libertiff templates ("type name is not allowed") | ||
| gdal: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # nvhpc-export-symbols.patch does not apply to gettext@1.0 | ||
| gettext: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # meson does not add a PIC flag for nvc ("Can't link non-PIC static library") | ||
| glib: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| glib-bootstrap: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # nvc rejects gnulib's GCC warning flags (-Wimplicit-fallthrough, -Wno-sign-conversion, ...) | ||
| gperf: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # nvc rejects -nodefaultlibs when linking libicudata | ||
| icu4c: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # nvc rejects -Wno-psabi; build also parses GCC preprocessor output (gpg-error.def) | ||
| libgpg-error: | ||
| require: | ||
| - '%c=gcc' | ||
| # nvc++ rejects GNU alias attribute in pcrecpp.cc | ||
| pcre: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # meson does not add a PIC flag for nvc ("Can't link non-PIC static library") | ||
| pixman: | ||
| require: | ||
| - '%c=gcc' | ||
| # nvc++ 26.9 crashes: "LLVM ERROR: Broken module found" | ||
| proj: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # Python is built with gcc; pip passes its CFLAGS (-fno-strict-overflow) to nvc | ||
| py-awscrt: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| py-cffi: | ||
| require: | ||
| - '%c=gcc' | ||
| py-crc32c: | ||
| require: | ||
| - '%c=gcc' | ||
| py-kiwisolver: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| py-lxml: | ||
| require: | ||
| - '%c=gcc' | ||
| py-msgpack: | ||
| require: | ||
| - '%c=gcc' | ||
| py-pillow: | ||
| require: | ||
| - '%c=gcc' | ||
| py-psutil: | ||
| require: | ||
| - '%c=gcc' | ||
| py-ruamel-yaml-clib: | ||
| require: | ||
| - '%c=gcc' | ||
| # util-linux-uuid is C only; '::' replaces common's '%c,cxx=gcc', which cannot be satisfied | ||
| util-linux-uuid: | ||
| require:: | ||
| - '%c=gcc' | ||
| # nvc++ rejects -Weffc++ and -pedantic-errors | ||
| yaml-cpp: | ||
| require: | ||
| - '%c,cxx=gcc' | ||
| # zlib has its own require:: in packages.yaml, bypassing the 'all' rule | ||
| zlib: | ||
| require: | ||
| - '%c=gcc' |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is already in release/2.2 - just a reminder for me to resolve the conflict, depending on what goes into develop first (this PR or the release branch).