autowarefoundation / autoware.universe

https://autowarefoundation.github.io/autoware.universe/
Apache License 2.0
946 stars 617 forks source link

Update deprecated TensorRT 8.5 codes for ROS2 humble #2330

Open xmfcx opened 1 year ago

xmfcx commented 1 year ago

Checklist

Description

Currently in CI for humble & Ubuntu 22.04, we are using old (Ubuntu 20.04) packages for TensorRT.

In the latest (currently tensorrt-dev_8.5.1.7-1+cuda11.8) TensorRT version, some old APIs are deprecated.

Purpose

This issue is created to track upgrading the following 4 packages to compile and run Autoware Universe successfully.

Possible approaches

Definition of done

xmfcx commented 1 year ago

The ARM64 network repository https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/sbsa/ still doesn't have tensorrt-dev available.

I think we should also wait until this is available too.

Because the new code is not backwards compatible. (Update on 2022-12-21: I've updated them to be backwards compatible.)

We could also install old packages to ARM64 and new packages to x86_64 too but it would make things complicated.

What do you think, @wep21 @kenji-miyake ?

kenji-miyake commented 1 year ago

I think we should also wait until this is available too.

:+1: Using different versions for arm64 and amd64 would be too complicated.

yukke42 commented 1 year ago

Nice! Doesn't lidar_apollo_instance_segmentation need to be updated?

xmfcx commented 1 year ago

@yukke42

Doesn't lidar_apollo_instance_segmentation need to be updated?

With all current PRs applied, everything compiled fine. I also checked lidar_apollo_instance_segmentation/lib/src/TrtNet.cpp and it doesn't look like it's using outdated APIs similar to ones I've changed.

Tomorrow I will try to compile it again just to be sure.

xmfcx commented 1 year ago

Update

Actions

cc @wep21 @kenji-miyake @yukkysaito

xmfcx commented 1 year ago

As for guidance in understanding the the enqueueV2 to enqueueV3 transition, following resources can be helpful:

Also from my experience on the task:

stale[bot] commented 1 year ago

This pull request has been automatically marked as stale because it has not had recent activity.