Skip to content

Commit df5097d

Browse files
authored
[Offload] Add default for HSA agent type to silence warning (#145943)
Summary: There's a new one called the AIE (AI Engine). We could handle this, but since we don't use it currently I'm just making it future-proof. Adding the AIE check would require checking the HSA version which isn't worthwhile just yet.
1 parent 938cdb3 commit df5097d

File tree

1 file changed

+3
-0
lines changed
  • offload/plugins-nextgen/amdgpu/src

1 file changed

+3
-0
lines changed

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,6 +2591,9 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
25912591
case HSA_DEVICE_TYPE_DSP:
25922592
TmpCharPtr = "DSP";
25932593
break;
2594+
default:
2595+
TmpCharPtr = "Unknown";
2596+
break;
25942597
}
25952598
Info.add("Device Type", TmpCharPtr);
25962599
}

0 commit comments

Comments
 (0)