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(lidar_centerpoint): fixed the lidar_centerpoint related packages for their use without installing symlinks #1916

Merged

Conversation

knzo25
Copy link
Contributor

@knzo25 knzo25 commented Sep 21, 2022

Description

When compiling this package without the symlink option, the cuda library is not installed.

Before this PR:

colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to lidar_centerpoint


find . -name 'libcenterpoint_cuda_lib.so'
>>> ./build/lidar_centerpoint/libcenterpoint_cuda_lib.so


ldd ./install/lidar_centerpoint/lib/libcenterpoint_lib.so | grep 'libcenterpoint_cuda_lib.so'
	libcenterpoint_cuda_lib.so => not found

After this PR:

colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to lidar_centerpoint

 find . -name 'libcenterpoint_cuda_lib.so'
./build/lidar_centerpoint/libcenterpoint_cuda_lib.so
./install/lidar_centerpoint/lib/libcenterpoint_cuda_lib.so

ldd ./install/lidar_centerpoint/lib/libcenterpoint_lib.so | grep 'libcenterpoint_cuda_lib.so'
	libcenterpoint_cuda_lib.so => /***/install/lidar_centerpoint/lib/libcenterpoint_cuda_lib.so (0x00007fe81d9d0000)

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.

…for their use without installing symlinks

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>
@yukkysaito
Copy link
Contributor

@yukke42 Can you check this PR?

@yukke42 yukke42 added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Sep 21, 2022
@yukke42
Copy link
Contributor

yukke42 commented Sep 21, 2022

Related Issue: #1256

@yukke42
Copy link
Contributor

yukke42 commented Sep 21, 2022

I clean the install/build/log directory and ccache files, but cuda library cannot be linked yet ..., it may be the problem of my environment ...

~/ghq/github.com/tier4/pilot-auto.xx1.pr tier4/universe 1m 40s
❯ find . -name 'libcenterpoint_cuda_lib.so'
./install/lidar_centerpoint/lib/libcenterpoint_cuda_lib.so
./build/lidar_centerpoint/libcenterpoint_cuda_lib.so

~/ghq/github.com/tier4/pilot-auto.xx1.pr tier4/universe
❯ ldd ./install/lidar_centerpoint/lib/libcenterpoint_lib.so | grep 'libcenterpoint_cuda_lib.so'
	libcenterpoint_cuda_lib.so => not found

@knzo25
Copy link
Contributor Author

knzo25 commented Sep 21, 2022

I forgot to add it into the description but we need to source , or otherwise the library path is not added

bu default cmake is stripping the rpath and we rely on the ldd library path

@yukke42
Copy link
Contributor

yukke42 commented Sep 21, 2022

I forgot to add it into the description but we need to source , or otherwise the library path is not added

bu default cmake is stripping the rpath and we rely on the ldd library path

ha ha ha... what a simple mistake...

❯ ldd ./install/lidar_centerpoint/lib/libcenterpoint_lib.so | grep 'libcenterpoint_cuda_lib.so'
	libcenterpoint_cuda_lib.so => /home/yusuke/ghq/github.com/tier4/pilot-auto.xx1.pr/install/lidar_centerpoint/lib/libcenterpoint_cuda_lib.so (0x00007f205f8cf000)

@knzo25
Copy link
Contributor Author

knzo25 commented Sep 21, 2022

I actually forgot it too and did not understand why there were so many ldd errors 😆

@yukke42 yukke42 enabled auto-merge (squash) September 21, 2022 05:33
@codecov
Copy link

codecov bot commented Sep 21, 2022

Codecov Report

Base: 10.33% // Head: 10.33% // No change to project coverage 👍

Coverage data is based on head (5912bd5) compared to base (478c759).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1916   +/-   ##
=======================================
  Coverage   10.33%   10.33%           
=======================================
  Files        1147     1147           
  Lines       81613    81613           
  Branches    19048    19048           
=======================================
  Hits         8434     8434           
  Misses      64184    64184           
  Partials     8995     8995           
Flag Coverage Δ *Carryforward flag
differential 0.00% <ø> (?)
total 10.31% <ø> (ø) Carriedforward from 478c759

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

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@twbabyduck
Copy link

Dear @knzo25 @yukke42,
I can confirm there was an issue found when users attempted to test CenterPoint inside a docker container, which has been fixed in this PR.

Below attached the test result.
screenshoot

boyali pushed a commit to boyali/autoware.universe that referenced this pull request Sep 28, 2022
…for their use without installing symlinks (autowarefoundation#1916)

* fix(lidar_centerpoint): fixed the lidar_centerpoint related packages for their use without installing symlinks

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>

* Update CMakeLists.txt

* Update CMakeLists.txt

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…for their use without installing symlinks (autowarefoundation#1916)

* fix(lidar_centerpoint): fixed the lidar_centerpoint related packages for their use without installing symlinks

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>

* Update CMakeLists.txt

* Update CMakeLists.txt

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…for their use without installing symlinks (autowarefoundation#1916)

* fix(lidar_centerpoint): fixed the lidar_centerpoint related packages for their use without installing symlinks

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>

* Update CMakeLists.txt

* Update CMakeLists.txt

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>
0x126 pushed a commit to tier4/autoware.universe that referenced this pull request Oct 17, 2022
…for their use without installing symlinks (autowarefoundation#1916)

* fix(lidar_centerpoint): fixed the lidar_centerpoint related packages for their use without installing symlinks

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>

* Update CMakeLists.txt

* Update CMakeLists.txt

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
…for their use without installing symlinks (autowarefoundation#1916)

* fix(lidar_centerpoint): fixed the lidar_centerpoint related packages for their use without installing symlinks

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>

* Update CMakeLists.txt

* Update CMakeLists.txt

Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>
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