Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ uenvs:
santis: [gh200]
balfrin: [a100]
develop: False
icon-dsl:
"25.8":
recipes:
gh200: '25.8/gh200'
a100: '25.8/a100'
deploy:
santis: [gh200]
balfrin: [a100]
develop: False
mch:
"v7":
recipes:
Expand Down
9 changes: 9 additions & 0 deletions recipes/icon-dsl/25.8/a100/compilers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bootstrap:
spec: [email protected]
gcc:
specs:
- gcc@13
llvm:
requires: gcc@13
specs:
- [email protected]
7 changes: 7 additions & 0 deletions recipes/icon-dsl/25.8/a100/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: icon-dsl
store: /user-environment
spack:
repo: https://github.com/spack/spack.git
commit: releases/v0.23
modules: false
description: Build and runtime dependencies for ICON-DSL
47 changes: 47 additions & 0 deletions recipes/icon-dsl/25.8/a100/environments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
myenv:
compiler:
- toolchain: gcc
spec: gcc
- toolchain: llvm
spec: nvhpc
mpi:
spec: [email protected]%nvhpc
gpu: cuda
specs:
# icon4py deps
- [email protected]
- py-cupy +cuda cuda_arch=90
- ghex +python +cuda cuda_arch=90
- py-mpi4py
- icon4py@icon_20250328
# icon deps
- boost
- [email protected]
- [email protected]%nvhpc +tools +fortran +aec +openmp jp2k=jasper
- [email protected]
- hdf5%nvhpc +szip +hl +fortran +mpi
- [email protected]%nvhpc
- [email protected]%nvhpc
- [email protected]%nvhpc
- [email protected]%nvhpc
- openblas
# for validation
- cdo
# everything needed for nccl on SS11
- nccl
- nccl-tests
# extras
- libfyaml
- zlib-ng
- cmake
unify: true
variants:
- +mpi
- +cuda
- cuda_arch=80
views:
default:
link: roots
uenv:
prefix_paths:
LD_LIBRARY_PATH: [lib, lib64]
6 changes: 6 additions & 0 deletions recipes/icon-dsl/25.8/a100/extra/reframe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
default:
features: [osu-micro-benchmarks, mpi, serial, openmp]
cc: mpicc
cxx: mpic++
ftn: mpifort
activation: /user-environment/env/default/activate.sh
26 changes: 26 additions & 0 deletions recipes/icon-dsl/25.8/a100/modules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
modules:
# Paths to check when creating modules for all module sets
prefix_inspections:
bin:
- PATH
lib:
- LD_LIBRARY_PATH
lib64:
- LD_LIBRARY_PATH

default:
arch_folder: false
# Where to install modules
roots:
tcl: /snap/modules
tcl:
all:
autoload: run
hash_length: 0
hide_implicits: true
exclude:
- '%[email protected]'
- '%gcc@12'
- 'gcc %[email protected]'
projections:
all: '{name}/{version}'
12 changes: 12 additions & 0 deletions recipes/icon-dsl/25.8/a100/pre-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

packages=("cosmo-eccodes-definitions")
SPACK_C2SM_TAG="v0.22.2.1"

git clone -b ${SPACK_C2SM_TAG} https://github.com/C2SM/spack-c2sm.git

for package in "${packages[@]}"; do
cp -r spack-c2sm/repos/c2sm/packages/"${package}" store/repo/packages
done

rm -rf spack-c2sm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/cmake/ecbuild_append_to_rpath.cmake
+++ b/cmake/ecbuild_append_to_rpath.cmake
@@ -31,7 +31,7 @@ function( _path_append var path )
else()
list( FIND ${var} ${path} _found )
if( _found EQUAL "-1" )
- set( ${var} "${${var}}:${path}" PARENT_SCOPE )
+ set( ${var} "${${var}};${path}" PARENT_SCOPE )
endif()
endif()
endfunction()
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,6 +43,18 @@ ecbuild_add_option( FEATURE JPG
DESCRIPTION "support for JPG decoding/encoding"
DEFAULT ON
)
+# Options related to JPG. The Jasper and OpenJPEG libraries
+ecbuild_add_option( FEATURE JPG_LIBJASPER
+ DESCRIPTION "Support for JPG decoding/encoding with the Jasper library"
+ CONDITION ENABLE_JPG
+ DEFAULT ON
+)
+ecbuild_add_option( FEATURE JPG_LIBOPENJPEG
+ DESCRIPTION "Support for JPG decoding/encoding with the OpenJPEG library"
+ CONDITION ENABLE_JPG
+ DEFAULT ON
+)
+

ecbuild_add_option( FEATURE PNG
DESCRIPTION "support for PNG decoding/encoding"
@@ -144,7 +156,7 @@ if( ENABLE_JPG )

find_package( OpenJPEG )

- if( JASPER_FOUND )
+ if( JASPER_FOUND AND ENABLE_JPG_LIBJASPER )
list( APPEND ECCODES_TPLS Jasper )
set( HAVE_JPEG 1 )
set( HAVE_LIBJASPER 1 )
@@ -152,7 +164,7 @@ if( ENABLE_JPG )
string(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1" JASPER_VERSION_MAJOR "${JASPER_VERSION_STRING}")
endif()

- if( OPENJPEG_FOUND )
+ if( OPENJPEG_FOUND AND ENABLE_JPG_LIBOPENJPEG )
list( APPEND ECCODES_TPLS OpenJPEG )
set( HAVE_JPEG 1 )
set( HAVE_LIBOPENJPEG 1 )
Loading