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

fix(tensorrt_yolo): change the CMakeLists.txt folders for compiling error on Jetson AGX-Orin #1436

Closed
wants to merge 2 commits into from

Conversation

NilaySener
Copy link

@NilaySener NilaySener commented Jul 26, 2022

Description

Jetson AGX-Orin uses Jetpack 5.1.0 which includes:

  • CUDA 11.4.14
  • TensorRT 8.4.0 Early Access
  • cuDNN 8.3.2

These library versions were giving deprecation errors while compiling some packages:

  • tensorrt_yolo
  • lidar_apollo_instance_segmentation
  • lidar_centerpoint
  • traffic_light_ssd_fine_detector
  • traffic_light_classifier

To fix this issue, compiler flag added to CMakeLists.txt. Should we add this situation to documantation? I opened an issue in autoware-documentation for this case.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@mitsudome-r mitsudome-r added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Jul 26, 2022
@miursh miursh requested a review from manato July 29, 2022 01:27
@wep21 wep21 mentioned this pull request Jul 30, 2022
4 tasks
@@ -5,7 +5,8 @@ find_package(autoware_cmake REQUIRED)
autoware_package()

option(CUDA_VERBOSE "Verbose output of CUDA modules" OFF)

set(DEPRECATION_FLAG "-Wno-error=deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}")

Comment on lines 29 to 30


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary change

@@ -5,7 +5,8 @@ find_package(autoware_cmake REQUIRED)
autoware_package()

option(CUDA_VERBOSE "Verbose output of CUDA modules" OFF)

set(DEPRECATION_FLAG "-Wno-error=deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}")

@@ -7,7 +7,8 @@ autoware_package()
option(CUDA_VERBOSE "Verbose output of CUDA modules" OFF)

find_package(OpenCV REQUIRED)

set(DEPRECATION_FLAG "-Wno-error=deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}")

@@ -5,6 +5,9 @@ find_package(autoware_cmake REQUIRED)
autoware_package()

option(CUDA_VERBOSE "Verbose output of CUDA modules" OFF)

set(DEPRECATION_FLAG "-Wno-error=deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}")

@@ -7,7 +7,8 @@ autoware_package()
option(CUDA_VERBOSE "Verbose output of CUDA modules" OFF)

find_package(OpenCV REQUIRED)

set(DEPRECATION_FLAG "-Wno-error=deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}"
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAG}")

@NilaySener NilaySener requested a review from wep21 August 8, 2022 12:47
@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #1436 (897a035) into main (d27e83d) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##            main   #1436      +/-   ##
========================================
- Coverage   9.59%   9.55%   -0.04%     
========================================
  Files       1042    1047       +5     
  Lines      71837   72106     +269     
  Branches   15590   15590              
========================================
  Hits        6890    6890              
- Misses     58978   59247     +269     
  Partials    5969    5969              
Flag Coverage Δ *Carryforward flag
differential 0.00% <ø> (?)
total 9.57% <ø> (ø) Carriedforward from d27e83d

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
perception/lidar_centerpoint/src/node.cpp 0.00% <0.00%> (ø)
...erception/traffic_light_classifier/src/nodelet.cpp 0.00% <0.00%> (ø)
.../image_projection_based_fusion/src/fusion_node.cpp 0.00% <0.00%> (ø)
...ion_based_fusion/src/pointpainting_fusion/node.cpp 0.00% <0.00%> (ø)
...usion/src/pointpainting_fusion/voxel_generator.cpp 0.00% <0.00%> (ø)
...ed_fusion/pointpainting_fusion/voxel_generator.hpp 0.00% <0.00%> (ø)
...ion/src/pointpainting_fusion/pointpainting_trt.cpp 0.00% <0.00%> (ø)
...sion/src/pointpainting_fusion/preprocess_kernel.cu 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@xmfcx
Copy link
Contributor

xmfcx commented Aug 9, 2022

@wep21 can you approve it if it is ok now?

@wep21
Copy link
Contributor

wep21 commented Aug 9, 2022

@xmfcx As I mentioned in the PR, I would like to merge it instead of this PR.

@wep21 wep21 closed this in #1472 Aug 10, 2022
saka1-s pushed a commit to saka1-s/autoware.universe that referenced this pull request Aug 1, 2024
…d bring back to timer trigger autowarefoundation#8277 (autowarefoundation#1436)

* fix: revert latency reduction logic and bring back to timer trigger

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

* style(pre-commit): autofix

* chore: remove unused variables

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

---------

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants