diff --git a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp --- a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp +++ b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp @@ -2080,11 +2080,8 @@ } int32_t __tgt_rtl_init_device(int DeviceId) { - hsa_status_t Err = hsa_init(); - if (Err != HSA_STATUS_SUCCESS) { - DP("HSA Initialization Failed.\n"); - return HSA_STATUS_ERROR; - } + hsa_status_t Err; + // this is per device id init DP("Initialize the device id: %d\n", DeviceId);