File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments