<p dir="ltr">Cross-posting an inquiry I sent yesterday to discuss-gnuradio; perhaps osmocom-sdr may be a more appropriate venue.</p>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: "Card, Stu" <<a href="mailto:stu.card@axenterprize.com">stu.card@axenterprize.com</a>><br>Date: May 7, 2016 4:08 PM<br>Subject: gr-fosphor: n00b run-time errors with benchmark tool and sink block on AMD APU<br>To:  <<a href="mailto:discuss-gnuradio@gnu.org">discuss-gnuradio@gnu.org</a>><br>Cc: <br><br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>My apologies for this n00b question, but I have not found answers in the usual places.<br><br></div>I have carefully followed the instructions at<br><br><a href="http://sdr.osmocom.org/trac/wiki/fosphor" target="_blank">http://sdr.osmocom.org/trac/wiki/fosphor</a><br><br></div>For building the benchmark tool, I replaced the line<br><br></div> make LDFLAGS=-L/opt/intel/opencl-1.2-4.5.0.8/lib64<br><br></div>with<br><br></div> make LDFLAGS=-L/opt/AMDAPPSDK-3.0/lib/x86_64/sdk<br><br></div><div>for my AMD APU (CPU w/on-chip GPU) hardware<br></div><div><br></div>and<br><br>edited the Makefile to remove "-Werror" from the CFLAGS as otherwise the warning about cl_create_command_queue being deprecated causes Make to give up.<br><br></div>After thus building the benchmark tool, running main yields<br><br>libEGL warning: DRI2: failed to authenticate<br>[+] Selected device: Devastator<br>libGL error: No matching fbConfigs or visuals found<br>libGL error: failed to load driver: swrast<br>X Error of failed request:  BadMatch (invalid parameter attributes)<br>  Major opcode of failed request:  157 (GLX)<br>  Minor opcode of failed request:  5 (X_GLXMakeCurrent)<br>  Serial number of failed request:  30<br></div><div>  Current serial number in output stream:  30C<br><br></div><div>Attempting to use the GRC fosphor sink block in a trivial flowgraph (with a signal source, noise source and add operation, intended to give me a tone with a noise floor), I get no output until I manually terminate it, and then in the GRC message pane I see<br><br>libEGL warning: DRI2: failed to find _glapi_get_proc_address<br>[+] Selected device: Devastator<br>[!] CL Error (-34, /home/stu/gr-fosphor/lib/fosphor/cl.c:464): Unable to share waterfall texture into OpenCL context<br><br></div><div>The same flowgraph, with the fosphor sink replaced by a QT GUI waterfall sink, works as expected.<br></div><div><br>Any pointers would be greatly appreciated.<br></div><div><br>--<br></div><div>Stu Card <<a href="mailto:stu.card@axenterprize.com" target="_blank">stu.card@axenterprize.com</a>><br><br></div></div>
</blockquote></div>