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
0a350d72
Commit
0a350d72
authored
7 months ago
by
Nicolas Richart
Browse files
Options
Downloads
Patches
Plain Diff
Ensuring gcc comes first
parent
0693153f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
Adding nvhpc to kuma
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci/concretize.sh
+1
-2
1 addition, 2 deletions
ci/concretize.sh
ci/install.sh
+1
-2
1 addition, 2 deletions
ci/install.sh
ci/setup_spack.sh
+23
-28
23 additions, 28 deletions
ci/setup_spack.sh
with
25 additions
and
32 deletions
ci/concretize.sh
+
1
−
2
View file @
0a350d72
...
...
@@ -15,8 +15,7 @@ _compilers=$(jq -Mrc '.stack
| select((.constraint == null) or (.constraint? | index(env.environment)))
'
${
STACK_CONFIG
}
)
compilers_names
=
$(
echo
${
_compilers
}
| jq
-Mrc
'. | "\(.name)"'
)
compilers_names
=
"gcc
$(
echo
${
_compilers
}
| jq
-Mrs
'. | map("\(.name)") | .[]'
| egrep
-v
'^gcc$'
)
"
for
name
in
${
compilers_names
}
do
...
...
This diff is collapsed.
Click to expand it.
ci/install.sh
+
1
−
2
View file @
0a350d72
...
...
@@ -15,8 +15,7 @@ _compilers=$(jq -Mrc '.stack
| select((.constraint == null) or (.constraint? | index(env.environment)))
'
${
STACK_CONFIG
}
)
compilers_names
=
$(
echo
${
_compilers
}
| jq
-Mrc
'. | "\(.name)"'
)
compilers_names
=
"gcc
$(
echo
${
_compilers
}
| jq
-Mrs
'. | map("\(.name)") | .[]'
| egrep
-v
'^gcc$'
)
"
for
name
in
${
compilers_names
}
do
...
...
This diff is collapsed.
Click to expand it.
ci/setup_spack.sh
+
23
−
28
View file @
0a350d72
...
...
@@ -200,8 +200,6 @@ spack/bin/spack \
--install
\
--trust
_compilers
=
$(
jq
-Mrc
'.stack
| .system_arch as $arch
| .compilers
...
...
@@ -211,7 +209,7 @@ _compilers=$(jq -Mrc '.stack
| select((.constraint == null) or (.constraint? | index(env.environment)))
'
${
STACK_CONFIG
}
)
compilers_names
=
$(
echo
${
_compilers
}
| jq
-Mr
c
'. | "\(.name)"'
)
compilers_names
=
"
$(
echo
${
_compilers
}
| jq
-Mr
s
'. |
map(
"\(.name)"
) | .[]'
| egrep
-v
'^gcc$
'
)
"
echo
"List compilers:"
echo
${
_compilers
}
| jq
-C
'.'
...
...
@@ -220,29 +218,26 @@ main_env_path=${STACK_LOCATION}/spack/var/spack/environments/${environment}
for
name
in
${
compilers_names
}
do
if
[
"
$name
"
!=
"gcc"
]
then
source
${
CI_PROJECT_DIR
}
/ci/stack_env.sh
${
name
}
echo
"Configure compiler environment for
${
name
}
"
if
[
!
-e
${
SPACK_SYSTEM_CONFIG_PATH
}
]
then
echo
"
${
SPACK_SYSTEM_CONFIG_PATH
}
does not exist, creating env"
${
STACK_LOCATION
}
/spack/bin/spack
--color
=
always
env
create
--without-view
${
full_environment
}
fi
if
[
${
SPACK_SYSTEM_CONFIG_PATH
}
!=
${
main_env_path
}
]
then
for
file
in
mirrors packages concretizer config definitions modules repos
do
cp
${
main_env_path
}
/
${
file
}*
.yaml
${
SPACK_SYSTEM_CONFIG_PATH
}
done
fi
if
[
-e
${
STACK_CONFIG_PATH
}
/spack_
${
name
}
.yaml
]
then
cp
${
STACK_CONFIG_PATH
}
/spack_
${
name
}
.yaml
${
SPACK_SYSTEM_CONFIG_PATH
}
/spack.yaml
fi
fi
source
${
CI_PROJECT_DIR
}
/ci/stack_env.sh
${
name
}
echo
"Configure compiler environment for
${
name
}
"
if
[
!
-e
${
SPACK_SYSTEM_CONFIG_PATH
}
]
then
echo
"
${
SPACK_SYSTEM_CONFIG_PATH
}
does not exist, creating env"
${
STACK_LOCATION
}
/spack/bin/spack
--color
=
always
env
create
--without-view
${
full_environment
}
fi
if
[
${
SPACK_SYSTEM_CONFIG_PATH
}
!=
${
main_env_path
}
]
then
for
file
in
mirrors packages concretizer config definitions modules repos
do
cp
${
main_env_path
}
/
${
file
}*
.yaml
${
SPACK_SYSTEM_CONFIG_PATH
}
done
fi
if
[
-e
${
STACK_CONFIG_PATH
}
/spack_
${
name
}
.yaml
]
then
cp
${
STACK_CONFIG_PATH
}
/spack_
${
name
}
.yaml
${
SPACK_SYSTEM_CONFIG_PATH
}
/spack.yaml
fi
done
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