Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
c5e4a1d0
There was a problem fetching the pipeline summary.
Commit
c5e4a1d0
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Disable clEventSetCallback on windows
parent
b45bc73a
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/c_wrapper/event.cpp
+2
-2
2 additions, 2 deletions
src/c_wrapper/event.cpp
src/c_wrapper/event.h
+1
-1
1 addition, 1 deletion
src/c_wrapper/event.h
src/c_wrapper/wrap_cl.h
+1
-0
1 addition, 0 deletions
src/c_wrapper/wrap_cl.h
with
4 additions
and
3 deletions
src/c_wrapper/event.cpp
+
2
−
2
View file @
c5e4a1d0
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/c_wrapper/event.h
+
1
−
1
View file @
c5e4a1d0
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/c_wrapper/wrap_cl.h
+
1
−
0
View file @
c5e4a1d0
...
...
@@ -34,6 +34,7 @@
#define strdup _strdup
#else
#include
<unistd.h>
#define PYOPENCL_HAVE_EVENT_SET_CALLBACK
#endif
#ifdef HAVE_GL
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment