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.tgz>tar
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/glfw>cd
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-fosphor>cd 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