AnsweredAssumed Answered

"-cl-nv-verbose" flag with clBuildProgram is not working!

Question asked by sunny.lbk on Aug 1, 2012
Latest reply on Aug 1, 2012 by MicahVillmow

Hello all,

I am a newbee to OpenCL. I have been working with CUDA for quite some time and now I am trying out OpenCL. I want to know the number of registers used per thread in a kernel. In CUDA, using nvcc --ptxas-options=-v flag gives that information. After googling, I found that "-cl-nv-verbose" flag also gives similar information when used with clBuildProgram. But when I use that flag in the kernel, I am getting an error:


When I use,

clBuildProgram(program, 1, &device_id, "-cl-nv-verbose", NULL, NULL);


I get the error:

Error: clBuildProgram(-43) at the above line


Am I using it correctly?

I am working on Macbook using latest version of Xcode (so OpenCL 1.2 I guess)


Any ideas?