Skip to content

Commit 5da27ce

Browse files
Add support for empty properties vector in commandNDRangeKernel (KhronosGroup#334)
1 parent 0c458c4 commit 5da27ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/CL/opencl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11930,7 +11930,7 @@ class CommandBufferKhr : public detail::Wrapper<cl_command_buffer_khr>
1193011930
cl_int error = detail::errHandler(
1193111931
pfn_clCommandNDRangeKernelKHR(object_,
1193211932
(command_queue != nullptr) ? (*command_queue)() : nullptr,
11933-
&properties[0],
11933+
properties.empty() ? nullptr : properties.data(),
1193411934
kernel(),
1193511935
(cl_uint) global.dimensions(),
1193611936
offset.dimensions() != 0 ? (const size_type*) offset : nullptr,

0 commit comments

Comments
 (0)