Skip to content

Commit

Permalink
add cuda build option
Browse files Browse the repository at this point in the history
  • Loading branch information
adev4a committed Jun 30, 2023
1 parent 9a928e5 commit 91076b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ echo "ROS 2 Build"
if [[ ! -z "$ROS1_PACKAGES$ROS2_PACKAGES" ]]; then
if [[ ! -z "$ROS2_PACKAGES" ]]; then
echo "Incrementally building ROS2 packages: $ROS1_PACKAGES"
colcon build --install-base /opt/autoware.ai/ros/install_ros2 --build-base build_ros2 --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-above $ROS2_PACKAGES --allow-overriding $ROS2_PACKAGES
AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --install-base /opt/autoware.ai/ros/install_ros2 --build-base build_ros2 --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-above $ROS2_PACKAGES --allow-overriding $ROS2_PACKAGES
else
echo "Build type is incremental but no ROS2 packages specified, skipping ROS2 build..."
fi
else
echo "Building all ROS2 Autoware.AI Components"
colcon build --install-base /opt/autoware.ai/ros/install_ros2 --build-base build_ros2 --cmake-args -DCMAKE_BUILD_TYPE=Release
AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --install-base /opt/autoware.ai/ros/install_ros2 --build-base build_ros2 --cmake-args -DCMAKE_BUILD_TYPE=Release
fi

0 comments on commit 91076b3

Please sign in to comment.