From 680d09584e68b4a3f9e5dbb865cf4d8842e3e63c Mon Sep 17 00:00:00 2001 From: Jean-guillaume Piccinali Date: Wed, 27 Nov 2024 18:44:12 +0100 Subject: [PATCH] linaro/24.1 (#174) --- config.yaml | 11 ++++++ recipes/linaro-forge/24.1/compilers.yaml | 5 +++ recipes/linaro-forge/24.1/config.yaml | 7 ++++ recipes/linaro-forge/24.1/environments.yaml | 10 ++++++ recipes/linaro-forge/24.1/extra/reframe.yaml | 8 +++++ recipes/linaro-forge/24.1/modules.yaml | 23 +++++++++++++ recipes/linaro-forge/24.1/post-install | 5 +++ recipes/linaro-forge/24.1/repo | 1 + .../repo/packages/linaro-forge/package.py | 34 +++++++++++++++++-- 9 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 recipes/linaro-forge/24.1/compilers.yaml create mode 100644 recipes/linaro-forge/24.1/config.yaml create mode 100644 recipes/linaro-forge/24.1/environments.yaml create mode 100644 recipes/linaro-forge/24.1/extra/reframe.yaml create mode 100644 recipes/linaro-forge/24.1/modules.yaml create mode 100644 recipes/linaro-forge/24.1/post-install create mode 120000 recipes/linaro-forge/24.1/repo diff --git a/config.yaml b/config.yaml index 427b8337..83edcbd1 100644 --- a/config.yaml +++ b/config.yaml @@ -174,6 +174,17 @@ uenvs: santis: [gh200] develop: False linaro-forge: + "24.1": + recipes: + zen2: "24.1" + gh200: "24.1" + deploy: + eiger: [zen2] + santis: [gh200] + daint: [gh200] + todi: [gh200] + develop: False + mount: "/user-tools" "24.0.2": recipes: zen2: "24.0.2" diff --git a/recipes/linaro-forge/24.1/compilers.yaml b/recipes/linaro-forge/24.1/compilers.yaml new file mode 100644 index 00000000..c3bc6ac6 --- /dev/null +++ b/recipes/linaro-forge/24.1/compilers.yaml @@ -0,0 +1,5 @@ +bootstrap: + spec: gcc@12 +gcc: + specs: + - gcc@12 diff --git a/recipes/linaro-forge/24.1/config.yaml b/recipes/linaro-forge/24.1/config.yaml new file mode 100644 index 00000000..afa60d7f --- /dev/null +++ b/recipes/linaro-forge/24.1/config.yaml @@ -0,0 +1,7 @@ +name: linaro +store: /user-tools +description: https://www.linaroforge.com/download-documentation +spack: + repo: https://github.com/spack/spack.git + commit: releases/v0.22 +modules: True diff --git a/recipes/linaro-forge/24.1/environments.yaml b/recipes/linaro-forge/24.1/environments.yaml new file mode 100644 index 00000000..ff322743 --- /dev/null +++ b/recipes/linaro-forge/24.1/environments.yaml @@ -0,0 +1,10 @@ +gcc-env: + compiler: + - toolchain: gcc + spec: gcc + unify: true + specs: + - linaro-forge@24.1 +accept-eula + views: + forge: + link: roots diff --git a/recipes/linaro-forge/24.1/extra/reframe.yaml b/recipes/linaro-forge/24.1/extra/reframe.yaml new file mode 100644 index 00000000..bde425fc --- /dev/null +++ b/recipes/linaro-forge/24.1/extra/reframe.yaml @@ -0,0 +1,8 @@ +default: + features: + - ddt + - map + cc: gcc + cxx: g++ + ftn: gfortran + activation: /user-tools/activate diff --git a/recipes/linaro-forge/24.1/modules.yaml b/recipes/linaro-forge/24.1/modules.yaml new file mode 100644 index 00000000..63018f02 --- /dev/null +++ b/recipes/linaro-forge/24.1/modules.yaml @@ -0,0 +1,23 @@ +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: /user-tools/modules + tcl: + all: + autoload: none + hash_length: 0 + exclude_implicits: true + exclude: ['%gcc@7.5.0', 'gcc %gcc@7.5.0'] + projections: + all: '{name}/{version}' diff --git a/recipes/linaro-forge/24.1/post-install b/recipes/linaro-forge/24.1/post-install new file mode 100644 index 00000000..f532ec9f --- /dev/null +++ b/recipes/linaro-forge/24.1/post-install @@ -0,0 +1,5 @@ +#!/bin/bash + +forge_bin={{ env.mount }}/env/forge/bin +echo "export PATH=$forge_bin:\$PATH" >> {{ env.mount }}/activate +echo "export UENV_DDT_VERSION=24.1" >> {{ env.mount }}/activate diff --git a/recipes/linaro-forge/24.1/repo b/recipes/linaro-forge/24.1/repo new file mode 120000 index 00000000..2dd2305a --- /dev/null +++ b/recipes/linaro-forge/24.1/repo @@ -0,0 +1 @@ +../repo/ \ No newline at end of file diff --git a/recipes/linaro-forge/repo/packages/linaro-forge/package.py b/recipes/linaro-forge/repo/packages/linaro-forge/package.py index e60424bf..ac6ecffc 100644 --- a/recipes/linaro-forge/repo/packages/linaro-forge/package.py +++ b/recipes/linaro-forge/repo/packages/linaro-forge/package.py @@ -22,13 +22,27 @@ class LinaroForge(Package): homepage = "https://www.linaroforge.com" maintainers("kenche-linaro") - if platform.machine() in ["aarch64", "arm64"]: + if platform.machine() == "aarch64": + version("24.1", sha256="e297d0c19c95d4db842187eb38882db094094ec667d854aaf396e11a81bffe0b") + version( + "24.0.6", sha256="a7f9f71e4352be3680854611fe433a9974fcb8a327ac65ca3bc950c956eac6e4" + ) + version( + "24.0.5", sha256="fc0c80ce9f66c6966faaca77de0f13e26da564c853e5bfc1e8acd17b65bc2ba0" + ) + version( + "24.0.4", sha256="d126e4690f7c9bf21e541721dac51dcee1f336a882211426bf98a15d80671e3d" + ) + version( + "24.0.3", sha256="5030c5c23824963f82e94ed606e47cce802393fa4cb7757966818baa7012aa21" + ) version( "24.0.2", sha256="8346eb0375910498a83baff6833256c8221c2c06737670687bcf9f1497d9ede9" ) version( - "24.0", sha256="ee631177f5289127f0d3d99b600d437b4bd40c34c1c15388288b72543dc420ad" + "24.0.1", sha256="d9d8e8fd56894032ea98a5ff7885c16c0522a192d9cbf4e131581c65e34efb82" ) + version("24.0", sha256="ee631177f5289127f0d3d99b600d437b4bd40c34c1c15388288b72543dc420ad") version( "23.1.2", sha256="8c01f4768a8f784f0bfa78c82dbd39e5077bbc6880b6f3c3704019eecfca5b3a" ) @@ -87,12 +101,26 @@ class LinaroForge(Package): "21.1.3", sha256="eecbc5686d60994c5468b2d7cd37bebe5d9ac0ba37bd1f98fbfc69b071db541e" ) elif platform.machine() == "x86_64": + version("24.1", sha256="0b96878ab73c20b39c4730ed15f24ca86dc5985637ff5d8e68f55e1e802e5fe3") + version( + "24.0.6", sha256="eab198b964862b4664359ccbec1edb27c2dd3b9fa82bcb4e14fc616a2b0341da" + ) + version( + "24.0.5", sha256="da0d4d6fa9120b5e7c4a248795b7f5da32c4987588ecb7406213c8c9846af2bc" + ) + version( + "24.0.4", sha256="001e7b7cd796d8e807971b99a9ca233c24f8fcd6eee4e9b4bbb0ec8560d44f08" + ) + version( + "24.0.3", sha256="1796559fb86220d5e17777215d3820f4b04aba271782276b81601d5065284526" + ) version( "24.0.2", sha256="e2ad12273d568560e948a9bcdd49b830a2309f247b146bf36579053f99ec59a3" ) version( - "24.0", sha256="5976067e3de14d0838e1069021a4a4a96d048824454668779473ff0776d66a01" + "24.0.1", sha256="70aa6b610d181c12be10e57d2fd3439261e2c6cb23d9f1f33303b85f04cb7bf2" ) + version("24.0", sha256="5976067e3de14d0838e1069021a4a4a96d048824454668779473ff0776d66a01") version( "23.1.2", sha256="675d2d8e4510afefa0405eecb46ac8bf440ff35a5a40d5507dc12d29678a22bf" )