GNURadio block for spectrum visualization using GPU https://osmocom.org/projects/sdr/wiki/Fosphor
Go to file
Sylvain Munaut 9433e60478 fosphor/cl: Handle CL 1.1 vs 1.2 differently
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>
2014-07-24 22:34:06 +02:00
apps Initial import of the GNURadio block 2013-10-13 22:02:56 +02:00
cmake gr-fosphor/cmake: Fix FindFreetype2 to properly cache the include dir var 2014-07-22 10:16:40 +02:00
docs Initial import of the GNURadio block 2013-10-13 22:02:56 +02:00
grc gr-fosphor: Allow to select custom FFT window from the gr::fft:window list 2013-11-10 22:24:07 +01:00
include/gnuradio/fosphor gr-fosphor: Update year in copyright notice 2014-07-24 22:34:05 +02:00
lib fosphor/cl: Handle CL 1.1 vs 1.2 differently 2014-07-24 22:34:06 +02:00
python gr-fosphor: Update year in copyright notice 2014-07-24 22:34:05 +02:00
swig gr-fosphor: Allow to select custom FFT window from the gr::fft:window list 2013-11-10 22:24:07 +01:00
AUTHORS Initial import of the GNURadio block 2013-10-13 22:02:56 +02:00
CMakeLists.txt gr-fosphor/cmake: Require GNURadio 3.7.2 2013-11-12 07:48:40 +01:00
COPYING Initial import of the GNURadio block 2013-10-13 22:02:56 +02:00
gnuradio-fosphor.pc.in gr-fosphor: Add dummy version in .pc file 2013-10-26 17:54:02 +02:00

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)