Results 1 to 2 of 2

Thread: OpenCL precompiled kernel faster?

  1. #1
    Junior Member
    Join Date
    Jul 2010

    OpenCL precompiled kernel faster?


    I'm trying to optimize my OpenCL program and to this end I thought of precompiling the OpenCL kernel so that I can use clCreateProgramWithBinary to load the kernel and run the program. Doing that however, I notice no change in execution time. I'm using OpenCL on an Nvidia gtx295 so I'm creating a .ptx file. Is that a naive expectation? Would the precompiled kernel run faster? Or am I missing the point completely?

    thanks in advance.

  2. #2
    Senior Member
    Join Date
    May 2010
    Toronto, Canada

    Re: OpenCL precompiled kernel faster?

    I don't think you should expect precompiled kernels to execute faster. You should expect them to load faster since they don't need to be compiled each time your application starts up.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. Faster on CPU than on the GPU
    By vijaykiran in forum OpenCL
    Replies: 1
    Last Post: 08-12-2010, 10:44 PM
  2. Replies: 1
    Last Post: 03-14-2010, 07:34 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
Proudly hosted by Digital Ocean