From 926e311f3cebe1a531d5897f7f6fe0818142a75b Mon Sep 17 00:00:00 2001 From: Brian Van Essen Date: Mon, 6 Jun 2022 14:38:58 +0200 Subject: [PATCH] dihydrogen: propagate `cuda_arch` to nvshmem (#30886) --- var/spack/repos/builtin/packages/dihydrogen/package.py | 1 + 1 file changed, 1 insertion(+) diff --git a/var/spack/repos/builtin/packages/dihydrogen/package.py b/var/spack/repos/builtin/packages/dihydrogen/package.py index cfd14ae805..957419b64a 100644 --- a/var/spack/repos/builtin/packages/dihydrogen/package.py +++ b/var/spack/repos/builtin/packages/dihydrogen/package.py @@ -72,6 +72,7 @@ class Dihydrogen(CMakePackage, CudaPackage, ROCmPackage): for arch in CudaPackage.cuda_arch_values: depends_on('aluminum cuda_arch=%s' % arch, when='+al +cuda cuda_arch=%s' % arch) + depends_on('nvshmem cuda_arch=%s' % arch, when='+nvshmem +cuda cuda_arch=%s' % arch) # variants +rocm and amdgpu_targets are not automatically passed to # dependencies, so do it manually.