<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hello,<br>
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.<br>
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.<br>
<br>
Anyway, after that, this test program<br>
</tt>
<blockquote><tt>src = "__kernel void myKernel( __global mint *
global0Id, __global mint * global1Id, mint width, mint height) {<br>
int xIndex = get_global_id(0);<br>
int yIndex = get_global_id(1);<br>
int index = xIndex + yIndex*width;<br>
if (xIndex < width && yIndex < height) {<br>
global0Id[index] = get_local_id(0);<br>
global1Id[index] = get_local_id(1);<br>
}<br>
}";</tt><br>
</blockquote>
<tt><br>
which is suggested in the examples of the Mathematica
implementation
(<a class="moz-txt-link-freetext" href="http://reference.wolfram.com/language/OpenCLLink/tutorial/Programming.html">http://reference.wolfram.com/language/OpenCLLink/tutorial/Programming.html</a>)
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).<br>
<br>
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.<br>
<br>
Lorenzo<br>
</tt>
</body>
</html>