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
16b7ad41
Commit
16b7ad41
authored
10 years ago
by
Yichao Yu
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
1aded80a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/c_wrapper/gl_obj.cpp
+0
-87
0 additions, 87 deletions
src/c_wrapper/gl_obj.cpp
with
0 additions
and
87 deletions
src/c_wrapper/gl_obj.cpp
+
0
−
87
View file @
16b7ad41
...
...
@@ -76,93 +76,6 @@ enqueue_gl_objects(clEnqueueGLObjectFunc func, const char *name,
enqueue_gl_objects(clEnqueue##what##GLObjects, \
"clEnqueue" #what "GLObjects", args)
// #if defined(cl_khr_gl_sharing) && (cl_khr_gl_sharing >= 1)
// PYOPENCL_INLINE
// py::object get_gl_context_info_khr(
// py::object py_properties,
// cl_gl_context_info param_name,
// py::object py_platform
// )
// {
// std::vector<cl_context_properties> props
// = parse_context_properties(py_properties);
// typedef CL_API_ENTRY cl_int (CL_API_CALL
// *func_ptr_type)(const cl_context_properties * /* properties */,
// cl_gl_context_info /* param_name */,
// size_t /* param_value_size */,
// void * /* param_value */,
// size_t * /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
// func_ptr_type func_ptr;
// #if PYOPENCL_CL_VERSION >= 0x1020
// if (py_platform.ptr() != Py_None)
// {
// platform &plat = py::extract<platform &>(py_platform);
// func_ptr = (func_ptr_type) clGetExtensionFunctionAddressForPlatform(
// plat.data(), "clGetGLContextInfoKHR");
// }
// else
// {
// PYOPENCL_DEPRECATED("get_gl_context_info_khr with platform=None", "2013.1", );
// func_ptr = (func_ptr_type) clGetExtensionFunctionAddress(
// "clGetGLContextInfoKHR");
// }
// #else
// func_ptr = (func_ptr_type) clGetExtensionFunctionAddress(
// "clGetGLContextInfoKHR");
// #endif
// if (!func_ptr)
// throw error("Context.get_info", CL_INVALID_PLATFORM,
// "clGetGLContextInfoKHR extension function not present");
// cl_context_properties *props_ptr
// = props.empty( ) ? nullptr : &props.front();
// switch (param_name)
// {
// case CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR:
// {
// cl_device_id param_value;
// PYOPENCL_CALL_GUARDED(func_ptr,
// (props_ptr, param_name, sizeof(param_value), ¶m_value, 0));
// return py::object(handle_from_new_ptr( new device(param_value, /*retain*/ true)));
// }
// case CL_DEVICES_FOR_GL_CONTEXT_KHR:
// {
// size_t size;
// PYOPENCL_CALL_GUARDED(func_ptr,
// (props_ptr, param_name, 0, 0, &size));
// std::vector<cl_device_id> devices;
// devices.resize(size / sizeof(devices.front()));
// PYOPENCL_CALL_GUARDED(func_ptr,
// (props_ptr, param_name, size,
// devices.empty( ) ? nullptr : &devices.front(), &size));
// py::list result;
// BOOST_FOREACH(cl_device_id did, devices)
// result.append(handle_from_new_ptr(
// new device(did)));
// return result;
// }
// default:
// throw error("get_gl_context_info_khr", CL_INVALID_VALUE);
// }
// }
// #endif
}
// c wrapper
...
...
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