Show dynamic shared mem usage not static.

This commit is contained in:
Ben Sander
2017-01-23 22:33:21 -06:00
parent 0dabdeb01f
commit 813c189b33
+1 -1
View File
@@ -298,7 +298,7 @@ hipError_t hipModuleLaunchKernel(hipFunction_t f,
Kernel argument preparation.
*/
grid_launch_parm lp;
lp.dynamic_group_mem_bytes = f._groupSegmentSize; // TODO - this should be part of preLaunchKernel.
lp.dynamic_group_mem_bytes = sharedMemBytes; // TODO - this should be part of preLaunchKernel.
hStream = ihipPreLaunchKernel(hStream, dim3(gridDimX, gridDimY, gridDimZ), dim3(blockDimX, blockDimY, blockDimZ), &lp, f._name);