Skip to content

Commit

Permalink
spack.md fixing md
Browse files Browse the repository at this point in the history
  • Loading branch information
bclaremar authored May 16, 2024
1 parent 1f1255d commit f668f64
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions docs/software/spack.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ The Spack oriented files are stored in two places:
- linux
- ​compilers.yaml
- packages.yaml


The .yaml files in the .spack/linux directory contains information which tolls you want to include from the UPPMAX system.

- The compilers.yaml file lists the compilers (intel or gcc) modules available to build your software tool.
- The packages.yaml file lists tools available already as modules.

By default, these files are empty but you can copy working "central" files that can be extended for your needs. The content of the files can be larger than the needed packages/compilers, i.e. only the packages /dependencies needed for your installation will be "taken" from these files and the rest will be ignored. Therefore, the UPPMAX staff may update these central files once in a while.
By default, these files are empty but you can copy working "central" files that can be extended for your needs. The content of the files can be larger than the needed packages/compilers, i.e. only the packages /dependencies needed for your installation will be "taken" from these files and the rest will be ignored. Therefore, the UPPMAX staff may update these central files once in a while.

### Get templates

Expand All @@ -85,7 +87,8 @@ $ cp /sw/build/spack/0.17.1/src/spack/share/spack/templates/packages.yaml ~/.spa
```

## Install your program
Check available software applications via Spack:

Check available software applications via Spack:

``` console
$ spack list
Expand Down Expand Up @@ -172,11 +175,11 @@ $ spack install <tool>%<compiler>@<compiler-version>^<dependency>@<version>

Here is a summarizing table

Command |Option
Command |Option
-|-
@ |Which version
% |which compiler
^ |which dependency
@|Which version
%|which compiler
^|which dependency

## Use your tool

Expand All @@ -186,9 +189,9 @@ $ spack load <tool>
$ <tool> [<arguments>]
```

## Develop
## Develop

More to come... Meanwhile:
More to come... Meanwhile:

[Developer guide](https://spack.readthedocs.io/en/latest/developer_guide.html)

Expand All @@ -199,7 +202,7 @@ The builds are by default located here: ``<spack-root>/opt/spack/linux-centos7-b

## Packages and environments

More to come... Meanwhile:
More to come... Meanwhile:

[Packaging guide](https://spack-tutorial.readthedocs.io/en/latest/tutorial_developer_workflows.html)

Expand All @@ -208,6 +211,7 @@ More to come... Meanwhile:
[Environments tutorial](https://spack-tutorial.readthedocs.io/en/latest/tutorial_environments.html)

## Garbage collection

Installing and uninstalling softwares will in the end use up your disk space so it is good practice to do some garbage collection

``` console
Expand Down

0 comments on commit f668f64

Please sign in to comment.