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

OA problem for GPU version #44

Closed
0wh opened this issue Oct 28, 2022 · 3 comments
Closed

OA problem for GPU version #44

0wh opened this issue Oct 28, 2022 · 3 comments

Comments

@0wh
Copy link

0wh commented Oct 28, 2022

I am interested in the GPU version. I followed the instructions in Use GPU or Not and was able to build it with no error. However it seems the drones stopped avoiding any obstacle. They are only avoiding other drones, then fly straight forward despite of the obstacles in the map, see the attached picture. The CPU version works well, this problem only happens when I change ENABLE_CUDA to true. How should I solve it? Thanks!
Screenshot_20221026_234243

@bigsuperZZZX
Copy link
Member

That's because you have set the wrong CUDA_NVCC_FLAGS as described in "Use GPU or Not" section.
You can visualize a depth stream in rviz to see if the depth looks right.

@hildebrandt-carl
Copy link

hildebrandt-carl commented Mar 13, 2023

I was also having this issue. However after setting the correct CUDA_NVCC_FLAGS it worked.

I couldn't find an official Nvidia page, however you can find the CUDA_NVCC_FLAGS using either this website or this website. For example, I have a RTX 3090, and you can see that I need to set my -gencode to 86. Therefor I would set -gencode arch=compute_86,code=sm_86;.

@bigsuperZZZX
Copy link
Member

Thank you very much!

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

No branches or pull requests

3 participants