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 @@ -836,7 +836,7 @@ RTLDeviceInfoTy::Default_WG_Size); if (DeviceInfo.NumThreads[device_id] > DeviceInfo.ThreadsPerGroup[device_id]) { - DeviceInfo.NumTeams[device_id] = DeviceInfo.ThreadsPerGroup[device_id]; + DeviceInfo.NumThreads[device_id] = DeviceInfo.ThreadsPerGroup[device_id]; DP("Default number of threads exceeds device limit, capping at %d\n", DeviceInfo.ThreadsPerGroup[device_id]); }