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 is not found in latest Docker image #5219

Open
3 tasks done
amadeuszsz opened this issue Sep 12, 2024 · 5 comments
Open
3 tasks done

CUDA is not found in latest Docker image #5219

amadeuszsz opened this issue Sep 12, 2024 · 5 comments
Assignees
Labels
type:bug Software flaws or errors. type:containers Docker containers, containerization of components, or container orchestration.

Comments

@amadeuszsz
Copy link
Contributor

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

Building CUDA-based packages is not possible in Docker container. This issue occurred after update Docker image.
CUDNN and TensorRT seems exist in container, reported by

dpkg -s libcudnn8
dpkg -s libnvinfer8

however cmake macros can't find them.

Expected behavior

Can build package.

Actual behavior

Can't build package.

Steps to reproduce

./docker/run.sh  --devel
cd /workspace
sudo rm -r install/tensorrt_common/ build/tensorrt_common/
colcon build --packages-up-to tensorrt_common

Output:

CMake Warning at CMakeLists.txt:15 (message):
  cuda, cudnn, tensorrt libraries are not found

It applies for all packages which use CUDNN / TensorRT.

Versions

No response

Possible causes

No response

Additional context

No response

@amadeuszsz amadeuszsz added the type:containers Docker containers, containerization of components, or container orchestration. label Sep 12, 2024
@amadeuszsz
Copy link
Contributor Author

@youtalk
Base on last commit I switched to 20240903-devel-cuda tag and it works. Maybe it will helpful for you for issue investigation.

@youtalk
Copy link
Member

youtalk commented Sep 19, 2024

Oh great! Could you close this issue?

@amadeuszsz
Copy link
Contributor Author

Oh great! Could you close this issue?

@youtalk
I'm not sure if we can close this issue. If any breaking change within Autoware dependencies appear, 20240903-devel-cuda will become incompatible. universe-devel-cuda needs to allow CUDA-related packages to be built.

Is it an unknown bug or is it related to temporary state because of changes in Docker containers?

@youtalk
Copy link
Member

youtalk commented Sep 20, 2024

@amadeuszsz It might be an unknown bug because I expect the current autoware:base-cuda image is installed CUDA drivers https://github.com/autowarefoundation/autoware/blob/main/docker/Dockerfile#L28.

@marioney
Copy link

marioney commented Oct 3, 2024

Hi, I'm having this same issue. I'm working with universe-devel-cuda-20240927 and when I try build autoware_lidar_centerpoint I get a message similar to the one mentioned by the OP.

Furthermore, I try to run the preinstalled autoware_lidar_centerpoint I get this error

Caught exception in launch (see debug for traceback): package 'autoware_lidar_centerpoint' found at '/opt/autoware', but libexec directory '/opt/autoware/lib/autoware_lidar_centerpoint' does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Software flaws or errors. type:containers Docker containers, containerization of components, or container orchestration.
Projects
None yet
Development

No branches or pull requests

3 participants