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

Disable clEventSetCallback on windows

parent b45bc73a
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -85,7 +85,7 @@ event::release_private() noexcept
delete m_p;
return;
}
#if PYOPENCL_CL_VERSION >= 0x1010
#if PYOPENCL_CL_VERSION >= 0x1010 && defined(PYOPENCL_HAVE_EVENT_SET_CALLBACK)
if (release_private_use_cb(this)) {
try {
event_private *p = m_p;
......@@ -221,7 +221,7 @@ event__wait(clobj_t evt)
});
}
#if PYOPENCL_CL_VERSION >= 0x1010
#if PYOPENCL_CL_VERSION >= 0x1010 && defined(PYOPENCL_HAVE_EVENT_SET_CALLBACK)
error*
event__set_callback(clobj_t _evt, cl_int type, void *pyobj)
......
......@@ -31,7 +31,7 @@ public:
PYOPENCL_USE_RESULT generic_info
get_profiling_info(cl_profiling_info param) const;
void wait() const;
#if PYOPENCL_CL_VERSION >= 0x1010
#if PYOPENCL_CL_VERSION >= 0x1010 && defined(PYOPENCL_HAVE_EVENT_SET_CALLBACK)
template<typename Func>
PYOPENCL_INLINE void
set_callback(cl_int type, Func &&_func)
......
......@@ -34,6 +34,7 @@
#define strdup _strdup
#else
#include <unistd.h>
#define PYOPENCL_HAVE_EVENT_SET_CALLBACK
#endif
#ifdef HAVE_GL
......
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