GNURadio block for spectrum visualization using GPU
https://osmocom.org/projects/sdr/wiki/Fosphor
Sylvain Munaut
9433e60478
The OpenCL 1.2 is nicer but we can't always use it and on linux, even if the CL_VERSION_1_2 exists, we can't trust it because distrib sometimes have CL 1.2 headers with a CL 1.1 dispatcher. So instead, we only assume we have 1.1 header and lib at compile time. Then at run-time we do a dynamic lookup of the 1.2 symbols from the lib. We also check if the actual selected platform does support 1.2 (you could have a 1.2 dispatcher with a 1.1 platform implementation). If both conditions are satisfied, then we dispatch the call to the 1.2 implementation and if not, then we dispatch them to a local fallback implementation of the functions (but limited to the functions we need) It's not pretty but it should work and it isolates all the hack magic inside cl_compat.{c,h} and you just use the CL1.2 API normally outside of it. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> |
||
---|---|---|
apps | ||
cmake | ||
docs | ||
grc | ||
include/gnuradio/fosphor | ||
lib | ||
python | ||
swig | ||
AUTHORS | ||
CMakeLists.txt | ||
COPYING | ||
gnuradio-fosphor.pc.in |
docs/README.fosphor
To use the fosphor blocks in Python, import it as : from gnuradio import fosphor See the Doxygen documentation for details about the blocks available in this package. A quick listing of the details can be found in Python after importing by using: help(fosphor)