Results 1 to 2 of 2

Thread: OpenCL 1.2 Class Inheritance

  1. #1
    Junior Member
    Join Date
    Oct 2012

    OpenCL 1.2 Class Inheritance

    I have been looking at the new C++ static kernel language available in OpenCL 1.2 (or at least, AMD's version of it) and am wondering if anyone has had previous experience with it, particularly when it comes to class inheritance?

    I would like to be able to pass an array of classes to my kernel, all the classes are derived from a same base class and may have different, but relatively simple fields, and different implementations of course, but I fail to see how this can be possible with current GPU technology without a very heavy use of reflection.

    Or are classes only available for use *within* the kernel and cannot be used as parameters? It's not clear from the reference document and the only sample using such kernels only uses the new templates and ignores classes completely.


  2. #2
    Junior Member
    Join Date
    Oct 2012

    Re: OpenCL 1.2 Class Inheritance


Similar Threads

  1. Replies: 3
    Last Post: 04-26-2012, 02:13 AM
  2. Replies: 5
    Last Post: 10-25-2009, 02:40 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
Proudly hosted by Digital Ocean