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_CUDA_LIBRARY Error Cmake #150

Open
bretwitt opened this issue May 27, 2024 · 3 comments
Open

CUDA_CUDA_LIBRARY Error Cmake #150

bretwitt opened this issue May 27, 2024 · 3 comments

Comments

@bretwitt
Copy link
Contributor

bretwitt commented May 27, 2024

Host system has NVIDIA Container Toolkit 15.2, CUDA 11.4 on Ubuntu 20.04 (if it matters)

I'm building with atk dev -ba -s chrono --optionals gpus vnc to build a fresh Chrono image (the dockerhub one is out of date for the current Chrono feature/ros branch) I'm also building for humble

I'm running into the following error at step 13

image

Would appreciate some guidance!

@bretwitt bretwitt changed the title FIND_CUDA_CUDA CMake Error CUDA_CUDA_LIBRARY Error Cmake May 27, 2024
@bretwitt
Copy link
Contributor Author

bretwitt commented May 27, 2024

As an update, error is reproduced with CUDA 12.2 and NVIDIA CUDA toolkit 12.2 and nvidia_container_toolkit

@bretwitt
Copy link
Contributor Author

This was fixed by appending -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs to the CMake build command. The demo_ART_cone.py needed some small fixes to accomodate a (new?) PyChrono API. I'd be happy to make it a PR/fork if needed

@AaronYoung5
Copy link
Collaborator

@bretwitt Ah sorry, I must have notifcations disabled! Thanks for the update. Odd that it worked okay before and not anymore. Looks like we can just set -DCMAKE_LIBRARY_PATH=${LIBRARY_PATH} since nvidia includes the cuda library path in the LIBRARY_PATH env variable (I wonder if there was a change in chrono which caused this to break, probably okay to do this for now tho). I will make a PR with this change, as well as updating the chrono branch to main since feature/ros has been merged in the latest release.

As for the PyChrono demo fixes, feel free to make a PR with those! I meant to update those, but didn't get to it. Thanks for debugging that!!

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