Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scitas-software-stacks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCITAS
Software stack
scitas-software-stacks
Commits
6537caba
Commit
6537caba
authored
1 year ago
by
Nicolas Richart
Browse files
Options
Downloads
Patches
Plain Diff
Adding a step to install compilers
parent
c6f5f2d6
No related branches found
No related tags found
No related merge requests found
Pipeline
#179297
failed
1 year ago
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+29
-1
29 additions, 1 deletion
.gitlab-ci.yml
config.json
+6
-0
6 additions, 0 deletions
config.json
dockerfiles/rhel9/Dockerfile
+1
-1
1 addition, 1 deletion
dockerfiles/rhel9/Dockerfile
spack.yaml
+1
-4
1 addition, 4 deletions
spack.yaml
with
37 additions
and
6 deletions
.gitlab-ci.yml
+
29
−
1
View file @
6537caba
...
...
@@ -20,7 +20,7 @@ variables:
STACK_PATH
:
"
/work/scitas-ge/richart/ci_cache/stack"
SPACK_DISABLE_LOCAL_CONFIG
:
"
true"
SPACK_USER_CACHE_PATH
:
"
/tmp/spack_cache"
SPACK_SITE_CONFIG_PATH
:
"
/stack/spack/etc"
# ------------------------------------------------------------------------------
.parallel_job
:
image
:
registry.c4science.ch/scitas-stack/rhel:9.3
...
...
@@ -85,7 +85,35 @@ spack:setup:
/spack/spack/bin/spack gpg publish -d /buildcache
fi
-
mkdir /stack/spack/etc
spack:install_compilers
:
stage
:
environment
extends
:
-
.parallel_job
script
:
-
COMPILER_LIST_SPECS=$(jq -r '.stack.compilers | map("\(.spec)@\(.version)")[]' config.json)
-
/spack/spack/bin/spack install
--log-file spack-install.xml
--log-format junit
--fail-fast
--show-log-on-error
--use-cache
${COMPILER_LIST_SPECS}
-
echo "definitions
:
[
compilers
:
[
$
{
COMPILER_LIST_SPECS
}
]]
"
>
compiler_definitions.yaml
-
/spack/spack/bin/spack
compiler
find
--scope
site
/usr
-
|
for
compiler
in
${COMPILER_LIST_SPECS};
do
/spack/spack/bin/spack
compiler
find
--scope
site
$(/spack/spack/bin/spack
location
-i
${compiler})
done
artifacts:
reports:
junit:
spack-install.xml
spack:concretize:
stage:
concretize
...
...
This diff is collapsed.
Click to expand it.
config.json
+
6
−
0
View file @
6537caba
...
...
@@ -11,5 +11,11 @@
"branch"
:
"releases/2024.0.0"
}
}
},
"stack"
:
{
"compilers"
:
{
"gcc"
:
{
"spec"
:
"gcc"
,
"version"
:
"12.2.0"
},
"intel"
:
{
"spec"
:
"intel-oneapi-compilers"
,
"version"
:
"2024.0.2"
}
}
}
}
This diff is collapsed.
Click to expand it.
dockerfiles/rhel9/Dockerfile
+
1
−
1
View file @
6537caba
...
...
@@ -8,7 +8,7 @@ ENV SPACK_DISABLE_LOCAL_CONFIG=true \
RUN
echo
"10.95.33.172 foreman1.hpc.epfl.ch"
>>
/etc/hosts
RUN
curl
-sS
--insecure
\
'https://foreman1.hpc.epfl.ch/register?activation_keys=ak-helvetios&organization_id=1&update_packages=false'
\
-H
'Authorization: Bearer
eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo2LCJpYXQiOjE3MDU1NzI0NjYsImp0aSI6IjdkYjE3ODU1NGRhOWVhOTAxYTJjZTY0MmQ5OTFjODAyYmQzZWU1NDI1YmNjYWY4ODY3NjAwNDYwMGE4YmEyNzYiLCJleHAiOjE3MDU1ODY4NjYsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.ilNKpgg__g5RHlDOuwDxtFiTMKLNc-JvPDyWrgy48Pc'
\
-H
"
'Authorization: Bearer
${
RHEL_TOKEN
}
"
\
| bash
...
...
This diff is collapsed.
Click to expand it.
spack.yaml
+
1
−
4
View file @
6537caba
...
...
@@ -3,12 +3,9 @@ spack:
-
mirrors.yaml
-
packages.yaml
-
repos.yaml
-
compiler_definitions.yaml
definitions
:
-
compilers
:
-
gcc@12.2.0
-
intel-oneapi-compilers
-
when
:
env['environment'] == 'helvetios'
serial_codes_per_cluster
:
-
ucx +rdmacm +rc +dc +ud +cma +mlx5_dv +parameter_checking +thread_multiple +verbs ~cuda ~gdrcopy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment