AnsweredAssumed Answered

OpenCL program is getting killed ?

Question asked by gopal_hc on Aug 16, 2012
Latest reply on Aug 16, 2012 by Wenju

I am developing opencl program using MultiGPU.

I have to launch very large number of threads. At a time i am launching only few threads for a kernel, based on number of resources(registers usage and local memory usage ) used to best utilize GPU resources. So i am launching my kernel total n times(n = N/M), where N is total number of threads that i have to launch, M is number of threads that i can be launched at a time and n is number of times needed to launch the kernel. But it is getting killed after large number of iterations.


assume i have a loop

for(i =0; i < n; i++) {

....writing data from CPU to GPU device using clEnqueueWriteBuffer()....

....launching of kernel using clEnqueueNDRangeKernel().....

....waiting for all commands in command queue to finish using clFinish()...

....reading of data from GPU to CPU clEnqueueReadBuffer()......



Why it is getting killed after n greater than 600 ?


I am using Nvidia GPU device :: GeForce GTX 295

                Platform Version    ::  OpenCL 1.1

                Operating System  ::  Ubuntu 11.04


Thanks in advance.