Do not set CMAKE_HIP_ARCHITECTURES if none specified (#33156)
This commit is contained in:
		| @@ -150,7 +150,8 @@ def cmake_args(self): | |||||||
|                 args += [self.define("__skip_rocmclang", True)] |                 args += [self.define("__skip_rocmclang", True)] | ||||||
|         if self.spec.satisfies("@0.8: +rocm"): |         if self.spec.satisfies("@0.8: +rocm"): | ||||||
|             rocm_archs = spec.variants["amdgpu_target"].value |             rocm_archs = spec.variants["amdgpu_target"].value | ||||||
|             rocm_archs = ";".join(rocm_archs) |             if "none" not in rocm_archs: | ||||||
|             args.append(self.define("CMAKE_HIP_ARCHITECTURES", rocm_archs)) |                 rocm_archs = ";".join(rocm_archs) | ||||||
|  |                 args.append(self.define("CMAKE_HIP_ARCHITECTURES", rocm_archs)) | ||||||
| 
 | 
 | ||||||
|         return args |         return args | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Auriane R
					Auriane R