autoware icon indicating copy to clipboard operation
autoware copied to clipboard

Use a common base image for CUDA libraries

Open kenji-miyake opened this issue 2 years ago • 1 comments

Checklist

  • [X] I've read the contribution guidelines.
  • [X] I've searched other issues and no duplicate issues were found.
  • [X] I've agreed with the maintainers that I can plan this task.

Description

Currently, we install CUDA using setup-dev-env.sh, but it creates different layers and enforces people to pull a large part of the image every time.

To avoid that, it's better to have a common base image.

Purpose

To minimize the differences between Autoware's Docker Images.

Possible approaches

  • Wait for NVIDIA to release a new image and deb packages, and use them. (Recommended)
    • We might have to add the --no-cuda option to setup-dev-env.sh.
  • Create a common Autoware base image.

Definition of done

Autoware's Docker Images are based on a common base image.

kenji-miyake avatar May 24 '22 06:05 kenji-miyake

For Galactic, it will be resolved by https://github.com/autowarefoundation/autoware/pull/2703.

kenji-miyake avatar Jul 04 '22 06:07 kenji-miyake

For both arm64 and amd64, we can use nvidia/cuda:12.3.0-base-ubuntu22.04 since now we have upgraded to CUDA 12.3 with:

  • https://github.com/autowarefoundation/autoware/issues/3943

I will create a small PR to build and test.

xmfcx avatar Nov 15 '23 15:11 xmfcx

Closing this since it will be handled in more detail in:

  • https://github.com/autowarefoundation/autoware/issues/3999

xmfcx avatar Nov 16 '23 11:11 xmfcx