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

Best practice for D415 filters performance #6868

Closed
LorenzoMonti opened this issue Jul 20, 2020 · 6 comments
Closed

Best practice for D415 filters performance #6868

LorenzoMonti opened this issue Jul 20, 2020 · 6 comments

Comments

@LorenzoMonti
Copy link

Hello,

I compile from source Librealsense keeping in mind the posts about performance with temporal and spatial filters. I'm working on Nvidia AGX Xavier and i would like to exploit CUDA. I compiled with the right flags (i think) such as -DBUILD_EXAMPLES=true -DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DBUILD_PYTHON_BINDINGS=true -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_CUDA=true -DUSE_CUDA=true -DBUILD_WITH_OPENMP=true and i tried to remove auto-exposure.

Even though I did all this, the filters kill the performance in my project. Any suggestions?

Thanks

@MartyG-RealSense
Copy link
Collaborator

Hi @LorenzoMonti Which Librealsense version are you using, please? If it is 2.35.2, that SDK had a bug in using -DBUILD_WITH_CUDA=true that was fixed in SDK 2.36.0.

#6581

@LorenzoMonti
Copy link
Author

Hi @MartyG-RealSense, sorry i forgot the version. The SDK version used is 2.36.0 and i've already compiled with the flag -DBUILD_WITH_CUDA=true

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jul 21, 2020

CUDA is more likely to accelerate align functions than it is to speed up post-processing filter calculations.

#2670

I wonder if you may gain performance if a GLSL Processing Block is added to your application. Like CUDA it can offload work from the CPU to the GPU. As it can give overall performance improvement in the SDK, you may make some speed gains that way.

#3654

@MartyG-RealSense
Copy link
Collaborator

Hi again @LorenzoMonti Do you still require assistance with this case please, or can it be closed? Thanks!

@LorenzoMonti
Copy link
Author

Thanks @MartyG-RealSense, it's all right. I'll close the issue.

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @LorenzoMonti !

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

2 participants