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
_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to