rocm: make amdgpu_target sticky (#34591)

The sticky property will prevent clingo from changing the amdgpu_target
to work around conflicts. This is the same behaviour as was adopted for
cuda_arch in 055c9d125d.
This commit is contained in:
Cory Bloor
2022-12-21 12:21:20 -07:00
committed by GitHub
parent 2ef026b8c6
commit e60e74694f
11 changed files with 14 additions and 11 deletions

View File

@@ -132,6 +132,7 @@ class ROCmPackage(PackageBase):
"amdgpu_target",
description="AMD GPU architecture",
values=spack.variant.any_combination_of(*amdgpu_targets),
sticky=True,
when="+rocm",
)