Skip to content

Commit 706c1dc

Browse files
author
Anastasia Stulova
committed
[OpenCL][Docs] Minor update about C++ for OpenCL in UsersManual.
1 parent fd7df0c commit 706c1dc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

clang/docs/UsersManual.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3237,6 +3237,18 @@ compiling ``.cl`` file ``-cl-std=clc++``, ``-cl-std=CLC++``, ``-std=clc++`` or
32373237
32383238
clang -cl-std=clc++ test.cl
32393239
3240+
Alternatively, files with ``.clcpp`` extension are compiled with the C++ for OpenCL
3241+
mode.
3242+
3243+
.. code-block:: console
3244+
3245+
clang test.clcpp
3246+
3247+
C++ for OpenCL kernel sources can also be compiled online in drivers supporting
3248+
`cl_ext_cxx_for_opencl
3249+
<https://www.khronos.org/registry/OpenCL/extensions/ext/cl_ext_cxx_for_opencl.html>`_
3250+
extension.
3251+
32403252
Constructing and destroying global objects
32413253
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32423254

0 commit comments

Comments
 (0)