dbcsr: avoid using a set in a message (#45804)

This commit is contained in:
Massimiliano Culpo 2024-08-19 07:35:33 +02:00 committed by GitHub
parent c1852e3706
commit cd682613cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,8 +97,8 @@ class Dbcsr(CMakePackage, CudaPackage, ROCmPackage):
conflicts("+cuda", when="cuda_arch=none", msg=cuda_msg)
dbcsr_amdgpu_targets = {"gfx906", "gfx910", "gfx90a", "gfx90a:xnack-", "gfx90a:xnack+"}
amd_msg = "DBCSR only supports amdgpu_target {0}".format(dbcsr_amdgpu_targets)
dbcsr_amdgpu_targets = ("gfx906", "gfx910", "gfx90a", "gfx90a:xnack-", "gfx90a:xnack+")
amd_msg = f"DBCSR supports these AMD gpu targets: {', '.join(dbcsr_amdgpu_targets)}"
for arch in ROCmPackage.amdgpu_targets:
if arch not in dbcsr_amdgpu_targets: