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

Cuda Cmake Vs2019 warnings about architectures #10228

Closed
arothenberg opened this issue Feb 9, 2022 · 2 comments
Closed

Cuda Cmake Vs2019 warnings about architectures #10228

arothenberg opened this issue Feb 9, 2022 · 2 comments

Comments

@arothenberg
Copy link

arothenberg commented Feb 9, 2022


Required Info
Camera Model D435
Firmware Version 05.12.02.100
Operating System & Version Win (10)
Platform PC
SDK Version 2.32
Language C++
Segment desktop app

Issue Description

I'm building the sdk with the Cuda flag and I ran into a problem where I had to manually add the
Cuda_toolkit_root_dir -
I downloaded the latest Cuda and the path is
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6

I was also missing(according to cmake) the Cuda sdk location. After some research I found that "samples" was the sdk location so for
Cuda_sdk_root_dir I added
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/extras/CUPTI
I also tried with the sdk_root_dir empty.
I don't think the variable is important but IDK?

The files generated but I got this warning:


 CMake Warning (dev) in CMakeLists.txt  
Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
  empty CUDA_ARCHITECTURES not allowed.

I researched further and was suggested
cmake --help-policy CMP0104 - which showed a large text block about deprecation after v3.18... I didn't understand the implications.

Does this warning mean Cuda has not been enabled with realsense?

Thanks.

@arothenberg
Copy link
Author

Is there a test script to see if Cuda is being used?

@MartyG-RealSense
Copy link
Collaborator

Closed as duplicate of #10227

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

2 participants