Skip to content

Commit

Permalink
[OpenMP] [amdgpu] Fixed bad merge that disabled OMPT device support.
Browse files Browse the repository at this point in the history
Fix for ROCm/ROCm#2943

Change-Id: I8e1b26a078ef7a47433dc6f6c7418d081dce38ac
  • Loading branch information
dhruvachak authored and zhang2amd committed Mar 8, 2024
1 parent fcd81b4 commit dd8a974
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3430,19 +3430,11 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
if (auto Err = HostDevice->init())
return std::move(Err);

#if 0//<<<<<<< HEAD
#ifdef OMPT_SUPPORT
::OmptCallbackInit();
#endif

// Initialize flags for device type:
hasAPUDevice();
// check for dGPUs with USM support
hasGfx90aDevice();
hasMI300xDevice();
#else//=======
scanForUSMCapableDevices();
#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.)

readEnvVars();

Expand Down

0 comments on commit dd8a974

Please sign in to comment.