cancel
Showing results for 
Search instead for 
Did you mean: 

ROCm Discussions

lbqrdfzxsxx
Journeyman III

How do we relate hipExtModuleLaunchKernel globalWorkSize to hipLaunchKernel gridDim.x

I am kind of confused with hipExtModuleLaunchKernel's globalWorkSize parameter. The HIP API document says it is equivalent to hipLaunchKernel's gridDim.x, but when I print gridDim.x inside a custom kernel, they do not match. It seems the equation to translate globalWorkSize into gridDim.x is as follow:

gridDim.x = (globalWorkSize + localWorkSizeX - 1) / localWorkSizeX 

Am I correct? 

0 Likes
1 Reply
dipak
Big Boss

For HIP related support, you can use it's github page below to post this query.

https://github.com/ROCm-Developer-Tools/HIP/issues

Thanks.

0 Likes