fixed helpers and makefile
This commit is contained in:
@@ -33,8 +33,8 @@ CXX_OBJS=$(CXX_SRC:%.cpp=objs_gpu/%_gcc.o)
|
||||
CU_OBJS=$(CU_SRC:%.cu=objs_gpu/%_cu.o)
|
||||
#NVCC_OBJS=$(NVCC_SRC:%.cu=objs_gpu/%_nvcc.o)
|
||||
|
||||
CXX_SRC+=../ispc_malloc.cpp
|
||||
CXX_OJS+=objs/ispc_malloc_gcc.o
|
||||
CXX_SRC+=ispc_malloc.cpp
|
||||
CXX_OBJS+=objs_gpu/ispc_malloc_gcc.o
|
||||
|
||||
# PTXGEN = $(HOME)/ptxgen
|
||||
# PTXGEN += -opt=3
|
||||
|
||||
@@ -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>>>
|
||||
|
||||
Reference in New Issue
Block a user