Results 1 to 4 of 4

Thread: Can Native Kernels Enqueue Non-Native Kernels?

  1. #1
    Senior Member
    Join Date
    Mar 2011
    Location
    Seoul
    Posts
    118

    Can Native Kernels Enqueue Non-Native Kernels?

    I know non-native kernels cannot enqueue non-native kernels, but what about native kernels enqueueing non-native kernels? Say you have a quad-core CPU and four GPUs, then partition the CPU info four single-core devices, each of which would then control a distinct GPU.

    When will out-of-order command queues be supported in almost all platforms?

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

    Re: Can Native Kernels Enqueue Non-Native Kernels?

    I know non-native kernels cannot enqueue non-native kernels, but what about native kernels enqueueing non-native kernels?
    Native kernels can enqueue non-native kernels just fine. However, you have to be careful to avoid deadlocks. For example, calling clFinish() on the same queue that is executing the native kernel would naturally cause a deadlock.

    Say you have a quad-core CPU and four GPUs, then partition the CPU info four single-core devices, each of which would then control a distinct GPU.
    Yes, you can do that. I'm not sure I get the motivation for doing it, though.

    When will out-of-order command queues be supported in almost all platforms?
    Personally I would not count on that happening.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    2

    Re: Can Native Kernels Enqueue Non-Native Kernels?

    I am understanding right that you can ENQUEUE a kernel from withing another kernel? How exactly would you do that? I thought this was part of the host-side API only.

  4. #4
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Can Native Kernels Enqueue Non-Native Kernels?

    Notice that we are talking about native kernels.
    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. Native Kernels
    By wscrosswy in forum OpenCL
    Replies: 0
    Last Post: 07-03-2012, 09:50 AM
  2. Mixing GL and Native
    By paradox in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 01-11-2005, 08:50 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
  •