You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user can then manually customise specs, e.g. `%fortran=nvhpc`, on a per-package basis.
6
+
7
+
This approach is a little ad-hoc, but gets the job done for now.
8
+
9
+
For a future change, I would propose adding a new `toolchain` field to the field that lets the recipe author provide a specific toolchain that would be implemented as a Spack toolchain or using a `require`
10
+
11
+
```
12
+
default:
13
+
compiler: [gcc, nvhpc]
14
+
toolchain:
15
+
c: gcc
16
+
cxx: gcc
17
+
fortran: nvhpc
18
+
mpi:
19
+
spec: cray-mpich@8.1.30
20
+
gpu: cuda
21
+
specs:
22
+
...
23
+
```
24
+
25
+
By not using "spack syntax" for the `toolchain` spec, we would have the freedom to generate an elaborate `require` statement, or create a proper `toolchain`.
26
+
27
+
## working
28
+
1
29
TODO:
2
30
- remove the requirement (which is overly broad and blocks us from using `requires` below)
0 commit comments