Forums - Support OpenCL C++ Kernel?

4 posts / 0 new
Last post
Support OpenCL C++ Kernel?
snock
Join Date: 24 Jul 17
Posts: 2
Posted: Wed, 2018-03-07 03:42

Hi, everyone

I'm new to qualcomm OpenCL implementation. I want to know somthing before diving into

  1. Does qualcomm's OpenCL implementation support  C++ kernel like cuda, for example template  and class?
  2. Can we include extra header in .cl kernel file?
  3. Can we call memory allocating function in kernel, for example clSVMAllocate?

Thanks.

  • Up0
  • Down0
wangh
Join Date: 2 Aug 18
Posts: 4
Posted: Thu, 2018-08-02 17:03

Here are the answers: 

  1. We do not support OpenCL C++ kernel language at this time. This is a feature in OpenCL 2.2 standard. Currently we support OpenCL 2.0. 
  2. Yes, you can include header in OpenCL kernel files. 
  3. Yes, Adreno has supported coarse grain shared virtual memory since A5x. You can use clSVMAlloc at host side to allocate memory that is going to be shared between device and host. But this function is not to be used inside kernels. 

Thank you. 

Hongqiang Wang

GPU Hardware team

Qualcomm Technologies, Inc. 

 

  • Up0
  • Down0
snock
Join Date: 24 Jul 17
Posts: 2
Posted: Tue, 2018-11-06 18:46

Thanks for you answers.

Do you know when the support to OpenCL 2.2 is available on Qualcomm  platform?

  • Up0
  • Down0
wangh
Join Date: 2 Aug 18
Posts: 4
Posted: Fri, 2018-12-28 08:25
At this time we don't have plan to support it.
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.