[OpenCL][Docs] Minor update about C++ for OpenCL in UsersManual.

This commit is contained in:
Anastasia Stulova 2021-03-26 19:23:58 +00:00
parent fd7df0cf38
commit 706c1dc266
1 changed files with 12 additions and 0 deletions

View File

@ -3237,6 +3237,18 @@ compiling ``.cl`` file ``-cl-std=clc++``, ``-cl-std=CLC++``, ``-std=clc++`` or
clang -cl-std=clc++ test.cl
Alternatively, files with ``.clcpp`` extension are compiled with the C++ for OpenCL
mode.
.. code-block:: console
clang test.clcpp
C++ for OpenCL kernel sources can also be compiled online in drivers supporting
`cl_ext_cxx_for_opencl
<https://www.khronos.org/registry/OpenCL/extensions/ext/cl_ext_cxx_for_opencl.html>`_
extension.
Constructing and destroying global objects
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^