Ask Your Question
0

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

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

AM97 gravatar image

updated 2019-06-30 18:46:15 -0500

Geoff 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
2

answered 2019-06-30 18:50:12 -0500

Geoff gravatar image

Because you are using ROS Melodic and Ubuntu 18.04, you must use the bleeding edge release of Autoware (1.12.0-alpha.2).

You are also required to use CUDA 10.0. Version 10.1 will not work. See the requirements for dependencies.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 123 times

Last updated: Jun 30