Results 1 to 5 of 5

Thread: How many CUDA registers uses an OpenCL kernel

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    3

    How many CUDA registers uses an OpenCL kernel

    Hello, I need to know how many registers my OpenCL kernel uses. I am down to executing the kernel in blocks with dimensions 2x4, which is too small to have a practical value. I have written CUDA equvalent of my kernel and it is able to run in blocksize of 8x32.

  2. #2
    Senior Member
    Join Date
    Sep 2002
    Location
    Santa Clara
    Posts
    105

    Re: How many CUDA registers uses an OpenCL kernel

    Use clGetKernelWorkGroupInfo(kernel, CL_KERNEL_WORK_GROUP_SIZE, ..) to determine the max. work-group size that can be used for kernel.

  3. #3
    Junior Member
    Join Date
    Aug 2009
    Posts
    3

    Re: How many CUDA registers uses an OpenCL kernel

    I have exported the kernel's intermediate PTX code into a text file, and then used the ptxas.exe to compile it in verbose mode. This yielded what I needed to know, in term of registers usage. Well, I need to know how to limit the registers, i.e. something similar to "--maxrregcount" as the ptxas option. Any ideas someone?

  4. #4
    Junior Member
    Join Date
    May 2009
    Posts
    11

    Re: How many CUDA registers uses an OpenCL kernel

    you can try to use the compilation parameters you can set with opencl.

    but in experienced that the parameters don't work with the first 2 releases (maybe it works with the conformant release).
    i prefer to wait for the optimized version of the nvidia opencl release.

  5. #5
    Junior Member
    Join Date
    Aug 2009
    Posts
    3

    Re: How many CUDA registers uses an OpenCL kernel

    I have no idea where to look for the vendor-specific compiler options. I have tried --help, but the program throws me out without the chance of debugging. I have tried "--maxrregcount" in addition to the clBuildProgram(..) build options, but the program throws me out again.

Similar Threads

  1. Replies: 0
    Last Post: 11-19-2012, 12:38 AM
  2. Replies: 2
    Last Post: 08-12-2010, 12:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •