-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Melodic CPU/GPU compilation flag #2265
Merged
amc-nu
merged 42 commits into
autowarefoundation:feature/melodic
from
amc-nu:feature/melodic
May 17, 2019
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
c53a081
[Release] 1.9.1 (#1691)
kfunaoka b3e0aec
Feature/edit typo (#1769)
harderthan 9fae6cc
[Release] 1.10.0 (#1898)
kfunaoka 2b8fb78
Update README.md
amc-nu 34ff6a6
Update contact details
gbiggs b98cf4b
Feature/update autoware launcher (#2056)
isamu-takagi 166c826
Merge pull request #2039 from gbiggs/master
gbiggs f781965
Update CHANGELOGs
kfunaoka f4c35b9
Replace URI in CHANGELOGs
kfunaoka 8877ebd
Set version 1.10.0
kfunaoka f7d2eb9
Creanup rst format
kfunaoka a4b6f37
1.11.0
kfunaoka 37b9feb
Change RTM default topic to match UKF node launch file (#2142)
amc-nu 21e268d
[Release] 1.11.0 (#2140)
kfunaoka ec63273
Remove old issue and PR templates (#2148)
gbiggs 276073b
Update repository info files (#2149)
gbiggs 6a7d1b9
Merge left over features from around the 1.11 release (#2151)
d5b2ed9
Add .repos file for setting up an Autoware workspace using vcs (#2161)
9f7bf97
Remove enablePlannerDynamicSwitch (#1919)
kfunaoka bb4fcd0
Updated paths in quick_start launch files and parameters in default.r…
sgermanserrano 7998aa7
Fix bug that limits the data rate of DataRateCheckerPlugin (#2205)
drwnz 3888daa
Adding install directive for node (#2195)
snehagn e7c12b0
fix install directive for waypoint extractor (#2219)
wep21 3a8230c
Merge branch 'master' into feature/melodic
amc-nu 859101e
Fix for AutowareLauncher nosetests error
amc-nu 55697e5
Add GPU Checks on autoware_build_flags
amc-nu d8144a2
Add CMake GPU checks for lidar_apollo_cnn_seg
amc-nu a0854b8
Add CMake GPU checks for lidar_euclidean_cluster_detect
amc-nu 4a18e6b
Add CMake GPU checks for lidar_point_pillars
amc-nu e37da6d
Add CMake GPU checks for trafficlight_recognizer
amc-nu 00e5792
Add CMake GPU checks for vision_darknet_detect
amc-nu 7a1684d
Add CMake GPU checks for vision_segment_enet_detect
amc-nu 815655e
Add CMake GPU checks for vision_ssd_detect
amc-nu 8e19caa
Add CMake GPU checks for ndt_gpu
amc-nu 1f6883a
Add CMake GPU checks for lidar_localizer
amc-nu 6df0017
Increase Minimum Eigen Version to 3.3.6 on GPU mode, according to #2098
amc-nu 813c8a4
Add Missing autoware_build_flags to vision_segment_enet_detect
amc-nu 219dc84
Add missing autoware_build_flags to ndt_gpu
amc-nu c856562
Add autoware_build_flags as build tool for ndt_gpu
amc-nu e03f265
Merge remote-tracking branch 'upstream/feature/melodic' into feature/…
amc-nu 6228106
Invert CMake CUDA compilation flag logic
amc-nu 6384537
Increase Eigen minimum required version to 3.3.7
amc-nu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,22 +65,8 @@ add_executable(lidar_euclidean_cluster_detect | |
|
||
find_package(CUDA) | ||
find_package(Eigen3 QUIET) | ||
####### Melodic Checks | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could make a couple of macros for this (one for just the CMake check and one that has both CMake and Eigen checks) and put them in the |
||
SET (CPU_ONLY FALSE) | ||
if (CUDA_FOUND AND "$ENV{ROS_DISTRO}" STREQUAL "melodic" ) | ||
if(${CMAKE_VERSION} VERSION_LESS "3.12.3") | ||
message("GPU support on Melodic requires CMake version>= 3.12.3") | ||
SET (CPU_ONLY TRUE) | ||
else() | ||
if (${EIGEN3_VERSION_STRING} VERSION_LESS "3.3.5") | ||
message("GPU support on Melodic requires Eigen version>= 3.3.5") | ||
SET (CPU_ONLY TRUE) | ||
endif() | ||
endif() | ||
endif() | ||
####### End Melodic Checks | ||
if (NOT CPU_ONLY AND ${CUDA_FOUND}) | ||
INCLUDE(FindCUDA) | ||
|
||
if (ENABLE_CUDA AND ${CUDA_FOUND}) | ||
message("-- USING ACCELERATED CLUSTERING --") | ||
message("Version: " ${CUDA_VERSION}) | ||
message("Library: " ${CUDA_CUDA_LIBRARY}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only search for CUDA if the user has explicitly enabled it. i.e. something like:
Then you can also just do a check on
USE_CUDA
rather than needing to check bothENABLE_CUDA
andCUDA_FOUND
elsewhere.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, preparing a new PR