Gregor Thalhammer <[email protected]> writes:

>> Am 23.08.2015 um 21:01 schrieb Andreas Kloeckner <[email protected]>:
>> 
>> Gregor Thalhammer <[email protected]> writes:
>>> Hi Andreas,
>>> 
>>> with current master I was now able to successfully build pyopencl with 
>>> Anaconda Python 2.7 on Mac OS 10.10. To succeed, I had to edit siteconf.py, 
>>> adding '-mmacosx-version-min=10.7‘ to CXXFLAGS and LDFLAGS, otherwise I 
>>> obtain an error:
>>> 
>>>    clang: error: invalid deployment target for -stdlib=libc++ (requires OS 
>>> X 10.7 or later)
>> 
>> OK, I've added that to the default build options for OS X.
>> 
>>> On OS X I tried also with OpenGL interoperability enabled, this gives an 
>>> error:
>>> 
>>> cl.get_apple_cgl_share_group()))
>>> AttributeError: 'module' object has no attribute 
>>> ‚get_apple_cgl_share_group‘. I will try to investigate this further and 
>>> report back.
>> 
>> Great, thank you!
>
> I have been digging further into this issue and found some bugs:
> * in pyopencl/__init__.py some imports for OpenGL interoperability are missing
> * implementation of GLBuffer in cffi_cl.py is flawed.
>
> I attached my attempt to fix these issues as a patch. 

Thanks for your patch! I've merged it with minor changes. (I've
separated out the Apple-related from the non-Apple GL imports.)

Andreas

Attachment: signature.asc
Description: PGP signature

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to