As you are using 3.16.x kernel, the most possible solution is in the README.md's known issue section:
Almost all unit tests fail on Linux kernel 3.15/3.16. There is a known issue in some versions of linux kernel which enable register whitelist feature but miss some necessary registers which are required for beignet. The problematic version are around 3.15 and 3.16 which have commit f0a346b... but haven't commit c9224f... If it is the case, you can apply c9224f... manually and rebuild the kernel or just disable the parse command by invoke the following command (use Ubuntu as an example): # echo 0 > /sys/module/i915/parameters/enable_cmd_parser And I strongly recommend you to use the latest git master version beignet. If you still have problem, please feel free to report here. Thanks. On Sun, Oct 5, 2014 at 2:22 AM, Lorenzo Pistone <[email protected]> wrote: > 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 > _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
