You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[OpenMP][MI300] Revised the APU detection algorithm. Only for a GFX942 the last bit of the chip id is used to distinguish between an MI300A and MI300X. There is only a single iteration over the agent vector necessary instead of three, as before.
Copy file name to clipboardExpand all lines: openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
+27-52Lines changed: 27 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -3430,6 +3430,7 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
3430
3430
if (auto Err = HostDevice->init())
3431
3431
returnstd::move(Err);
3432
3432
3433
+
#if0//<<<<<<< HEAD
3433
3434
#ifdef OMPT_SUPPORT
3434
3435
::OmptCallbackInit();
3435
3436
#endif
@@ -3439,6 +3440,9 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
3439
3440
// check for dGPUs with USM support
3440
3441
hasGfx90aDevice();
3441
3442
hasMI300xDevice();
3443
+
#else//=======
3444
+
scanForUSMCapableDevices();
3445
+
#endif//>>>>>>> 1abd5de10b93 ([OpenMP][MI300] Revised the APU detection algorithm. Only for a GFX942 the last bit of the chip id is used to distinguish between an MI300A and MI300X. There is only a single iteration over the agent vector necessary instead of three, as before.)
3442
3446
3443
3447
readEnvVars();
3444
3448
@@ -3468,40 +3472,27 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
0 commit comments