Skip to content

Commit

Permalink
Updated example config file for new spac yaml format
Browse files Browse the repository at this point in the history
  • Loading branch information
sampollard committed Oct 27, 2021
1 parent 99cded8 commit f254b93
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions Spack.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,22 @@ By default, Spack doesn't 'see' anything on your system - including things like
This can be limited by adding a `packages.yaml` to your `$HOME/.spack` folder that includes CMake (and CUDA, if applicable). For example, your `packages.yaml` file could be:
````yaml
packages:
cuda:
modules:
cuda@10.1.243: [cuda/10.1.243]
paths:
cuda@10.1.243:
/opt/local/ppc64le-pwr8-nvidia/cuda/10.1.243
buildable: false
cmake:
modules:
cmake: [cmake/3.16.8]
paths:
cmake:
/opt/local/ppc64le/cmake/3.16.8
buildable: false
cuda:
buildable: false
externals:
- prefix: /opt/local/ppc64le-pwr8-nvidia/cuda/10.1.243
spec: cuda@10.1.243
- modules:
- cuda/10.1.243
spec: cuda@10.1.243
cmake:
buildable: false
externals:
- prefix: /opt/local/ppc64le/cmake/3.16.8
spec: cmake@3.16.8
- modules:
- cmake/3.16.8
spec: cmake@3.16.8
````
The `modules` entry is only necessary on systems that require loading Modules (i.e. most DOE systems).
The `buildable` flag is useful to make sure Spack crashes if there is a path error,
Expand Down

0 comments on commit f254b93

Please sign in to comment.