Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating CUDA #6302

Closed
brsbilgin opened this issue Apr 26, 2020 · 4 comments
Closed

Activating CUDA #6302

brsbilgin opened this issue Apr 26, 2020 · 4 comments

Comments

@brsbilgin
Copy link

brsbilgin commented Apr 26, 2020

| Camera Model | D435 |
| Firmware Version | 05.12.03.00 |
| Operating System & Version | Linux (Ubuntu 18.04) |
| Kernel Version (Linux Only) | 4.9.140-tegra |
| Platform | NVIDIA Jetson |
| SDK Version | 2.32.1 |

For activating CUDA cores should I build from sources with correct flags or it is enough install from debian packages? How can I evaluate it is using CUDA cores or not?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Apr 26, 2020

CUDA support can be enabled with a CMake flag called BUILD_WITH_CUDA, which is set to False by default.

image

CUDA support can be enabled from within a CMake build instruction for the Librealsense SDK using a build instruction similar to the one below:

cmake ../ -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true -DBUILD_WITH_CUDA=true

An easy way to check whether the effect of CUDA support is being applied is to check CPU usage. There should be a clear reduction in CPU % usage with CUDA support enabled, as highlighted by the example chart below:

image

@brsbilgin
Copy link
Author

brsbilgin commented Apr 26, 2020

Hi MartyG,
Thank you for quick reply. Actually my question is I already install with "sudo apt-get install librealsense2-utils librealsense2-dev -y". For CUDA support should I remove this packages and build according above your instructions.
Yesterday I build with -DBUILD_WITH_CUDA=true and today with new jetson image I just install with "sudo apt-get install librealsense2-utils librealsense2-dev -y" I couldn't see any dramatic change between yesterday and today.

@dorodnic
Copy link
Contributor

Hi @brsbilgin
Debian packages are already built with CUDA.

@brsbilgin
Copy link
Author

Thank you Dorodnic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants