Skip to content

Commit 8c8a2fd

Browse files
author
Anastasia Stulova
committed
[OpenCL] Fixed typo for ctor stub name in UsersManual
1 parent add59ec commit 8c8a2fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/docs/UsersManual.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3132,7 +3132,7 @@ Global objects must be constructed before the first kernel using the global obje
31323132
is executed and destroyed just after the last kernel using the program objects is
31333133
executed. In OpenCL v2.0 drivers there is no specific API for invoking global
31343134
constructors. However, an easy workaround would be to enqueue a constructor
3135-
initialization kernel that has a name ``@_GLOBAL__sub_I_<compiled file name>``.
3135+
initialization kernel that has a name ``_GLOBAL__sub_I_<compiled file name>``.
31363136
This kernel is only present if there are any global objects to be initialized in
31373137
the compiled binary. One way to check this is by passing ``CL_PROGRAM_KERNEL_NAMES``
31383138
to ``clGetProgramInfo`` (OpenCL v2.0 s5.8.7).
@@ -3148,7 +3148,7 @@ before running any kernels in which the objects are used.
31483148
clang -cl-std=clc++ test.cl
31493149
31503150
If there are any global objects to be initialized, the final binary will contain
3151-
the ``@_GLOBAL__sub_I_test.cl`` kernel to be enqueued.
3151+
the ``_GLOBAL__sub_I_test.cl`` kernel to be enqueued.
31523152

31533153
Global destructors can not be invoked in OpenCL v2.0 drivers. However, all memory used
31543154
for program scope objects is released on ``clReleaseProgram``.

0 commit comments

Comments
 (0)