fixed helpers and makefile

This commit is contained in:
Evghenii
2014-01-05 17:25:31 +01:00
parent 6e2d59e279
commit 730e0f7098
2 changed files with 5 additions and 3 deletions

View File

@@ -6,6 +6,8 @@
#define taskCount0 (gridDim.x*4)
#define taskIndex1 (blockIdx.y)
#define taskCount1 (gridDim.y)
#define taskIndex (taskIndex0 + taskCount0*taskIndex1)
#define taskIndex2 (blockIdx.z)
#define taskCount2 (gridDim.z)
#define taskIndex (taskIndex0 + taskCount0*(taskIndex1 + taskCount1*taskIndex2))
#define warpIdx (threadIdx.x >> 5)
#define launch(ntx,nty,ntz,func) if (programIndex==0) func<<<dim3(((ntx)+4-1)/4,nty,ntz),128>>>