[cfe-dev] RFC: Adding support for an OpenCL 3.0 compatible C++ for OpenCL 2021
Phil Bouchard via cfe-dev
cfe-dev at lists.llvm.org
Wed Aug 4 05:00:22 PDT 2021
On 8/4/21 7:55 AM, Ole Marius Strohm via cfe-dev wrote:
> Hi, all!
> As OpenCL C 3.0 is getting support in clang there is a wish to expand
> C++ for
> OpenCL to be compatible with OpenCL 3.0 as well. Being able to support
> 3.0 is important in making C++ for OpenCL a viable option for as many
> as possible.
> Arm is therefore proposing adding a new version of C++ for OpenCL
> which will
> add support for OpenCL 3.0. This version will aim to be backwards
> with OpenCL C 3.0. This will involve a new language version of C++
> for OpenCL,
> currently called C++ for OpenCL 2021 in the draft of the new
> documentation .
> ----- Implementation Details -----
> As the biggest changes in OpenCL 3.0 are making some 2.0 features
> optional, and
> a lot of work as already been done in clang to support OpenCL C 3.0
>  there
> shouldn't be a need for any big conceptual changes in clang as a
> result of this
> work. Our hope is to reuse the work done for OpenCL C 3.0 and apply
> logic to C++ mode.
> Most of the work is expected to be related to making the 'generic'
> address space
> optional. Currently this address space is used for several implicitly
> constructors and operators, so these will need to be adjusted.
> This should still be able to leverage work done for OpenCL C 3.0. For
> this has already dealt with detecting when the 'generic' address space is
> available. This can then be used to adjust the current C++ for OpenCL
> implementation without requiring large scale changes.
> As mentioned, the linked documentation is only a draft and will be
> revised and
> finalized along with the implementation.
> If you have any thoughts or comments, please make contact.
>  https://github.com/KhronosGroup/OpenCL-Docs/pull/616
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
Founder & CTO
C.: (819) 328-4743
Fornux Logo <http://www.fornux.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev