Skip to content

Commit 272c663

Browse files
committed
ROCR_VISIBLE_DEVICES instead of HIP_VISIBLE_DEVICES
Signed-off-by: Steven Hahn <hahnse@ornl.gov>
1 parent 5de413f commit 272c663

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/wfbench

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ class GPUBenchmark:
281281
f"CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES={self.device} {this_dir.joinpath('./gpu_benchmark')} {self.work} {self.duration}"]
282282
else:
283283
gpu_prog = [
284-
f"HIP_DEVICE_ORDER=PCI_BUS_ID HIP_VISIBLE_DEVICES={self.device} {this_dir.joinpath('./gpu_benchmark')} {self.work} {self.duration}"]
284+
f"HIP_DEVICE_ORDER=PCI_BUS_ID ROCR_VISIBLE_DEVICES={self.device} {this_dir.joinpath('./gpu_benchmark')} {self.work} {self.duration}"]
285285
else:
286286
log_debug(f"Running GPU benchmark for {self.work} units of work")
287287
if shutil.which("nvidia-smi") is not None:
288288
gpu_prog = [
289289
f"CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES={self.device} {this_dir.joinpath('./gpu_benchmark')} {self.work}"]
290290
else:
291291
gpu_prog = [
292-
f"HIP_DEVICE_ORDER=PCI_BUS_ID HIP_VISIBLE_DEVICES={self.device} {this_dir.joinpath('./gpu_benchmark')} {self.work}"]
292+
f"HIP_DEVICE_ORDER=PCI_BUS_ID ROCR_VISIBLE_DEVICES={self.device} {this_dir.joinpath('./gpu_benchmark')} {self.work}"]
293293
p = subprocess.Popen(gpu_prog, shell=True)
294294
return ProcessHandle(p)
295295

0 commit comments

Comments
 (0)