[Beignet] beignet not working with Wolfram Mathematica

Lorenzo Pistone blaffablaffa at gmail.com
Sat Oct 4 11:22:30 PDT 2014


Hello,
I'm trying to run beignet from Wolfram Mathematica 10.0.1, I have 
beignet 0.9.2, Fedora 20 x86_64, kernel 3.16.3, i5-3230M.
First, there is an issue which is probably to be blamed on Mathematica 
(you need to manually load /usr/lib64/beignet/libcl.so with 
LibraryLoad), I suppose that Mathematica doesn't know about the icd system.

Anyway, after that, this test program

    src = "__kernel void myKernel( __global mint * global0Id, __global
    mint * global1Id, mint width, mint height) {
           int xIndex = get_global_id(0);
           int yIndex = get_global_id(1);
           int index = xIndex + yIndex*width;
           if (xIndex < width && yIndex < height) {
              global0Id[index] = get_local_id(0);
              global1Id[index] = get_local_id(1);
           }
         }";


which is suggested in the examples  of the Mathematica implementation 
(http://reference.wolfram.com/language/OpenCLLink/tutorial/Programming.html) 
produces all zeroes. If instead the pocl driver is loaded, the kernel is 
executed correctly. Also I could run the LuxMark benchmarks (even though 
on some tests I see yellow spots that I believe are glitches).

I am sorry if the question is a bit vague, but I don't know much about 
OpenCL and I indeed wanted to start learning while using Mathematica, 
which is a tool that I already need for other reasons.

Lorenzo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20141004/f39bfde2/attachment.html>


More information about the Beignet mailing list