-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
D415 with high CPU usage on Jetson NANO #9236
Comments
Setting BUILD_WITH_OPENMP to True to take advantage of multiple cores when utilizing the librealsense functions listed in the image below can result in greater CPU usage, as described in the documentation for CMake build flags in this link: |
Thx for your response, we already make with -BUILD_WITH_OPENMP=true. |
What the description about BUILD_WITH_OPENMP means is that if you have it set to True then that is what can cause high CPU usage. So it would be an expected behaviour when including BUILD_WITH_OPENMP=true in your CMake build instruction. |
The RealSense SDK supports GLSL, an alternative method of offloading work from the CPU to the GPU. It is 'vendor neutral', meaning that it should work with any brand of video chip. The improvement may not be noticable on low-power devices though, and there is not much information about using it with Python instead of C++. #3654 Advice is given in a Jetson Nano case in the link below that using GLSL may not be faster than CUDA anyway. So using -DBUILD_WITH_CUDA=true and not setting -BUILD_WITH_OPENMP to true may provide the best results. The discussion linked to above does provide a comment from the RealSense user in that case that they were able to achieve a 10x speed increase in their code using a method described in the link below. |
I have a question, can you help me? I use pyrealsense2-aarch64 in jetson nano. I use D455。 but: error:Module 'pyrealsense2' has no attribute 'pipeline' how to solve this problem?please。 |
Hi @Try-Hello I will respond to your question at the new case that you have created for it. Thanks! |
Thx for your help!!! We will do it. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
We observed high CPU usage when we just use python to capture depth(640x480 30fps) and color frame(640x480 30fps). But I think realsense should not compute something on CPU.
What is the cause of this, or any settings need to adjust. Any suggestions?
Thank you for your help.
Here is our cmake command:
cmake .. -DBUILD_EXAMPLES=true
-DCMAKE_BUILD_TYPE=release
-DFORCE_RSUSB_BACKEND=false
-DBUILD_WITH_CUDA=true
-DBUILD_PYTHON_BINDINGS:bool=true
-DPYTHON_EXECUTABLE=/usr/bin/python3
-BUILD_WITH_OPENMP=true
&& make -j$(($(nproc)-1)) && sudo make install
Here is our python script:
The text was updated successfully, but these errors were encountered: