File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -448,7 +448,8 @@ def tune(
448
448
if visible_device != f"{ self .device_id } " :
449
449
need_device_guard = True
450
450
451
- with torch .cuda .device (self .device_id ) if need_device_guard else nullcontext ():
451
+ with torch .cuda .device (
452
+ self .device_id ) if need_device_guard else nullcontext ():
452
453
for config in tqdm (search_space ):
453
454
try :
454
455
kernel_time = benchmark_config (
@@ -587,8 +588,7 @@ def main(args: argparse.Namespace):
587
588
# Ray will set ROCR_VISIBLE_DEVICES for device visibility
588
589
logger .warning (
589
590
"Ray uses ROCR_VISIBLE_DEVICES to control device accessibility."
590
- "Replacing HIP_VISIBLE_DEVICES with ROCR_VISIBLE_DEVICES."
591
- )
591
+ "Replacing HIP_VISIBLE_DEVICES with ROCR_VISIBLE_DEVICES." )
592
592
val = os .environ ["HIP_VISIBLE_DEVICES" ]
593
593
os .environ ["ROCR_VISIBLE_DEVICES" ] = val
594
594
del os .environ ["HIP_VISIBLE_DEVICES" ]
Original file line number Diff line number Diff line change 61
61
_ROCM_DEVICE_ID_NAME_MAP : Dict [str , str ] = {
62
62
"0x74a0" : "AMD_Instinct_MI300A" ,
63
63
"0x74a1" : "AMD_Instinct_MI300X" ,
64
- "0x74b5" : "AMD_Instinct_MI300X" , # MI300X VF
64
+ "0x74b5" : "AMD_Instinct_MI300X" , # MI300X VF
65
65
"0x74a5" : "AMD_Instinct_MI325X" ,
66
- "0x74b9" : "AMD_Instinct_MI325X" , # MI325X VF
66
+ "0x74b9" : "AMD_Instinct_MI325X" , # MI325X VF
67
67
"0x74a9" : "AMD_Instinct_MI300X_HF" ,
68
68
"0x74bd" : "AMD_Instinct_MI300X_HF" ,
69
69
}
You can’t perform that action at this time.
0 commit comments