def enqueue_fill_buffer(queue, mem, pattern, offset, size, wait_for=None): if not (queue._get_cl_version() >= (1, 2) and get_cl_header_version() >= (1, 2)): from warnings import warn warn( "The context for this queue does not declare OpenCL 1.2 support, so " "the next thing you might see is a crash") return _cl._enqueue_fill_buffer(queue, mem, pattern, offset, size, wait_for)
def enqueue_fill_buffer(queue, mem, pattern, offset, size, wait_for=None): if not (queue._get_cl_version() >= (1, 2) and get_cl_header_version() >= (1, 2)): from warnings import warn warn("The context for this queue does not declare OpenCL 1.2 support, so " "the next thing you might see is a crash") return _cl._enqueue_fill_buffer(queue, mem, pattern, offset, size, wait_for)