PDA

View Full Version : Index problem



dave88
05-10-2010, 09:46 AM
There is a command for have the same CUDA code on OpenCL:
int tx=threadIdx.x;??
and
int bx=blockIdx.x;??
i know function:get_global_id(0); ==blockIdx.x * blockDim.x + threadIdx.x;
Any solution? :?

dave88
05-10-2010, 10:02 AM
There is a command for have the same CUDA code on OpenCL:
int tx=threadIdx.x;??
and
int bx=blockIdx.x;??
i know function:get_global_id(0); ==blockIdx.x * blockDim.x + threadIdx.x;
Any solution? :?
ok i find soltuion:-)