osu-micro-benchmarks: fix AMDGPU_TARGET issue (#48171)

Co-authored-by: Matt Lieber <lieber.31@osu.edu>
This commit is contained in:
MatthewLieber 2024-12-19 05:24:59 -05:00 committed by GitHub
parent 0850e0bf08
commit 93a0c0eafd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ def configure_args(self):
config_args.extend(["--enable-rocm", "--with-rocm=%s" % spec["hip"].prefix]) config_args.extend(["--enable-rocm", "--with-rocm=%s" % spec["hip"].prefix])
rocm_arch = spec.variants["amdgpu_target"].value rocm_arch = spec.variants["amdgpu_target"].value
if "none" not in rocm_arch: if "none" not in rocm_arch:
config_args.append("HCC_AMDGPU_TARGET=" + " ".join(self.hip_flags(rocm_arch))) config_args.append("HCC_AMDGPU_TARGET=" + self.hip_flags(rocm_arch))
if "+papi" in spec: if "+papi" in spec:
config_args.extend(["--enable-papi", "--with-papi=%s" % spec["papi"].prefix]) config_args.extend(["--enable-papi", "--with-papi=%s" % spec["papi"].prefix])