# Shared access spack configuration

**URL:** <https://forum.access-hive.org.au/t/shared-access-spack-configuration/227>\
**Category:** spack\
**Tags:** python, spack\
**Created:** [2 December 2022 06:16 UTC](https://forum.access-hive.org.au/t/shared-access-spack-configuration/227 "2022-12-02T06:16:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Aidan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aidan/32/42_2.png) [@Aidan](https://forum.access-hive.org.au/u/Aidan)\
**Post date:** [6 December 2022 04:40 UTC](https://forum.access-hive.org.au/t/shared-access-spack-configuration/227/5 "2022-12-06T04:40:23Z")

</div>

Looking at these examples from other HPC centres, it might be this could be done much more concisely, but it might require the modules to set the correct environment variables

> <https://github.com/spack/spack-configs/blob/main/NERSC/cori/packages.yaml>

e.g.

```yaml
    netcdf:
        buildable: false
        modules:
            netcdf@4.4.1.1.6%gcc+parallel-netcdf+mpi: cray-netcdf-hdf5parallel/4.4.1.1.6
            netcdf@4.4.1.1.6%intel+parallel-netcdf+mpi: cray-netcdf-hdf5parallel/4.4.1.1.6
            netcdf@4.4.1.1.6%cce+parallel-netcdf+mpi: cray-netcdf-hdf5parallel/4.4.1.1.6
            netcdf@4.6.1.3%gcc+parallel-netcdf+mpi: cray-netcdf-hdf5parallel/4.6.1.3
            netcdf@4.6.1.3%intel+parallel-netcdf+mpi: cray-netcdf-hdf5parallel/4.6.1.3
            netcdf@4.6.1.3%cce+parallel-netcdf+mpi: cray-netcdf-hdf5parallel/4.6.1.3
            netcdf@4.4.1.1.6%gcc~parallel-netcdf~mpi: cray-netcdf/4.4.1.1.6
            netcdf@4.4.1.1.6%intel~parallel-netcdf~mpi: cray-netcdf/4.4.1.1.6
            netcdf@4.4.1.1.6%cce~parallel-netcdf~mpi: cray-netcdf/4.4.1.1.6
            netcdf@4.6.1.3%gcc~parallel-netcdf~mpi: cray-netcdf/4.6.1.3
            netcdf@4.6.1.3%intel~parallel-netcdf~mpi: cray-netcdf/4.6.1.3
            netcdf@4.6.1.3%cce~parallel-netcdf~mpi: cray-netcdf/4.6.1.3
    netcdf-fortran:
        buildable: false
        modules:
            netcdf-fortran@4.4.1.1.6%intel: cray-netcdf-hdf5parallel/4.4.1.1.6
            netcdf-fortran@4.4.1.1.6%cce: cray-netcdf-hdf5parallel/4.4.1.1.6
            netcdf-fortran@4.4.1.1.6%gcc: cray-netcdf-hdf5parallel/4.4.1.1.6
            netcdf-fortran@4.6.1.3%intel: cray-netcdf-hdf5parallel/4.6.1.3
            netcdf-fortran@4.6.1.3%cce: cray-netcdf-hdf5parallel/4.6.1.3
            netcdf-fortran@4.6.1.3%gcc: cray-netcdf-hdf5parallel/4.6.1.3

```

---

_[View the full topic](https://forum.access-hive.org.au/t/shared-access-spack-configuration/227)._
