diff --git a/examples_ptx/cuda_helpers.cuh b/examples_ptx/cuda_helpers.cuh index 2916ab96..ae30ed34 100644 --- a/examples_ptx/cuda_helpers.cuh +++ b/examples_ptx/cuda_helpers.cuh @@ -9,5 +9,6 @@ #define taskIndex2 (blockIdx.z) #define taskCount2 (gridDim.z) #define taskIndex (taskIndex0 + taskCount0*(taskIndex1 + taskCount1*taskIndex2)) +#define taskCount (taskCount0*taskCount1*taskCount2) #define warpIdx (threadIdx.x >> 5) #define launch(ntx,nty,ntz,func) if (programIndex==0) func<<>>