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

Update deprecated TensorRT 8.5 codes for ROS2 humble #2330

Open
10 of 19 tasks
xmfcx opened this issue Nov 19, 2022 · 7 comments
Open
10 of 19 tasks

Update deprecated TensorRT 8.5 codes for ROS2 humble #2330

xmfcx opened this issue Nov 19, 2022 · 7 comments
Assignees
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) priority:low Lower urgency, can be addressed later. ros:humble ROS Humble Hawksbill release. status:help-wanted Assistance or contributors needed. status:stale Inactive or outdated issues. (auto-assigned)

Comments

@xmfcx
Copy link
Contributor

xmfcx commented Nov 19, 2022

Checklist

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

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

  • Make sure all TensorRT packages compile
  • Make sure traffic_light_classifier works normally
  • Make sure traffic_light_ssd_fine_detector works normally
  • Make sure tensorrt_yolo works normally
  • Make sure lidar_centerpoint works normally
  • Make sure tensorrt_yolox works normally
  • CI is updated is updated to install the latest TensorRT packages
  • Ansible code is updated to install the latest TensorRT packages
  • PRs are merged
@xmfcx
Copy link
Contributor Author

xmfcx commented Nov 19, 2022

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 ?

@xmfcx xmfcx added this to the Bus ODD Nov-Dec Milestone milestone Nov 19, 2022
@kenji-miyake
Copy link
Contributor

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

👍
Using different versions for arm64 and amd64 would be too complicated.

@yukke42
Copy link
Contributor

yukke42 commented Nov 24, 2022

Nice!
Doesn't lidar_apollo_instance_segmentation need to be updated?

@xmfcx
Copy link
Contributor Author

xmfcx commented Nov 24, 2022

@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
Copy link
Contributor Author

xmfcx commented Dec 21, 2022

Update

Actions

cc @wep21 @kenji-miyake @yukkysaito

@xmfcx
Copy link
Contributor Author

xmfcx commented Dec 21, 2022

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

Also from my experience on the task:

@xmfcx xmfcx added status:help-wanted Assistance or contributors needed. priority:low Lower urgency, can be addressed later. labels Dec 21, 2022
@BonoloAWF BonoloAWF removed this from the Bus ODD Nov-Dec Milestone milestone Jan 6, 2023
@stale
Copy link

stale bot commented Mar 7, 2023

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

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) priority:low Lower urgency, can be addressed later. ros:humble ROS Humble Hawksbill release. status:help-wanted Assistance or contributors needed. status:stale Inactive or outdated issues. (auto-assigned)
Projects
Status: Backlog
Development

No branches or pull requests

4 participants