autowarefoundation / autoware

Autoware - the world's leading open-source software project for autonomous driving
https://www.autoware.org/
Apache License 2.0
8.97k stars 3k forks source link

CUDA is not found in latest Docker image #5219

Open amadeuszsz opened 1 week ago

amadeuszsz commented 1 week ago

Checklist

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 commented 2 days ago

@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 commented 2 days ago

Oh great! Could you close this issue?

amadeuszsz commented 2 days ago

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 commented 2 days ago

@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.