Closed gicmo closed 10 years ago
Go ahead and squash these two commits together; they are small. I'll take a good look tonight.
Off the cuff, i think this is a good patch to get tests working on the Mac platform, but I wonder about why it fails in the first place. The API works flawlessly in Linux and Windows, so I am suspicious of what is happening on Mac. I am attempting to get our Mac team to investigate in parallel.
I squashed the two commits.
I also agree that this seems more like a workaround a bug in the OpenCL implementation, which should just return zero if there is no source attached to a cl_program (like the bug in clGetProgramInfo of pocl [1]). Maybe if you (and the Mac team) agree we should open a bug at Apple's bug tracker.
[1] http://www.mail-archive.com/pocl-devel@lists.sourceforge.net/msg00414.html
closes #21
See issue #21 for the discussion why this seems necessary under OSX.