From 27d957f0cba608a63e7ff721931e80329defbbe4 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Mon, 6 Jan 2014 11:01:38 +0100 Subject: [PATCH] added taskCount --- examples_ptx/cuda_helpers.cuh | 1 + 1 file changed, 1 insertion(+) 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<<>>