Results 1 to 2 of 2

Thread: static equivalent in opencl Kernel?

  1. #1
    Junior Member
    Join Date
    Feb 2014

    static equivalent in opencl Kernel?

    As we cant use static keyword in the kernel, how can we define the same definition of a variable,
    so that it retains its old value.

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Use an OpenCL Buffer object. It will retain value between kernel invocations and can be accessed with a pointer.

Tags for this Thread

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