Hello,
I'm experiencing trouble installing gr-fosphor on my new laptop using ubuntu 18.04 LTS Fist installed opengl/cl drivers, gnu-radio over the package manager, and gr-fosphor also with package manager,
After that tried building gr-fosphor from source like described in the osmocom wiki. Also tried fresh ubuntu install with gnuradio an gr-fosphor using pybombs.this seems to fail the same.
Although my old laptop runs fosphor (3.7.13.4) fine under just intel's openclas well as my old workstation with just nvidia fosphor, (3.8.0.0) This new install won't with either combination i try.
who can help me out or point me in the right direction solving this?
Thanks in advance, Paul
Here is a description of what i did on the last try :
Installed ubuntu 18.04 Lts Desktop >> Default settings, 3th party drivers enabled.
Update:
*sudo apt-get updatesudo apt-get upgrade* Installed nvidia driver 4.30 on: "Additional Drivers" tab in "Software & Updates": *software-properties-gtk* (Apply and reboot)
Installed gnuradio via package manager: *sudo apt install gnuradio*
Installed clinfo / glxinfo: *sudo apt install clinfo mesa-utils*
Download and install latest intel opencl runtime:
*sudo apt-get install lsb-corewget http://registrationcenter-download.intel.com/*****/****/**/****/**/l_opencl_... http://registrationcenter-download.intel.com/*****/****/**/****/**/l_opencl_p_18.1.0.015.tgztar xvzf l_opencl_p_18.1.0.015.tgz cd l_opencl_p_18.1.0.015/sudo ./install_GUI.sh* (Follow steps with Defaults)
Check clinfo:
*clinfo Number of platforms 2 Platform Name NVIDIA CUDA Platform Vendor NVIDIA Corporation Platform Version OpenCL 1.2 CUDA 10.2.120 Platform Profile FULL_PROFILE Platform Extensions cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer Platform Extensions function suffix NV Platform Name Intel(R) CPU Runtime for OpenCL(TM) Applications Platform Vendor Intel(R) Corporation Platform Version OpenCL 2.1 LINUX Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint Platform Host timer resolution 1ns Platform Extensions function suffix INTEL*
Check glxinfo: *glxinfo*
*name of display: :0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: NVIDIA Corporation server glx version string: 1.4 server glx extensions: GLX_ARB_context_flush_control, GLX_ARB_create_context, GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, GLX_ARB_multisample, GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_libglvnd, GLX_EXT_stereo_tree, GLX_EXT_swap_control, GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, GLX_NV_robustness_video_memory_purge, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync client glx vendor string: NVIDIA Corporation client glx version string: 1.4 client glx extensions: GLX_ARB_context_flush_control, GLX_ARB_create_context, GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_stereo_tree, GLX_EXT_swap_control, GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_buffer, GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, GLX_NV_multisample_coverage, GLX_NV_present_video, GLX_NV_robustness_video_memory_purge, GLX_NV_swap_group, GLX_NV_video_capture, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync GLX version: 1.4 GLX extensions: GLX_ARB_context_flush_control, GLX_ARB_create_context, GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_stereo_tree, GLX_EXT_swap_control, GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, GLX_NV_robustness_video_memory_purge, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 2048 MB Total available memory: 2048 MB Currently available dedicated video memory: 1710 MB OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: GeForce MX250/PCIe/SSE2 OpenGL core profile version string: 4.6.0 NVIDIA 430.26 OpenGL core profile shading language version string: 4.60 NVIDIA OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: GL_AMD_multi_draw_indirect, GL_AMD_sea........................*
Run volk to create profile: * volk_profile*
Execute a gnuradio-companion flowgraph (FastNoiseSource>Throttle>FosphorSink):
* GLFW No Gui error: Executing: /usr/bin/python -u /home/paul/top_block.py Press Enter to quit: [+] Selected device: GeForce MX250 [!] CL Error (-5, /build/gr-fosphor-D4UWhK/gr-fosphor-3.7.0.2.7b6b996/lib/fosphor/cl.c:480): Unable to share spectrum VBO into OpenCL context >>> Done*
QT Gui error:
*Executing: /usr/bin/python -u /home/paul/top_block.py File "/home/paul/top_block.py", line 75 self.fosphor_qt_sink_c_0 = Template error: #set $win = 'self._%s_win'%$id ^ SyntaxError: invalid syntax >>> Done (return code 1*)
WX Gui error:
*Executing: /usr/bin/python -u /home/paul/top_block.py Warning: failed to XInitThreads() [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. python: ../../src/xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Done*
Install from source:
Install GnuRadio 3.7.x build dependencies:
*sudo apt install cmake git g++ libboost-all-dev python-dev python-mako python-numpy python-wxgtk3.0 python-sphinx python-cheetah swig libzmq3-dev libfftw3-dev libgsl-dev libcppunit-dev doxygen libcomedi-dev libqt4-opengl-dev python-qt4 libqwt-dev libsdl1.2-dev libusb-1.0-0-dev python-gtk2 python-lxml pkg-config python-sip-dev* Install GLFW build dependencies: *sudo apt-get install git cmake xorg-dev libglu1-mesa-dev*
Install glfw from source:
*git clone https://github.com/glfw/glfw https://github.com/glfw/glfwcd glfwmkdir buildcd buildcmake ../ -DBUILD_SHARED_LIBS=truemakesudo make installsudo ldconfig*
Install gr-fosphor build dependencies:
*sudo apt-get install nvidia-opencl-dev opencl-headerssudo apt-get install nvidia-modprobesudo apt-get install gnuradio-dev opencl-headers libboost-system-dev libboost-thread-dev*
Install gr-fosphor from source:
*git clone git://git.osmocom.org/gr-fosphor http://git.osmocom.org/gr-fosphorcd gr-fosphorcd buildcmake ../makesudo make installsudo ldconfig*
After reading https://lists.gnu.org/archive/html/discuss-gnuradio/2018-08/msg00019.html and https://lists.osmocom.org/pipermail/osmocom-sdr/2017-June/001594.html : nano gr-fosphor/lib/fosphor/private.h
Change: #define FLG_FOSPHOR_USE_CLGL_SHARING (0<<0) :
recompile and install:
*cd gr-fosphorcd buildcmake ../makesudo make installsudo ldconfig*
Tried (0<<0) (1<<0) (1<<1) (0<<1) All combinations keep giving the same errors as before. l
Hi,
I'm experiencing trouble installing gr-fosphor on my new laptop using ubuntu 18.04 LTS Fist installed opengl/cl drivers, gnu-radio over the package manager, and gr-fosphor also with package manager,\
No idea what version is packaged ...
After that tried building gr-fosphor from source like described in the osmocom wiki.
You can't mix a gnuradio package install with a source fosphor build. That won't work.
Press Enter to quit: [+] Selected device: GeForce MX250 [!] CL Error (-5, /build/gr-fosphor-D4UWhK/gr-fosphor-3.7.0.2.7b6b996/lib/fosphor/cl.c:480): Unable to share spectrum VBO into OpenCL context
This should definitely be fixed with the FLG_FOSPHOR_USE_CLGL_SHARING patch ... if this is set to 0, then the codepath where that error is printed is not even called ...
QT Gui error: Executing: /usr/bin/python -u /home/paul/top_block.py
File "/home/paul/top_block.py", line 75 self.fosphor_qt_sink_c_0 = Template error: #set $win = 'self._%s_win'%$id ^ SyntaxError: invalid syntax
GRC generated a bad file ... report that to the GRC team I guess.
What version of GNURadio is this ?
WX Gui error: Executing: /usr/bin/python -u /home/paul/top_block.py
Warning: failed to XInitThreads() [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. python: ../../src/xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Make sure that the XInitThreads call is first in the generated py file.
Cheers,
Sylvain
Hi Syvain,
Got it working installing gnuradio from pybombs and gr-fosphor from source, indeed had to change FLG_FOSPHOR_USE_CLGL_SHARING to 0
Just for info:
No idea what version is packaged ...
Ubuntu 18.04 packs: gr-fosphor (3.7.0.2.7b6b996-2)
You can't mix a gnuradio package install with a source fosphor build. That won't work.
did the source build on fresh install gnuradio from package manager and gr-fosphor from source
The qt/wx errors where the same on : Package manager version:: gnuradio (3.7.11-10) pybombs version : 3.7.13.5 Havent tried the 3.8 for this
Br Paul
Op zo 15 sep. 2019 om 13:20 schreef Sylvain Munaut 246tnt@gmail.com:
Hi,
I'm experiencing trouble installing gr-fosphor on my new laptop using
ubuntu 18.04 LTS
Fist installed opengl/cl drivers, gnu-radio over the package manager,
and gr-fosphor also with package manager,\
No idea what version is packaged ...
After that tried building gr-fosphor from source like described in the
osmocom wiki.
You can't mix a gnuradio package install with a source fosphor build. That won't work.
Press Enter to quit: [+] Selected device: GeForce MX250 [!] CL Error (-5,
/build/gr-fosphor-D4UWhK/gr-fosphor-3.7.0.2.7b6b996/lib/fosphor/cl.c:480): Unable to share spectrum VBO into OpenCL context
This should definitely be fixed with the FLG_FOSPHOR_USE_CLGL_SHARING patch ... if this is set to 0, then the codepath where that error is printed is not even called ...
QT Gui error: Executing: /usr/bin/python -u /home/paul/top_block.py
File "/home/paul/top_block.py", line 75 self.fosphor_qt_sink_c_0 = Template error: #set $win =
'self._%s_win'%$id
^
SyntaxError: invalid syntax
GRC generated a bad file ... report that to the GRC team I guess.
What version of GNURadio is this ?
WX Gui error: Executing: /usr/bin/python -u /home/paul/top_block.py
Warning: failed to XInitThreads() [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has
not been called
[xcb] Aborting, sorry about that. python: ../../src/xcb_io.c:165: dequeue_pending_request: Assertion
`!xcb_xlib_unknown_req_in_deq' failed.
Make sure that the XInitThreads call is first in the generated py file.
Cheers,
Sylvain
Hi,
Got it working installing gnuradio from pybombs and gr-fosphor from source, indeed had to change FLG_FOSPHOR_USE_CLGL_SHARING to 0
Yeah, the nVidia driver is annoying ... it used to work and they broke it a few years ago and they don't care enough to fix it. And since I got a new laptop a few years back, I don't have a nvidia card to debug or work around it.
The qt/wx errors where the same on : Package manager version:: gnuradio (3.7.11-10) pybombs version : 3.7.13.5 Havent tried the 3.8 for this
fosphor doesn't support 3.8 yet. And at first it will only support GLFW probably. (WX has been removed and switch to Qt5 is annoying because Qt changed API substantially and there is just no way to do what I did in Qt4 at all in Qt5).
Cheers,
Sylvain