FIX: require target sandybridge when using nvhpc

This commit is contained in:
svcusr-spack (Resp. Germann Elsa Sylvia)
2024-06-17 13:10:57 +02:00
parent 71a78a1014
commit f89fe43f25

View File

@ -7,6 +7,10 @@ packages:
lapack: [openblas, nvhpc] lapack: [openblas, nvhpc]
mpi: [openmpi, mpich, intel-oneapi-mpi] mpi: [openmpi, mpich, intel-oneapi-mpi]
pkgconfig: [pkg-config] pkgconfig: [pkg-config]
require:
- spec: 'target=sandybridge'
when: "%nvhpc"
message: "nvhpc compilers cannot target generic x86_64 microarchitecture."
target: [x86_64] target: [x86_64]
# Default GPU arch # Default GPU arch
variants: variants: