Hi Shaun, Shaun Cutts <[email protected]> writes: > Thank you very much for pyopencl... unfortunately... it doesn't seem to be > very compatible with my current setup: > > MAC Lion running on "early 2011" macbook pro 17" w/ ATI Radeon HD 6750M.
Can anyone with a Mac say something about whether these issues exist on 10.8 (Mountain Lion?), too? > Attached are errors I get while running test_array.py. Also many of > the demos fail. It would seem that there is some sort of > incompatibility w/ mac LLVM. I may have some time to try and > help... are there any pointers on how to diagnose these problems? First of all, I should say that PyOpenCL as a Python wrapper for OpenCL will work fine as long as most of the test_wrapper tests pass. Next, it seems that the Apple GPU OpenCL compilers don't like ranluxcl much, which is a random number generator that ships with PyOpenCL. Since many of the array tests start by making an array of random numbers on which to exercise various functions, these will have a tendency to fail even though the underlying functionality is likely fine. Next, this guy: > cvmsErrorCompilerFailure: LLVM compiler has crashed or hung compiling a > function. and this guy: > raise err\ E RuntimeError: clBuildProgram failed: build program failure - \ E \ E Build on <pyopencl.Device 'ATI Radeon HD 6750M' on 'Apple' at 0x1021b00>:\ E \ E Error getting function data from server\ E (source saved as /var/folders/pq/ww1fn4v55h77lg9xpxvt6htm0000gn/T/tmp9pfU1s.cl)\ look very much like bugs in the CL compilers shipped by Apple. I'd be happy to incorporate a workaround if one were found--but I don't have access to a Mac, so I can't help much. If you're trying to troubleshoot this, you can start by grabbing the code from the "source saved as" line and trying to bisect out what the issue is. Lastly, these here: pyopencl.LogicError: clEnqueueNDRangeKernel failed: invalid work group size do occur in some demos that use work groups with sizes greater than 1. These are not supported on Apple's OpenCL CPU implementation. All the core functionality works around that, but I'd be happy to take patches that fix up the demos, too. Hope that helps, Andreas _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
