File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3132,7 +3132,7 @@ Global objects must be constructed before the first kernel using the global obje
3132
3132
is executed and destroyed just after the last kernel using the program objects is
3133
3133
executed. In OpenCL v2.0 drivers there is no specific API for invoking global
3134
3134
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> ``.
3136
3136
This kernel is only present if there are any global objects to be initialized in
3137
3137
the compiled binary. One way to check this is by passing ``CL_PROGRAM_KERNEL_NAMES ``
3138
3138
to ``clGetProgramInfo `` (OpenCL v2.0 s5.8.7).
@@ -3148,7 +3148,7 @@ before running any kernels in which the objects are used.
3148
3148
clang -cl-std=clc++ test.cl
3149
3149
3150
3150
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.
3152
3152
3153
3153
Global destructors can not be invoked in OpenCL v2.0 drivers. However, all memory used
3154
3154
for program scope objects is released on ``clReleaseProgram ``.
You can’t perform that action at this time.
0 commit comments