Skip to content
Snippets Groups Projects
Commit 04309d77 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Adapting information for modules

parent 54cccbbe
No related branches found
No related tags found
No related merge requests found
Pipeline #200219 failed
Showing
with 67 additions and 93 deletions
...@@ -32,6 +32,7 @@ do ...@@ -32,6 +32,7 @@ do
echo "Copying ${STACK_CONFIG_PATH}/${file}.yaml to ${SPACK_SYSTEM_CONFIG_PATH}" echo "Copying ${STACK_CONFIG_PATH}/${file}.yaml to ${SPACK_SYSTEM_CONFIG_PATH}"
cp "${STACK_CONFIG_PATH}/${file}.yaml" \ cp "${STACK_CONFIG_PATH}/${file}.yaml" \
${SPACK_SYSTEM_CONFIG_PATH} ${SPACK_SYSTEM_CONFIG_PATH}
cp "${STACK_CONFIG_PATH}/${file}.yaml" spack/etc/spack
fi fi
if [ -e "${STACK_CONFIG_PATH}/${file}_stack.yaml" ]; then if [ -e "${STACK_CONFIG_PATH}/${file}_stack.yaml" ]; then
...@@ -77,6 +78,28 @@ mirrors: ...@@ -77,6 +78,28 @@ mirrors:
${mirrors} ${mirrors}
EOF EOF
cp "${SPACK_SYSTEM_CONFIG_PATH}/mirrors.yaml" spack/etc/spack
echo "Setting up packages"
echo "packages:" > ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
export system_compiler=$(jq -Mrc '
.stack
| .system_arch as $arch
| .system_compiler
| to_entries
| .[].value
| "\(.compiler)@\(.version) \($arch)"
' ${STACK_CONFIG})
jq -Mrc '
.stack.system_packages
| map(" \(.):\n require:\n - spec: \"%\(env.system_compiler)\"")
| .[]
' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
cp "${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml" spack/etc/spack
echo "Setting up extra repos" echo "Setting up extra repos"
EXTERNAL_REPOS=$(jq -r '.spack.repos | keys[]' ${STACK_CONFIG}) EXTERNAL_REPOS=$(jq -r '.spack.repos | keys[]' ${STACK_CONFIG})
...@@ -104,6 +127,8 @@ do ...@@ -104,6 +127,8 @@ do
fi fi
done done
cp "${SPACK_SYSTEM_CONFIG_PATH}/repos.yaml" spack/etc/spack
echo "Setting up buildcache" echo "Setting up buildcache"
spack/bin/spack gpg trust \ spack/bin/spack gpg trust \
...@@ -127,19 +152,3 @@ spack/bin/spack buildcache keys \ ...@@ -127,19 +152,3 @@ spack/bin/spack buildcache keys \
--trust --trust
#spack/bin/spack buildcache update-index /buildcache #spack/bin/spack buildcache update-index /buildcache
echo "packages:" > ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
export system_compiler=$(jq -Mrc '
.stack
| .system_arch as $arch
| .system_compiler
| to_entries
| .[].value
| "\(.compiler)@\(.version) \($arch)"
' ${STACK_CONFIG})
jq -Mrc '
.stack.system_packages
| map(" \(.):\n require:\n - spec: \"%\(env.system_compiler)\"")
| .[]
' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
definitions:
- cuda_system_codes:
- cuda
- cudnn
- cuda_serial_codes:
- nccl
definitions: []
definitions: []
definitions_empty.yaml
\ No newline at end of file
definitions_cuda.yaml
\ No newline at end of file
definitions:
- cuda_system_codes:
- cuda
- cudnn
- cuda_serial_codes:
- nccl
definitions_cuda.yaml
\ No newline at end of file
definitions:
- cuda_system_codes:
- cuda
- cudnn
- cuda_serial_codes:
- nccl
definitions_cuda.yaml
\ No newline at end of file
...@@ -4,7 +4,7 @@ modules: ...@@ -4,7 +4,7 @@ modules:
lmod: lmod:
hash_length: 0 hash_length: 0
core_compilers: core_compilers:
- gcc@11.4.1 - gcc@11.2.1
hierarchy: hierarchy:
- mpi - mpi
all: all:
...@@ -47,7 +47,7 @@ modules: ...@@ -47,7 +47,7 @@ modules:
openmpi: openmpi:
environment: environment:
set: set:
SLURM_MPI_TYPE: pmi2 SLURM_MPI_TYPE: pmix
OMPI_MCA_btl_openib_warn_default_gid_prefix: '0' OMPI_MCA_btl_openib_warn_default_gid_prefix: '0'
append_path: append_path:
JULIA_LOAD_PATH: ":/ssoft/spack/external/julia/syrah.v1/mpi" JULIA_LOAD_PATH: ":/ssoft/spack/external/julia/syrah.v1/mpi"
......
modules:
default:
lmod: {}
modules_empty.yaml
\ No newline at end of file
modules_empty.yaml
\ No newline at end of file
modules_empty.yaml
\ No newline at end of file
modules:
default:
lmod:
openmpi:
environment:
set:
OMPI_MCA_pml: 'ucx'
OMPI_MCA_osc: 'ucx'
UCX_NET_DEVICES: 'mlx5_2:1,mlx5_3:1'
modules_kuma_h100.yaml
\ No newline at end of file
...@@ -9,48 +9,6 @@ packages: ...@@ -9,48 +9,6 @@ packages:
- spec: "^libiconv" - spec: "^libiconv"
when: "^iconv" when: "^iconv"
# - spec: ^intel-oneapi-mpi
# when: '%oneapi ^mpi'
# - spec: ^openmpi
# when: '%gcc ^mpi'
# - spec: ^openmpi
# when: '%aocc ^mpi'
# - spec: ^nvhpc+mpi
# when: '%nvhpc ^mpi'
# - spec: ^openblas %gcc
# when: '%gcc ^blas'
# - spec: ^eigen %gcc
# when: '%gcc ^eigen'
# - spec: ^kokkos %gcc
# when: '%gcc ^kokkos'
# - spec: ^openblas
# when: '%gcc ^lapack'
# - spec: ^intel-oneapi-mkl
# when: '%oneapi ^blas'
# - spec: ^intel-oneapi-mkl
# when: '%oneapi ^lapack'
# - spec: ^nvhpc+blas
# when: '%nvhpc ^blas'
# - spec: ^nvhpc+lapack
# when: '%nvhpc ^lapack'
# - spec: ^openblas
# when: '%gcc ^py-numpy'
# - spec: ^intel-oneapi-mkl
# when: '%oneapi ^py-numpy'
- spec: '+ipo' - spec: '+ipo'
when: '%gcc' when: '%gcc'
...@@ -102,9 +60,12 @@ packages: ...@@ -102,9 +60,12 @@ packages:
prefer: ['~cluster'] prefer: ['~cluster']
kokkos: kokkos:
prefer: ['+openmp', '+openmptarget', '+numactl', '+memkind', '+threads', prefer: ['+openmp', '+numactl', '+memkind', '+threads',
'+aggressive_vectorization'] '+aggressive_vectorization']
kokkos-kernel:
prefer: ['+openmp', '+threads']
lammps: lammps:
require: ['build_type=Release', '+asphere', '+atc', '+body', '+class2', require: ['build_type=Release', '+asphere', '+atc', '+body', '+class2',
'+colloid', '+compress', '+coreshell', '+dipole', '+diffraction', '+extra-dump', '+colloid', '+compress', '+coreshell', '+dipole', '+diffraction', '+extra-dump',
...@@ -158,6 +119,9 @@ packages: ...@@ -158,6 +119,9 @@ packages:
py-torch: py-torch:
require: ['+mpi'] require: ['+mpi']
scotch:
prefer: ['~mpi']
suite-sparse: suite-sparse:
require: require:
- spec: '+graphblas' - spec: '+graphblas'
...@@ -167,7 +131,7 @@ packages: ...@@ -167,7 +131,7 @@ packages:
ucx: ucx:
require: require:
- spec: +rdmacm +rc +dc +ud +cma +verbs - spec: '+rdmacm +rc +dc +ud +cma +verbs'
zlib-ng: zlib-ng:
require: ['build_system=autotools'] require: ['build_system=autotools']
......
...@@ -5,7 +5,7 @@ spack: ...@@ -5,7 +5,7 @@ spack:
- packages_stack.yaml - packages_stack.yaml
- packages_env.yaml - packages_env.yaml
- modules_stack.yaml - modules_env.yaml
- definitions_env.yaml - definitions_env.yaml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment