Hi all,
I am getting the above stated error in the build stage of kernel rather than enqueuendrangekernel i.e this is a CL_BUILD_PROGRAM_FAILURE rather than CL_OUT_OF_RESOURCES error. May anyone please tell me why this is happening??
I mean why am i getting out of resources error in the build stage of program. If i were to utilize more than allocated resource than I should have gotten a CL_OUT_OF_RESOURCES error in the clEnqueueNDRangeKernel stage rather than in the clBuildProgram stage. Kindly help
Thank You.
spyzer.abhishek0,
It looks like you are using very large number of GPRs in your kernel.Most probably a large array or a lot of variables.
Can you please post your kernel.
Thanks a lot, I resolved the error by changing the logic of code and using less resources.