Skip to content
Snippets Groups Projects
Commit c1a5353c authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix copy-and-paste bug in enqueue_nd_range_kernel. (report by Andrew Karpushin)

parent 66007ca8
No related branches found
No related tags found
No related merge requests found
......@@ -2318,7 +2318,7 @@ namespace pyopencl
std::vector<size_t> global_work_offset;
if (py_global_work_offset.ptr() != Py_None)
{
if (work_dim != len(py_local_work_size))
if (work_dim != len(py_global_work_offset))
throw error("enqueue_nd_range_kernel", CL_INVALID_VALUE,
"global work size and offset have differing dimensions");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment