<div dir="ltr">I know this thread is a bit old, but it's worth mentioning that CL/GL sharing being enabled causes fosphor to be broken altogether on my setup as of the latest master commit (possibly earlier). Everything builds, but the following runtime error occurs:<div><br></div><div>[!] CL Error (-5, /home/user/gr-fosphor/lib/fosphor/cl.c:480): Unable to share spectrum VBO into OpenCL context<br></div><div><br></div><div>As previously mentioned, everything works okay if I change the value of FLG_FOSPHOR_USE_CLGL_SHARING in private.h to 0.</div><div><br></div><div>Sylvain, do you always have the value of this flag as zero in your building and testing? Or do you leave it as 1 and fosphor works because you're using Intel CPU OpenCL or something? Maybe check in "#define FLG_FOSPHOR_USE_CLGL_SHARING<span style="white-space:pre"> </span>(0<<0)" into the source repo until you can verify that this code path works correctly?</div><div><br></div><div>Details of my setup:</div><div>x86_64 (Xeon D)</div><div>Ubuntu 16.04<br></div><div>NVIDIA Titan Xp<br></div><div>NVIDIA Driver 375.66 from the standard Ubuntu (xenial-updates)</div><div>nvidia-opencl-icl-375 from the standard Ubuntu repos</div><div><br></div><div>I'm happy to test things out and will do some of my own debugging.<br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 7, 2017 at 3:52 PM, Raj Bhattacharjea <span dir="ltr"><<a href="mailto:raj.b@gatech.edu" target="_blank">raj.b@gatech.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Sylvain,</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok, good to know.<br>
<br>
I need to come up with a good way to pass "options" to fosphor to be<br>
able to configure theses things at runtime.<br>
<span><br></span></blockquote><div><br></div></span><div>That would be useful! Given how much I use your tool for real work, I'm willing to contribute; do you look at pull requests on the github mirror? Here are some other things I have often considered plumbing through as options:</div><div>1. FFT length. It looks like you have a length 512 FFT kernel in <a href="http://fft.cl" target="_blank">fft.cl</a> already, but I think its unused. A few other FFT sizes might be useful too for adjusting resolution bandwidth. With what you have, several other powers of two should be implementable simply.</div><div>2. Waterfall time length. Requires some GL tricks to change the texture size, or internally render at some fixed size and always crop and/or downsample the texture to show the amount of time the user requested.</div><div><br></div><div>Thanks for the tips that resolved the issue!</div></div><span class=""><div><br></div>-- <br><div class="m_1042479322792714924gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Raj Bhattacharjea, PhD</div><div>Georgia Tech Research Institute</div><div>Information and Communications Laboratory</div><div><a href="http://www.prism.gatech.edu/~rb288/" style="font-size:12.8000001907349px" target="_blank"><span style="font-size:12.8000001907349px">http://www.prism.gatech.edu/~r</span><wbr>b288/</a><br></div><div><a href="tel:(404)%20407-6622" value="+14044076622" target="_blank">404.407.6622</a></div></div></div></div></div></div></div></div>
</span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Raj Bhattacharjea, PhD</div><div>Georgia Tech Research Institute</div><div>Information and Communications Laboratory</div><div><a href="http://www.prism.gatech.edu/~rb288/" style="font-size:12.8000001907349px" target="_blank"><span style="font-size:12.8000001907349px">http://www.prism.gatech.edu/~r</span>b288/</a><br></div><div>404.407.6622</div></div></div></div></div></div></div></div>
</div>