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
6b64e8ae
Commit
6b64e8ae
authored
4 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Accommodate Debian's broken CL3 headers
parent
93350c19
No related branches found
No related tags found
1 merge request
!124
Opencl 3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/make_constants.py
+1
-1
1 addition, 1 deletion
doc/make_constants.py
src/wrap_constants.cpp
+6
-1
6 additions, 1 deletion
src/wrap_constants.cpp
with
7 additions
and
2 deletions
doc/make_constants.py
+
1
−
1
View file @
6b64e8ae
...
...
@@ -204,7 +204,7 @@ const_ext_lookup = {
"
WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT
"
:
cl_30
,
"
GENERIC_ADDRESS_SPACE_SUPPORT
"
:
cl_30
,
"
OPENCL_C_FEATURES
"
:
cl_30
,
"
DEVICE_ENQUEUE_
SUPPORT
"
:
cl_30
,
"
DEVICE_ENQUEUE_
CAPABILITIES
"
:
cl_30
,
"
PIPE_SUPPORT
"
:
cl_30
,
},
...
...
This diff is collapsed.
Click to expand it.
src/wrap_constants.cpp
+
6
−
1
View file @
6b64e8ae
...
...
@@ -500,7 +500,12 @@ void pyopencl_expose_constants(py::module &m)
ADD_ATTR
(
DEVICE_
,
WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT
);
ADD_ATTR
(
DEVICE_
,
GENERIC_ADDRESS_SPACE_SUPPORT
);
ADD_ATTR
(
DEVICE_
,
OPENCL_C_FEATURES
);
ADD_ATTR
(
DEVICE_
,
DEVICE_ENQUEUE_SUPPORT
);
#ifdef CL_DEVICE_DEVICE_ENQUEUE_SUPPORT
// some busted headers shipped by Debian have this
cls
.
attr
(
"DEVICE_ENQUEUE_CAPABILITIES"
)
=
CL_DEVICE_DEVICE_ENQUEUE_SUPPORT
;
#else
ADD_ATTR
(
DEVICE_
,
DEVICE_ENQUEUE_CAPABILITIES
);
#endif
ADD_ATTR
(
DEVICE_
,
PIPE_SUPPORT
);
#endif
/* cl_intel_advanced_motion_estimation */
...
...
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