ajkxyz / opencl4py

Python cffi OpenCL bindings and helper classes
Other
6 stars 19 forks source link

Add support for MacOSX #5

Closed vmarkovtsev closed 8 years ago

vmarkovtsev commented 8 years ago

/System/Library/Frameworks/OpenCL.framework/OpenCL is the needed shared library; /System/Library/Frameworks/OpenCL.framework is on the library search path so we should just add "OpenCL"

In [6]: opencl4py.Platforms().platforms[0].devices
Out[6]: 
[<opencl4py.Device 'Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz'>,
 <opencl4py.Device 'HD Graphics 4000'>]