Commit Graph

13 Commits

Author SHA1 Message Date
Sylvain Munaut dec2f97875 gr-fosphor: Make sure FindGnuradioRuntime caches GNURADIO_RUNTIME_LIBRARIES
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-26 17:51:38 +02:00
Sylvain Munaut f73efd5172 gr-fosphor: Fix include guard #define on glfw_sink_c.h
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-26 17:51:12 +02:00
Sylvain Munaut bdb346607a gr-fosphor: Fix indentation in __init__.py
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-26 17:50:53 +02:00
Sylvain Munaut 36d05cfc57 fosphor/cl: Make the batch size dynamic and up to FOSPHOR_FFT_MAX_BATCH
Basically need to :
 - Set the kernel parameter at each kernel invocation
 - Modify the kernel to deal with wrap-around when writing the
   waterfall texture

The batch size still must meet some constraint :
 - Be a multiple of FOSPHOR_FFT_MULT_BATCH
 - Be less than FOSPHOR_FFT_MAX_BATCH

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-26 17:49:48 +02:00
Sylvain Munaut 020f5b1c6f fosphor: Make sure the FFT len is from #define everywhere
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-26 17:49:19 +02:00
Sylvain Munaut e828e7faff fosphor/cl: Add a debug block allowing to save compile CL binary for debug
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-26 17:48:25 +02:00
Sylvain Munaut 95f8775ce2 gr-fosphor/cmake: Import latest GrPython from gnuradio git for OSX build
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-20 10:00:03 +02:00
Sylvain Munaut 20fd7fac53 fosphor/cl: Allow the use of cl_khr_local_int32_base_atomics extension
Apparently there are some cards that are neither Nvidia SM1.1, nor
OpenCL 1.1 but that do have cl_khr_local_int32_base_atomics extension.

This is enough for fosphor to implement the histogram so add the
required code to test for it and enable its use in the kernel if
required.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-18 11:43:06 +02:00
Sylvain Munaut 72f71d5f00 gr-fosphor: Rewrite the FindGnuradioRuntime to use all libraries in .pc
The .pc has several libraries listed but the current cmake module for
it only takes gnuradio-runtime.

The new logic takes all libraries in the .pc and only fallsback to only
gnuradio-runtime if no .pc is found

This seems required for OSX.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-16 09:14:46 +02:00
Sylvain Munaut 6db631c466 fosphor/cl: Add a workaround for OSX hiding the NVidia attributes
OSX doesn't allow query of NV attributes even on NVidia cards so we just
assume any non-opencl 1.1 nvidia card that does OpenCL is a SM1.1 one.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-16 09:12:59 +02:00
Sylvain Munaut 32e410a8c8 fosphor/cl: Remove extraneous CL/xxx includes
Those are taken care of by the cl_platform.h wrapper now

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-16 09:12:32 +02:00
Sylvain Munaut aabc21b7f2 fosphor: Initial import of the core code
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-13 22:05:38 +02:00
Sylvain Munaut edfee19c61 Initial import of the GNURadio block
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-10-13 22:02:56 +02:00