diff --git a/configs/svcusr-spack/config.yaml b/configs/svcusr-spack/config.yaml new file mode 100644 index 0000000..a5e23fc --- /dev/null +++ b/configs/svcusr-spack/config.yaml @@ -0,0 +1,2 @@ +config: + environments_root: /afs/psi.ch/sys/spack/spack-psi/env/$os/$target_family/admin diff --git a/configs/users/concretizer.yaml b/configs/users/concretizer.yaml new file mode 100644 index 0000000..a845639 --- /dev/null +++ b/configs/users/concretizer.yaml @@ -0,0 +1,7 @@ +concretizer: + targets: + # Determine whether we want to target specific or generic + # microarchitectures. Valid values are: "microarchitectures" or "generic". + # An example of "microarchitectures" would be "skylake" or "bulldozer", + # while an example of "generic" would be "aarch64" or "x86_64_v4". + granularity: generic diff --git a/configs/users/config.yaml b/configs/users/config.yaml new file mode 100644 index 0000000..8319464 --- /dev/null +++ b/configs/users/config.yaml @@ -0,0 +1,17 @@ +# +# Ansible managed template: develop/config.yaml.j2 +# + +config: + environments_root: /afs/psi.ch/sys/spack/user/$user/spack-environment/$os/$target_family + install_tree: + root: "/afs/psi.ch/sys/spack/user/$user/spack-install" + allow_sgid: false + build_stage: + - "/scratch/$user/.spack/spack-stage" + source_cache: "/scratch/$user/.spack/spack-cache/source_cache/$spack_short_version" + misc_cache: "/scratch/$user/.spack/spack-cache/misc_cache/$spack_short_version" + template_dirs: + - /afs/psi.ch/sys/spack/spack-psi/templates + concretization_cache: + enable: false diff --git a/configs/users/modules.yaml b/configs/users/modules.yaml new file mode 100644 index 0000000..8e57972 --- /dev/null +++ b/configs/users/modules.yaml @@ -0,0 +1,77 @@ +modules: + prefix_inspections: + ./bin: + - PATH + ./man: + - MANPATH + ./share/man: + - MANPATH + ./share/aclocal: + - ACLOCAL_PATH + ./lib/pkgconfig: + - PKG_CONFIG_PATH + ./lib64/pkgconfig: + - PKG_CONFIG_PATH + ./share/pkgconfig: + - PKG_CONFIG_PATH + ./lib64: + - LD_LIBRARY_PATH + - LIBRARY_PATH + ./lib: + - LD_LIBRARY_PATH + - LIBRARY_PATH + ./include: + - C_INCLUDE_PATH + - CPLUS_INCLUDE_PATH + - CPATH + ./: + - CMAKE_PREFIX_PATH + default: + roots: + lmod: "/afs/psi.ch/sys/spack/user/$user/spack-install/modulefiles" + lmod: + all: + autoload: direct # or `run` + template: 'user_hierachical_paths.lua' + suffixes: + cuda_arch=60: 'SM60' + cuda_arch=80: 'A100' + cuda_arch=90: 'GH200' + +cuda: 'gpu' + +openmp: 'omp' + threads=openmp: 'omp' + ^cray-mpich ^cuda: + environment: + set: + MPICH_GPU_SUPPORT_ENABLED: '1' + prepend_path: + LD_PRELOAD: '/opt/cray/pe/mpich/8.1.28/gtl/lib/libmpi_gtl_cuda.so' + cp2k: + environment: + set: + CP2K_DATA_DIR: "{prefix}/share/cp2k/data" + core_compilers: + - gcc@7.5.0 + core_specs: + - zlib-ng + - cray-pmi + - xz + - boost + - json-c + - libconfig + - libfuse + include: + - gcc + - cce + - intel + - nvhpc + - oneapi + hash_length: 0 + projections: + all: '{name}/{version}-{hash:4}' + gcc: '{name}/{version}' + nvhpc: '{name}/{version}' + cce: '{name}/{version}' + exclude: ['autoconf', 'automake', 'krb5', 'libxml2', 'openssh', 'gcc-runtime', 'glibc', 'gmp', 'mpfr', 'mpc', 'libpciaccess', 'slurm', 'm4', 'gnuconfig', 'perl', 'libevent', 'numactl', 'openssl','pkg-config', 'diffutils', 'findutils', 'gettext', 'libsigsegv', 'libtool', 'ncurses', 'xz', 'json-c'] + enable: + - lmod diff --git a/configs/users/repos.yaml b/configs/users/repos.yaml new file mode 100644 index 0000000..676415c --- /dev/null +++ b/configs/users/repos.yaml @@ -0,0 +1,9 @@ +# +# Ansible managed template: develop/repos.yaml.j2 +# + +repos: + builtin: + destination: /afs/psi.ch/sys/spack/spack-packages + psi: /afs/psi.ch/sys/spack/spack-psi +