[PyOpenCL] OpenGl Support in pyopencl in Mac OS X 10.6

Holger Rapp holger.rapp at kit.edu
Fri Jul 9 05:21:16 PDT 2010


Hi,

I am trying to get OpenGL support working in the git revision da88c3dd42 (Clean up/complete Stéfan's elwise refactor.). My System is a Mac OS X 10.6, 64bit system. No success so far:

$ python configure.py --cl-enable-gl
$ make
...
src/wrapper/wrap_cl.hpp:13:30: error: OpenCL/opencl_gl.h: No such file or directory

    No wonder, this file does not exist:
$ ls /System/Library/Frameworks/OpenCL.framework/Headers
cl.h          cl_gl.h       cl_platform.h
cl_ext.h      cl_gl_ext.h   opencl.h

I tried replacing the include through
#include <OpenCL/cl_gl.h>
#include <OpenCL/cl_gl_ext.h>

but this lead to another Problem:
src/wrapper/wrap_cl.hpp: In function ‘pyopencl::event* pyopencl::enqueue_nd_range_kernel(pyopencl::command_queue&, pyopencl::kernel&, boost::python::api::object, boost::python::api::object, boost::python::api::object, boost::python::api::object)’:
src/wrapper/wrap_cl.hpp:2644: warning: comparison between signed and unsigned integer expressions
src/wrapper/wrap_cl.hpp:2657: warning: comparison between signed and unsigned integer expressions
src/wrapper/wrap_cl_part_2.cpp: In function ‘void pyopencl_expose_part_2()’:
src/wrapper/wrap_cl_part_2.cpp:232: error: ‘get_gl_context_info_khr’ was not declared in this scope
src/wrapper/wrap_cl_part_2.cpp: In function ‘void pyopencl_expose_part_2()’:
src/wrapper/wrap_cl_part_2.cpp:232: error: ‘get_gl_context_info_khr’ was not declared in this scope


And that's about as far as my knowledge goes. Can someone help me out, please?

Cheers,
Holger





More information about the PyOpenCL mailing list