From 6ca59dca1ae44fa6cafedaea3d193376a378689c Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 10 Aug 2018 16:41:01 -0500 Subject: [PATCH] Remove enqueue_task --- pyopencl/__init__.py | 1 - src/wrap_cl.hpp | 24 ------------------------ src/wrap_cl_part_2.cpp | 5 ----- 3 files changed, 30 deletions(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index f0178c97..ffd03907 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -143,7 +143,6 @@ from pyopencl._cl import ( # noqa UserEvent, enqueue_nd_range_kernel, - enqueue_task, _enqueue_marker_with_wait_list, _enqueue_marker, diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index 09fa3188..35e10667 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -3853,30 +3853,6 @@ namespace pyopencl } ); } - - - - - - inline - event *enqueue_task( - command_queue &cq, - kernel &knl, - py::object py_wait_for) - { - PYOPENCL_PARSE_WAIT_FOR; - - PYOPENCL_RETRY_RETURN_IF_MEM_ERROR( { - cl_event evt; - PYOPENCL_CALL_GUARDED(clEnqueueTask, ( - cq.data(), - knl.data(), - PYOPENCL_WAITLIST_ARGS, &evt - )); - PYOPENCL_RETURN_NEW_EVENT(evt); - } ); - } - // }}} diff --git a/src/wrap_cl_part_2.cpp b/src/wrap_cl_part_2.cpp index c5b5e612..0a31ac6c 100644 --- a/src/wrap_cl_part_2.cpp +++ b/src/wrap_cl_part_2.cpp @@ -354,11 +354,6 @@ void pyopencl_expose_part_2(py::module &m) py::arg("wait_for")=py::none(), py::arg("g_times_l")=false ); - m.def("enqueue_task", enqueue_task, - py::arg("queue"), - py::arg("kernel"), - py::arg("wait_for")=py::none() - ); // TODO: clEnqueueNativeKernel // }}} -- GitLab