iLoop

Porting from CUDA to OpenCL

Discussion created by iLoop on Mar 28, 2010
Latest reply on Mar 29, 2010 by genaganna
<<grid,block , x >> problems

Hi

I have a CUDA program running like this:

modSerial<<grid,block,threads>>(x,y,z);

How can i translate this to OpenCL :

 

clEnqueueNDRangeKernel(cmd_queue, kernel[0], 1, NULL, &global_work_size,NULL, 0, NULL, NULL);

Is it correct to fill in like this?

clEnqueueNDRangeKernel(cmd_queue, kernel[0], gridNULL, block,threads0NULLNULL);

 

I hope someone can give me advice

 



Outcomes