Results 1 to 4 of 4

Thread: Controling register usage through clBuildProgram?

  1. #1

    Controling register usage through clBuildProgram?

    Is there any way to control how much register space a kernel uses? My goal is to increase the CL_KERNEL_WORK_GROUP_SIZE value reported by my kernel to increase parallelism to hide memory latencies.

    Thanks,
    Brian

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: Controling register usage through clBuildProgram?

    Besides reducing the complexity of your kernel (and any private variables/arrays) you would have to be able to tell the compiler to make a different optimization tradeoff. There are no standard compiler flags for doing this, but the Nvidia driver does have a few custom ones which might include such options.

  3. #3

    Re: Controling register usage through clBuildProgram?

    Are those custom NVidia flags documented anywhere? I know the PTX assembler has maxrregcount. But how to pass that through the OpenCL implementation?

    Thanks,
    Brian

  4. #4
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: Controling register usage through clBuildProgram?

    I'd take a look at the Nvidia OpenCL guide, but that's only a guess.

Similar Threads

  1. register usage : float3 vs float4
    By roger512 in forum OpenCL
    Replies: 2
    Last Post: 03-18-2013, 01:57 AM
  2. Replies: 1
    Last Post: 06-13-2010, 06:31 AM

Posting Permissions

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