diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index b92bc677e7b52848b3b460a6cede1334b879a17b..8962a0432b23512d783938fa7d1bac5ce569cbc6 100644 --- a/pyopencl/cffi_cl.py +++ b/pyopencl/cffi_cl.py @@ -807,7 +807,7 @@ def _enqueue_marker(queue): # {{{ _enqueue_barrier_* def _enqueue_barrier_with_wait_list(queue, wait_for=None): - ptr_event = _ffi.new('cobj_t*') + ptr_event = _ffi.new('clobj_t*') c_wait_for, num_wait_for = _clobj_list(wait_for) _handle_error(_lib.enqueue_barrier_with_wait_list( ptr_event, queue.ptr, c_wait_for, num_wait_for))