ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

enable gpu in Autoware??: failed to build with AUTOWARE_COMPILE_WITH_CUDA=1 /. colcon release

asked 2019-06-21 03:28:37 -0500

AM97 gravatar image

updated 2019-06-21 07:19:24 -0500

gvdhoorn gravatar image

I would like to how can i enable GPU in autoware.

Operating system and version: Ubuntu 18.04 gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 cmake version 3.10.2

Autoware installation type Built from source (https://gitlab.com/CPFL/Autoware)

Autoware version or commit hash output of git rev-parse HEAD (42aba1468490e2ed218f9295ab3e7490db864e54)

ROS distribution: melodic ROS installation type: sudo apt-get install ros-melodic-desktop-full

GPU MODEL: GeForce GTX 1060M

Drivers Driver Version: 418.56

CUDA Version: 10.1

CUDNN Version: 7.5

 NVIDIA-SMI 418.56       Driver Version: 418.56       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1060    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   67C    P3    19W /  N/A |    555MiB /  6078MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1688      G   /usr/lib/xorg/Xorg                           301MiB |
|    0      2185      G   /usr/bin/gnome-shell                         142MiB |
|    0      2777      G   ...uest-channel-token=15888348073250092753   109MiB |

If I am using colcon build the build was successful with stderr outputs for 12 packages (https://answers.ros.org/question/3265...)

but if I am Compile with AUTOWARE_COMPILE_WITH_CUDA=1 ./colcon_release this command I am getting this following error

sai@sai-Blade:~$ cd Autoware/ros
sai@sai-Blade:~/Autoware/ros$ AUTOWARE_COMPILE_WITH_CUDA=1 ./colcon_release
Starting >>> autoware_build_flags
Starting >>> autoware_msgs
Starting >>> autoware_config_msgs
Starting >>> tablet_socket_msgs
Starting >>> autoware_system_msgs
Starting >>> autoware_can_msgs
Starting >>> gnss
Starting >>> sick_ldmrs_description
Finished <<< sick_ldmrs_description [5.85s]                                  
Starting >>> sick_ldmrs_msgs
Finished <<< autoware_build_flags [5.99s]                                    
Starting >>> vector_map_msgs                                        
Finished <<< gnss [9.86s]                                               
Starting >>> custom_msgs
Finished <<< autoware_can_msgs [20.4s]                                    
Starting >>> gazebo_camera_description
Finished <<< tablet_socket_msgs [21.4s]                                   
Starting >>> gazebo_imu_description
Finished <<< autoware_system_msgs [22.3s]                                 
Starting >>> autoware_health_checker
Finished <<< sick_ldmrs_msgs [21.2s]                                       
Starting >>> sick_ldmrs_driver
Finished <<< gazebo_camera_description [7.91s]                             
Starting >>> ndt_cpu
Finished <<< gazebo_imu_description [7.47s]                             
Starting >>> ndt_tku
Finished <<< autoware_config_msgs [28.9s]
Starting >>> pcl_omp_registration
Finished <<< autoware_msgs [35.7s]                                            
Starting >>> amathutils_lib                                                  
Finished <<< ndt_tku [8.18s]                                                 
Starting >>> astar_search
Finished <<< custom_msgs [31.3s]                                             
Starting >>> runtime_manager
Finished <<< runtime_manager [7.21s]                                         
Starting >>> tablet_socket
--- stderr: pcl_omp_registration                                             
** WARNING ** io features related to ensenso will be disabled
** WARNING ** io features related to davidSDK will be disabled
** WARNING ** io features related to dssdk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
** WARNING ** io features related to libusb-1.0 will be disabled
** WARNING ** visualization features related to ensenso will be disabled
** WARNING ** visualization features related to davidSDK will be disabled
** WARNING ** visualization features related to dssdk will be disabled
** WARNING ** visualization features related to rssdk will be disabled
---
Finished <<< pcl_omp_registration [44.5s]
Starting >>> fastvirtualscan
Finished <<< tablet_socket [33.0s]            
Starting >>> kitti_box_publisher
--- stderr: ndt_cpu                           
** WARNING ** io features related to ensenso will be disabled
** WARNING ** io features related to davidSDK will be disabled
** WARNING ** io features related to dssdk will be disabled
** WARNING ** io features related to pcap will be ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2019-06-21 07:51:23 -0500

amc-nu gravatar image

Hello, you’ll need to downgrade to CUDA 10.0.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-06-21 03:28:37 -0500

Seen: 313 times

Last updated: Jun 21 '19