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
c149fd6c
Commit
c149fd6c
authored
7 months ago
by
Nicolas Richart
Browse files
Options
Downloads
Patches
Plain Diff
Adapting the oneapi definitions
parent
7b06ae5b
No related branches found
No related tags found
1 merge request
!8
Activating all clusters
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci/setup_spack.sh
+27
-19
27 additions, 19 deletions
ci/setup_spack.sh
stacks/pinot-noir/definitions_stack.yaml
+2
-2
2 additions, 2 deletions
stacks/pinot-noir/definitions_stack.yaml
stacks/pinot-noir/spack_oneapi.yaml
+14
-6
14 additions, 6 deletions
stacks/pinot-noir/spack_oneapi.yaml
with
43 additions
and
27 deletions
ci/setup_spack.sh
+
27
−
19
View file @
c149fd6c
...
...
@@ -29,27 +29,38 @@ then
--without-view
${
environment
}
fi
echo
"Copying cp
${
STACK_CONFIG_PATH
}
/spack.yaml to
${
SPACK_SYSTEM_CONFIG_PATH
}
/"
cp
${
STACK_CONFIG_PATH
}
/spack.yaml
${
SPACK_SYSTEM_CONFIG_PATH
}
cp
-r
"
${
STACK_CONFIG_PATH
}
/templates"
${
SPACK_SYSTEM_CONFIG_PATH
}
declare
-A
file_mapping
file_mapping[
"_common"
]=
""
file_mapping[
"_stack"
]=
"_stack"
file_mapping[
"_acc_
${
acc_type
}
"
]=
"_accel"
file_mapping[
"_
${
environment
}
"
]=
"_env"
declare
-A
placeholders
placeholders[
"{target}"
]=
"
${
target
}
"
placeholders[
"{gcc_version}"
]=
$(
jq
-Mrc
'.stack.compilers.gcc.version'
${
STACK_CONFIG
}
)
if
[
"
${
accelerator
}
"
!=
"none"
]
then
placeholders[
"{
${
acc_type
}
_arch}"
]=
"
${
acc_arch
}
"
fi
replace_placholders
()
{
dst
=
$1
declare
-A
placeholders
placeholders[
"{target}"
]=
"
${
target
}
"
placeholders[
"{gcc_version}"
]=
$(
jq
-Mrc
'.stack.compilers.gcc.version'
${
STACK_CONFIG
}
)
if
[
"
${
accelerator
}
"
!=
"none"
]
then
placeholders[
"{
${
acc_type
}
_arch}"
]=
"
${
acc_arch
}
"
fi
for
ph
in
${
!placeholders[@]
}
do
rep
=
${
placeholders
[
$ph
]
}
sed
-i
-e
"s/
$ph
/
$rep
/g"
"
$dst
"
done
}
echo
"Copying cp
${
STACK_CONFIG_PATH
}
/spack.yaml to
${
SPACK_SYSTEM_CONFIG_PATH
}
/"
cp
${
STACK_CONFIG_PATH
}
/spack.yaml
${
SPACK_SYSTEM_CONFIG_PATH
}
replace_placholders
${
SPACK_SYSTEM_CONFIG_PATH
}
/spack.yaml
cp
-r
"
${
STACK_CONFIG_PATH
}
/templates"
${
SPACK_SYSTEM_CONFIG_PATH
}
echo
blip
for
file
in
mirrors packages concretizer config definitions modules
do
...
...
@@ -62,11 +73,7 @@ do
echo
"Copying
$src
to
$dst
"
cp
"
$src
"
"
$dst
"
for
ph
in
${
!placeholders[@]
}
do
rep
=
${
placeholders
[
$ph
]
}
sed
-i
-e
"s/
$ph
/
$rep
/g"
"
$dst
"
done
replace_placholders
${
dst
}
fi
done
done
...
...
@@ -244,5 +251,6 @@ do
if
[
-e
${
STACK_CONFIG_PATH
}
/spack_
${
name
}
.yaml
]
then
cp
${
STACK_CONFIG_PATH
}
/spack_
${
name
}
.yaml
${
SPACK_SYSTEM_CONFIG_PATH
}
/spack.yaml
replace_placholders
${
SPACK_SYSTEM_CONFIG_PATH
}
/spack.yaml
fi
done
This diff is collapsed.
Click to expand it.
stacks/pinot-noir/definitions_stack.yaml
+
2
−
2
View file @
c149fd6c
...
...
@@ -224,7 +224,7 @@ definitions:
-
mpi_blas_codes
:
-
arpack-ng ++mpi
-
hypre@2.31.0
-
mumps@5.6.2
-
mumps
++mpi
@5.6.2
-
superlu-dist@8.2.1
-
gcc_mpi_blas_codes
:
...
...
@@ -243,7 +243,7 @@ definitions:
-
quantum-espresso
-
mpi_blas_python_codes
:
-
petsc
-
petsc
++mpi
-
slepc
-
gcc_mpi_blas_python_codes
:
...
...
This diff is collapsed.
Click to expand it.
stacks/pinot-noir/spack_oneapi.yaml
+
14
−
6
View file @
c149fd6c
...
...
@@ -32,7 +32,7 @@ spack:
require
:
[
'
intel-oneapi-mpi'
]
scalapack
:
require
:
[
'
intel-oneapi-mkl'
]
require
:
[
'
intel-oneapi-mkl
+cluster
'
]
icu4c
:
require
:
[
'
%gcc'
]
...
...
@@ -42,6 +42,19 @@ spack:
-
spec
:
'
+allow-unsupported-compilers'
when
:
'
%oneapi'
intel-oneapi-mkl
:
require
:
-
'
%oneapi
^intel-oneapi-runtime
target={target}'
intel-oneapi-mpi
:
require
:
[
'
%oneapi
^intel-oneapi-runtime
target={target}'
]
intel-oneapi-tbb
:
require
:
[
'
%oneapi
^intel-oneapi-runtime
target={target}'
]
intel-oneapi-runtime
:
require
:
[
'
%oneapi
target={target}
^gcc-runtime
target=x86_64_v3'
]
definitions
:
# -------------------------------------------------------------------------
# PE definition
...
...
@@ -88,7 +101,6 @@ spack:
-
matrix
:
-
[
$python_blas_codes
]
-
[
$^python_oneapi
]
-
[
$^blas_oneapi
]
-
[
$%compiler_oneapi
]
...
...
@@ -99,20 +111,16 @@ spack:
-
matrix
:
-
[
$mpi_python_codes
]
-
[
$^python_oneapi
]
-
[
$^mpi_oneapi
]
-
[
$%compiler_oneapi
]
-
matrix
:
-
[
$mpi_blas_codes
]
-
[
$^blas_oneapi
]
-
[
$^mpi_oneapi
]
-
[
$%compiler_oneapi
]
-
matrix
:
-
[
$mpi_blas_python_codes
]
-
[
$^python_oneapi
]
-
[
$^blas_oneapi
]
-
[
$^mpi_oneapi
]
-
[
$%compiler_oneapi
]
...
...
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