-
Notifications
You must be signed in to change notification settings - Fork 54
Add variant to build Scalasca/Scorep/Cube as part of dev-utils-env (contains: add oneapi@2026.0.0 on Bounty and Blueback) #2011
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
climbfuji
wants to merge
7
commits into
JCSDA:develop
Choose a base branch
from
climbfuji:feature/scalasca_scorep
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
7 commits
Select commit
Hold shift + click to select a range
7d510de
Update .gitmodules and submodule pointer for repos/builtin
climbfuji 871a48e
Merge branch 'develop' of https://github.com/jcsda/spack-stack into f…
climbfuji 2219a8b
Merge
climbfuji 0589394
Update submodule pointer for repos/builtin; fix merge conflict in uti…
climbfuji 8a4d3b2
Add configs/sites/tier2/bounty/packages_oneapi-2026.0.0.yaml and conf…
climbfuji 92ce0d8
Add comment for qt in configs/common/packages.yaml
climbfuji b76fc1e
Add util/nrl/intel_oneapi-2026.0.0_install.sh
climbfuji 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
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
62 changes: 62 additions & 0 deletions
62
configs/sites/tier1/blueback/packages_oneapi-2026.0.0.yaml
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,62 @@ | ||
| packages: | ||
| all: | ||
| require: | ||
| - any_of: ['%intel-oneapi-compilers@=2026.0.0'] | ||
| when: '%intel-oneapi-compilers' | ||
| - any_of: ['%gcc@=13.3.0'] | ||
| when: '%gcc' | ||
| mpi: | ||
| buildable: false | ||
| require: | ||
| - cray-mpich@8.1.32 | ||
| intel-oneapi-compilers: | ||
| buildable: false | ||
| externals: | ||
| - spec: intel-oneapi-compilers@2026.0.0 +fix_rt_linkage | ||
| prefix: /p/app/intel/oneapi-combined | ||
| modules: | ||
| - PrgEnv-intel/8.6.0 | ||
| - intel-oneapi/2026.0.0 | ||
| extra_attributes: | ||
| compilers: | ||
| c: /p/app/projects/NEPTUNE/spack-stack/oneapi-2026.0.0/2026.0/bin/icx | ||
| cxx: /p/app/projects/NEPTUNE/spack-stack/oneapi-2026.0.0/2026.0/bin/icpx | ||
| fortran: /p/app/projects/NEPTUNE/spack-stack/oneapi-2026.0.0/2026.0/bin/ifx | ||
| environment: | ||
| set: | ||
| CONFIG_SITE: '' | ||
| gcc: | ||
| buildable: false | ||
| externals: | ||
| - spec: gcc@13.3.0 languages:='c,c++' | ||
| prefix: /usr | ||
| modules: | ||
| - PrgEnv-gnu/8.6.0 | ||
| - gcc-native/13.2 | ||
| extra_attributes: | ||
| compilers: | ||
| c: /usr/bin/gcc | ||
| cxx: /usr/bin/g++ | ||
| fortran: /usr/bin/gfortran | ||
| environment: | ||
| set: | ||
| CONFIG_SITE: '' | ||
| PE_GCC_EXTERNAL: native | ||
| cray-mpich: | ||
| buildable: false | ||
| externals: | ||
| - spec: cray-mpich@8.1.32 | ||
| prefix: /opt/cray/pe/mpich/8.1.32/ofi/INTEL/2022.1 | ||
| modules: | ||
| - libfabric/1.22.0 | ||
| - craype-network-ofi | ||
| - cray-mpich/8.1.32 | ||
| extra_attributes: | ||
| environment: | ||
| prepend_path: | ||
| CMAKE_PREFIX_PATH: /p/app/projects/NEPTUNE/spack-stack/cmake-findmpi | ||
| intel-oneapi-mkl: | ||
| buildable: false | ||
| externals: | ||
| - spec: intel-oneapi-mkl@2026.0 | ||
| prefix: /p/app/projects/NEPTUNE/spack-stack/oneapi-2026.0.0 |
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,41 @@ | ||
| packages: | ||
| all: | ||
| require: | ||
| - any_of: ['%intel-oneapi-compilers@=2026.0.0'] | ||
| when: '%intel-oneapi-compilers' | ||
| - any_of: ['%gcc@=11.5.0'] | ||
| when: '%gcc' | ||
| mpi: | ||
| buildable: False | ||
| require: | ||
| - "intel-oneapi-mpi@2021.18" | ||
| intel-oneapi-compilers: | ||
| buildable: false | ||
| externals: | ||
| - spec: intel-oneapi-compilers@2026.0.0 +fix_rt_linkage | ||
| prefix: /opt/intel/oneapi | ||
| extra_attributes: | ||
| compilers: | ||
| c: /opt/intel/oneapi/2026.0/bin/icx | ||
| cxx: /opt/intel/oneapi/2026.0/bin/icpx | ||
| fortran: /opt/intel/oneapi/2026.0/bin/ifx | ||
| gcc: | ||
| buildable: false | ||
| externals: | ||
| - spec: gcc@11.5.0 languages:='c,c++' | ||
| prefix: /usr | ||
| extra_attributes: | ||
| compilers: | ||
| c: /usr/bin/gcc | ||
| cxx: /usr/bin/g++ | ||
| fortran: /usr/bin/gfortran | ||
| intel-oneapi-mpi: | ||
| buildable: false | ||
| externals: | ||
| - spec: intel-oneapi-mpi@2021.18 | ||
| prefix: /opt/intel/oneapi | ||
| intel-oneapi-mkl: | ||
| buildable: false | ||
| externals: | ||
| - spec: intel-oneapi-mkl@2026.0 | ||
| prefix: /opt/intel/oneapi |
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 |
|---|---|---|
|
|
@@ -95,6 +95,7 @@ def check_preferred_compiler(): | |
| except: | ||
| logging.info(f" ... {spec.name}@{spec.version}/{spec.dag_hash(length=7)} has no compiler dependency") | ||
| continue | ||
| logging.warning(f" ... {spec.name}@{spec.version}/{spec.dag_hash(length=7)}: {compiler_name}@={compiler_version}") | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert me |
||
| # If the spec compiler matches the preferred compiler for the environment, move on. | ||
| # Note that this permits situations where a packages has an explicit preferred (but | ||
| # not explicitly required) compiler, but Spack decides to use the preferred (and | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -141,7 +141,7 @@ case ${SPACK_STACK_BATCH_HOST} in | |
| SPACK_STACK_CARGO_MIRROR="/neptune_diagnostics/spack-stack/cargo-mirror" | ||
| ;; | ||
| blueback) | ||
| SPACK_STACK_BATCH_COMPILERS=("oneapi@=2025.0.4" "gcc@=13.3.0" "gcc@=14.3.0") # oneapi@=2025.2.1 | ||
| SPACK_STACK_BATCH_COMPILERS=("oneapi@=2025.0.4" "oneapi@=2026.0.0" "gcc@=13.3.0" "gcc@=14.3.0") | ||
| SPACK_STACK_BATCH_TEMPLATES=("neptune-dev" "unified-dev" "cylc-dev") | ||
| SPACK_STACK_MODULE_CHOICE="tcl" | ||
| SPACK_STACK_BOOTSTRAP_MIRROR="/p/app/projects/NEPTUNE/spack-stack/bootstrap-mirror" | ||
|
|
@@ -177,7 +177,7 @@ case ${SPACK_STACK_BATCH_HOST} in | |
| ;; | ||
| bounty) | ||
| SPACK_STACK_BATCH_COMPILERS=("oneapi@=2025.3.0" "gcc@=14.2.1" "gcc@=13.3.1" "clang@=22.1.0") | ||
| SPACK_STACK_BATCH_TEMPLATES=("neptune-dev" "neptune-dev-llvm" "unified-dev" "cylc-dev") | ||
| SPACK_STACK_BATCH_TEMPLATES=("neptune-dev") #"neptune-dev-llvm" "unified-dev" "cylc-dev") | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert me |
||
| SPACK_STACK_MODULE_CHOICE="tcl" | ||
| SPACK_STACK_BOOTSTRAP_MIRROR="/home/dom/prod/spack-bootstrap-mirror" | ||
| SPACK_STACK_CARGO_MIRROR="/home/dom/prod/spack-cargo-mirror" | ||
|
|
@@ -502,6 +502,11 @@ for compiler in "${SPACK_STACK_BATCH_COMPILERS[@]}"; do | |
| set +e | ||
| module purge | ||
| set -e | ||
| case ${compiler} in | ||
| oneapi@=2026.0.0) | ||
| module use /p/app/projects/NEPTUNE/spack-stack/oneapi-2026.0.0/modulefiles | ||
| ;; | ||
| esac | ||
| ;; | ||
| narwhal) | ||
| umask 0022 | ||
|
|
||
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,92 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -eu | ||
|
|
||
| umask 0022 | ||
| module purge | ||
|
|
||
| if [ "$#" -lt 1 ]; then | ||
| echo "Error: Not enough arguments. Provide Intel oneAPI installation prefix." | ||
| exit 1 | ||
| fi | ||
|
|
||
| ONEAPI_INSTALL_DIR=${1} | ||
| ONEAPI_VERSION="2026.0.0" | ||
| COMPILER_VERSION="2026.0" | ||
| MKL_VERSION="2026.0" | ||
| ONEAPI_DOWNLOAD_URL=https://registrationcenter-download.intel.com/akdlm/IRC_NAS/71180075-e4e3-4c6f-bbbb-19017ed0cf7d/intel-oneapi-toolkit-2026.0.0.198_offline.sh | ||
|
|
||
| mkdir -p ${ONEAPI_INSTALL_DIR}/src | ||
| cd ${ONEAPI_INSTALL_DIR}/src | ||
| wget ${ONEAPI_DOWNLOAD_URL} | ||
| ONEAPI_INSTALL_SCRIPT="${ONEAPI_DOWNLOAD_URL##*/}" | ||
| sh ./${ONEAPI_INSTALL_SCRIPT} -a --silent --eula accept --install-dir ${ONEAPI_INSTALL_DIR} --intel-sw-improvement-program-consent decline 2>&1 | tee log.install | ||
|
|
||
| # Check that compiler and mkl versions are correct | ||
| if [ ! -d "${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}" ]; then | ||
| echo "Error, directory ${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION} does not exist" | ||
| exit 1 | ||
| fi | ||
| if [ ! -d "${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION}" ]; then | ||
| echo "Error, directory ${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION} does not exist" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Create modulefiles - special modules for Cray, Intel auto-generated modules elsewhere | ||
| HOSTNAME=$(hostname) | ||
| if [[ "${HOSTNAME}" == *"blueback"* || "${HOSTNAME}" == *"narwhal"* ]]; then | ||
| mkdir -p ${ONEAPI_INSTALL_DIR}/modulefiles/intel-oneapi | ||
| cat << EOF > ${ONEAPI_INSTALL_DIR}/modulefiles/intel-oneapi/2026.0.0 | ||
| #%Module | ||
| # | ||
| # Intel oneAPI module | ||
| # | ||
|
|
||
| conflict intel | ||
| conflict intel-classic | ||
| conflict intel-oneapi | ||
|
|
||
| set INTEL_CURPATH ${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION} | ||
| set INTEL_LEVEL ${COMPILER_VERSION} | ||
|
|
||
| setenv INTEL_PATH \$INTEL_CURPATH | ||
| setenv INTEL_VERSION \$INTEL_LEVEL | ||
| setenv INTEL_COMPILER_TYPE "ONEAPI" | ||
|
|
||
| prepend-path {LD_LIBRARY_PATH} {${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}/opt/compiler/lib:${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}/lib} | ||
| setenv {OCL_ICD_FILENAMES} {${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}/lib/libintelocl.so} | ||
| setenv {CMPLR_ROOT} {${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}} | ||
| prepend-path {CMAKE_PREFIX_PATH} {${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}} | ||
| prepend-path {NLSPATH} {} | ||
| prepend-path {LIBRARY_PATH} {${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}/lib} | ||
| prepend-path {DIAGUTIL_PATH} {} | ||
| prepend-path {MANPATH} {${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}/share/man} | ||
| prepend-path {PATH} {${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}/bin} | ||
| prepend-path {PKG_CONFIG_PATH} {${ONEAPI_INSTALL_DIR}/compiler/${COMPILER_VERSION}/lib/pkgconfig} | ||
| prepend-path {LD_LIBRARY_PATH} {${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION}/lib} | ||
| prepend-path {CMAKE_PREFIX_PATH} {${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION}/lib/cmake} | ||
| prepend-path {CPATH} {${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION}/include} | ||
| prepend-path {LIBRARY_PATH} {${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION}/lib} | ||
| setenv {MKLROOT} {${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION}} | ||
| prepend-path {PATH} {${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION}/bin} | ||
| prepend-path {PKG_CONFIG_PATH} {${ONEAPI_INSTALL_DIR}/mkl/${MKL_VERSION}/lib/pkgconfig} | ||
|
|
||
| proc ModulesHelp { } { | ||
| global INTEL_LEVEL | ||
| global INTEL_CURPATH | ||
| } | ||
|
|
||
| # This module was produced with dom-gen 0.0.1 | ||
|
|
||
| module-whatis "Intel oneAPI compiler" | ||
| EOF | ||
|
|
||
| else | ||
| cd ${ONEAPI_INSTALL_DIR} | ||
| ./modulefiles-setup.sh --output-dir=${ONEAPI_INSTALL_DIR}/modulefiles --ignore-latest 2>&1 | tee log.modulefiles | ||
| # Fix non-ascii symbols in Intel modulefiles; must follow links | ||
| for file in `find ./modulefiles -type l`; do | ||
| echo $file | ||
| sed -i --follow-symlinks 's/®//g' $file | ||
| done | ||
| fi |
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.
Remove this. Each site must either set
qt:buildable:falseor set requiregccin its ownpackages_oneapi-<version>.yaml.