Commit c6d46a2
[ROCm][Bugfix] Return empty UUID string when amdsmi uuid query fails
RocmPlatform.get_device_uuid caught AmdSmiException from
amdsmi_get_gpu_device_uuid but did not return, leaving device_uuid
unbound. The trailing `return device_uuid` then raised
UnboundLocalError, masking the original amdsmi error. Return "" on
failure, matching the handling of the preceding handle-query block.
Signed-off-by: Chuan Li <chuali@amd.com>
Co-authored-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 6472131 commit c6d46a2
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
| 756 | + | |
756 | 757 | | |
757 | 758 | | |
758 | 759 | | |
| |||
0 commit comments