librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

librealsense does not use a fallback code when compiled with CUDA but no GPU is available

Open guillaumeautran opened this issue 3 years ago • 4 comments


Required Info
Camera Model D400
Firmware Version 05.13.00.50
Operating System & Version Ubuntu 20.04
Kernel Version (Linux Only) 5.4.0.66
Platform PC
SDK Version 2.50.0
Language C++
Segment Robot

Issue Description

Based on the code and actual testing, the librealsense compiled with BUILD_WITH_CUDA option does not fall back to a CPU implementations when a GPU is not available. The selection of backend processing code is done using a #ifdef strategy in here: https://github.com/IntelRealSense/librealsense/blob/5ff27fca5aaeec4736d6bb3bfb958fee82ee198b/src/proc/processing-blocks-factory.cpp#L13-L30 as opposed to performing a fallback if creating a CUDA context does not work.

guillaumeautran avatar Dec 21 '21 14:12 guillaumeautran

Thanks so much @guillaumeautran for your PR. I have added an Enhancement tag to this case to indicate that it should be kept open whilst the PR that is associated with it is active. Thanks again!

MartyG-RealSense avatar Dec 21 '21 14:12 MartyG-RealSense

Hi again @guillaumeautran As your PR at https://github.com/IntelRealSense/librealsense/pull/10086 did not pass build checks, would you like to take a look at it to see whether it can be fixed, please? Thanks!

MartyG-RealSense avatar Mar 19 '22 08:03 MartyG-RealSense

Hi, sorry for the delay here. Yes, I will rebase and fix the PR in the coming weeks.

guillaumeautran avatar Jul 12 '22 13:07 guillaumeautran

It's no problem at all, @guillaumeautran - thanks very much for the update!

MartyG-RealSense avatar Jul 12 '22 13:07 MartyG-RealSense