Skip to content

Commit dd8a974

Browse files
dhruvachakzhang2amd
authored andcommitted
[OpenMP] [amdgpu] Fixed bad merge that disabled OMPT device support.
Fix for ROCm/ROCm#2943 Change-Id: I8e1b26a078ef7a47433dc6f6c7418d081dce38ac
1 parent fcd81b4 commit dd8a974

File tree

1 file changed

+0
-8
lines changed
  • openmp/libomptarget/plugins-nextgen/amdgpu/src

1 file changed

+0
-8
lines changed

openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3430,19 +3430,11 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
34303430
if (auto Err = HostDevice->init())
34313431
return std::move(Err);
34323432

3433-
#if 0//<<<<<<< HEAD
34343433
#ifdef OMPT_SUPPORT
34353434
::OmptCallbackInit();
34363435
#endif
34373436

3438-
// Initialize flags for device type:
3439-
hasAPUDevice();
3440-
// check for dGPUs with USM support
3441-
hasGfx90aDevice();
3442-
hasMI300xDevice();
3443-
#else//=======
34443437
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.)
34463438

34473439
readEnvVars();
34483440

0 commit comments

Comments
 (0)