Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
doku:spack [2021/08/27 08:35] – jz | doku:spack [2023/05/17 14:39] – msiegel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | == List available Packages | + | ===== SPACK - a package manager for HPC systems ===== |
- | Most software on VSC4 is installed via spack, to list available software packages use: | + | [[https:// |
+ | |||
+ | |||
+ | ==== New Spack without Environments ==== | ||
+ | |||
+ | [[doku: | ||
+ | |||
+ | ---- | ||
+ | ==== List available Packages ==== | ||
+ | |||
+ | Most software on VSC4/5 is installed via spack, to list available software packages use: | ||
< | < | ||
Line 33: | Line 43: | ||
</ | </ | ||
- | The latter lists all the dependencies of the package. | + | The latter lists all dependencies of the package. |
+ | **Dependencies**: | ||
+ | e.g.: | ||
+ | < | ||
+ | spack find -lvd py-scipy %intel@19.0.5.281 ^python@3.7.4 ^intel-mkl | ||
+ | </ | ||
+ | This will list all available versions of '' | ||
+ | List all currently loaded packages: | ||
< | < | ||
- | spack find -lvd py-scipy %intel@19.0.5.281 ^python@3.7.4 ^intel-mkl | + | spack find --loaded |
</ | </ | ||
+ | |||
+ | ---- | ||
+ | ==== Loading modules ==== | ||
+ | |||
+ | The '' | ||
+ | < | ||
+ | spack load < | ||
+ | </ | ||
+ | '' | ||
+ | |||
+ | < | ||
+ | spack load openmpi@4.1.0%gcc@9.1.0 | ||
+ | </ | ||
+ | |||
+ | This will load the corresponding module: | ||
+ | < | ||
+ | # module list | ||
+ | Currently Loaded Modulefiles: | ||
+ | 1) openmpi/ | ||
+ | </ | ||
+ | |||
+ | and is equivalent to loading the module as: | ||
+ | |||
+ | < | ||
+ | module load openmpi/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | Alternatively a package can be loaded by using the unique hash of a package. | ||
+ | The option '' | ||
+ | |||
+ | < | ||
+ | # spack find -l openmpi@4.1.0%gcc@9.1.0 | ||
+ | ==> 1 installed package | ||
+ | -- linux-centos7-x86_64 / gcc@9.1.0 ----------------------------- | ||
+ | 2cmze2s openmpi@4.1.0 | ||
+ | </ | ||
+ | |||
+ | The hash '' | ||
+ | |||
+ | |||
+ | < | ||
+ | spack load /2cmze2s | ||
+ | </ | ||
+ | |||
+ | Unload all currently loaded packages: | ||
+ | < | ||
+ | spack unload --all | ||
+ | </ | ||
+ |