Skip to content

Commit

Permalink
Camp: Fix syntax error (spack#48269)
Browse files Browse the repository at this point in the history
* Fix camp syntax error by providing first archs element instead of tuple

* Provide all architectures as semicolon separated list
  • Loading branch information
tdrwenski authored Dec 30, 2024
1 parent 71512f5 commit 337d9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/spack/repos/builtin/packages/camp/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def cmake_args(self):
if spec.satisfies("+rocm"):
options.append("-DHIP_ROOT_DIR={0}".format(spec["hip"].prefix))

archs = self.spec.variants["amdgpu_target"].value
archs = ";".join(self.spec.variants["amdgpu_target"].value)
options.append("-DCMAKE_HIP_ARCHITECTURES={0}".format(archs))
options.append("-DGPU_TARGETS={0}".format(archs))
options.append("-DAMDGPU_TARGETS={0}".format(archs))
Expand Down

0 comments on commit 337d9be

Please sign in to comment.