diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index f5ab376c6814a0649c684eedba093b2164dec219..ae5d3dc275e52af71994f5e72a1e79d205a2b2e0 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -1515,9 +1515,6 @@ namespace pyopencl static void evt_callback(cl_event evt, cl_int command_exec_status, void *user_data) { - // FIXME REMOVE - puts("event callback: started"); - event_callback_info_t *cb_info = reinterpret_cast<event_callback_info_t *>(user_data); { std::lock_guard<std::mutex> lg(cb_info->m_mutex); @@ -1525,14 +1522,8 @@ namespace pyopencl cb_info->m_command_exec_status = command_exec_status; cb_info->m_notify_thread_wakeup_is_genuine = true; } - // FIXME REMOVE - puts("event callback: before cv notify"); cb_info->m_condvar.notify_one(); - - // FIXME REMOVE - puts("event callback: done"); - } public: @@ -1549,26 +1540,18 @@ namespace pyopencl std::thread notif_thread([cb_info]() { - // FIXME REMOVE - puts("thread: started"); { std::unique_lock<std::mutex> ulk(cb_info->m_mutex); cb_info->m_condvar.wait( ulk, [&](){ return cb_info->m_notify_thread_wakeup_is_genuine; }); - // FIXME REMOVE - puts("thread: wait returned"); - // ulk no longer held here, cb_info ready for deletion } { py::gil_scoped_acquire acquire; - // FIXME REMOVE - puts("thread: gil acquired"); - if (cb_info->m_set_callback_suceeded) { try { @@ -1585,15 +1568,9 @@ namespace pyopencl } } - // FIXME REMOVE - puts("thread: before delete"); - // Need to hold GIL to delete py::object instances in // event_callback_info_t delete cb_info; - // - // FIXME REMOVE - puts("thread: ending"); } }); // Thread is away--it is now its responsibility to free cb_info.