diff --git a/hipamd/rocclr/hip_module.cpp b/hipamd/rocclr/hip_module.cpp index 4a09cc6ed0..b72ee1a5a2 100755 --- a/hipamd/rocclr/hip_module.cpp +++ b/hipamd/rocclr/hip_module.cpp @@ -537,7 +537,7 @@ hipError_t ihipLaunchCooperativeKernelMultiDevice(hipLaunchParams* launchParamsL if (result != hipSuccess) { break; } - prevGridSize += launch.gridDim.x * launch.gridDim.y * launch.gridDim.z; + prevGridSize += globalWorkSizeX * globalWorkSizeY * globalWorkSizeZ; } // Sync the execution streams on all devices