Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoicon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2w
autoicon
Commits
dabcb3e9
Commit
dabcb3e9
authored
2 years ago
by
Oriol Tintó
Browse files
Options
Downloads
Patches
Plain Diff
Update spack_utils.sh
parent
bac8c465
No related branches found
No related tags found
1 merge request
!4
Switching to the advanced configuration method and fixing spack build.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platforms/common/spack_utils.sh
+9
-9
9 additions, 9 deletions
platforms/common/spack_utils.sh
with
9 additions
and
9 deletions
platforms/common/spack_utils.sh
+
9
−
9
View file @
dabcb3e9
...
@@ -4,7 +4,7 @@ function _install_spack() {
...
@@ -4,7 +4,7 @@ function _install_spack() {
git clone
--depth
1
${
SPACK_URL
}
-b
${
SPACK_BRANCH
}
${
SPACK_ROOT
}
git clone
--depth
1
${
SPACK_URL
}
-b
${
SPACK_BRANCH
}
${
SPACK_ROOT
}
fi
fi
_init_spack
_init_spack
${
SPACK_INIT_CMD
}
${
SPACK_ROOT
}
if
[[
$(
spack compiler info
${
SPACK_COMPILER
}
)
]]
;
then
if
[[
$(
spack compiler info
${
SPACK_COMPILER
}
)
]]
;
then
echo
"Found Compiler
$(
spack compiler info
${
SPACK_COMPILER
}
)
"
echo
"Found Compiler
$(
spack compiler info
${
SPACK_COMPILER
}
)
"
...
@@ -16,8 +16,8 @@ function _install_spack() {
...
@@ -16,8 +16,8 @@ function _install_spack() {
}
}
function
_init_spack
()
{
function
_init_spack
()
{
#
SPACK_INIT_CMD=$1
SPACK_INIT_CMD
=
$1
#
SPACK_ROOT=$2
SPACK_ROOT
=
$2
if
[
-z
"
$SPACK_INIT_CMD
"
]
&&
[
!
-z
"
${
SPACK_ROOT
}
"
]
;
then
if
[
-z
"
$SPACK_INIT_CMD
"
]
&&
[
!
-z
"
${
SPACK_ROOT
}
"
]
;
then
echo
"Empty SPACK_INIT_CMD -> trying to source config file of spack root:
$SPACK_ROOT
/share/spack/setup-env.sh"
echo
"Empty SPACK_INIT_CMD -> trying to source config file of spack root:
$SPACK_ROOT
/share/spack/setup-env.sh"
.
$SPACK_ROOT
/share/spack/setup-env.sh
.
$SPACK_ROOT
/share/spack/setup-env.sh
...
@@ -29,12 +29,12 @@ function _init_spack() {
...
@@ -29,12 +29,12 @@ function _init_spack() {
function
load_spack
()
{
function
load_spack
()
{
export
SPACK_INIT_CMD
=
$1
export
SPACK_INIT_CMD
=
$1
export
SPACK_ROOT
=
$
{
2
:-
spack
}
export
SPACK_ROOT
=
$
2
# i.e.:
spack
export
SPACK_URL
=
$
{
3
:-
https
://github.com/spack/spack.git
}
export
SPACK_URL
=
$
3
# i.e.:
https://github.com/spack/spack.git
export
SPACK_BRANCH
=
$
{
4
:-
develop
}
export
SPACK_BRANCH
=
$
4
# i.e.:
develop
export
SPACK_COMPILER
=
$
{
5
:-
gcc
@12.2.0
}
export
SPACK_COMPILER
=
$
5
# i.e.:
gcc@12.2.0
export
SPACK_DISABLE_LOCAL_CONFIG
=
$
{
6
:-
true
}
export
SPACK_DISABLE_LOCAL_CONFIG
=
$
6
# i.e.:
true
export
SPACK_USER_CACHE_PATH
=
$
{
7
:-
${
SPACK_ROOT
}
/spack_user_cache_path
}
export
SPACK_USER_CACHE_PATH
=
$
7
# i.e.:
${SPACK_ROOT}/spack_user_cache_path
echo
"SPACK_INIT_CMD =
$SPACK_INIT_CMD
"
echo
"SPACK_INIT_CMD =
$SPACK_INIT_CMD
"
echo
"SPACK_ROOT =
$SPACK_ROOT
"
echo
"SPACK_ROOT =
$SPACK_ROOT
"
...
...
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