enable gpu in Autoware??: failed to build with AUTOWARE_COMPILE_WITH_CUDA=1 /. colcon release
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/326517/autoware-stderr-output-in-build/)
but if I am Compile with AUTOWARECOMPILEWITHCUDA=1 ./colconrelease 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 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 <<< ndt_cpu [55.4s]
Starting >>> kitti_player
Finished <<< fastvirtualscan [10.8s]
Starting >>> ndt_gpu
Finished <<< kitti_box_publisher [4.97s]
Starting >>> rosinterface
Finished <<< vector_map_msgs [1min 29s]
Starting >>> vector_map
Finished <<< amathutils_lib [1min 15s]
Starting >>> state_machine_lib
--- stderr: astar_search
/home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_class.cpp: In constructor ‘TestClass::TestClass()’:
/home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_class.cpp:54:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int idx = 0; idx < costmap_.info.width*costmap_.info.height; ++idx)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_class.cpp:60:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int row = 0; row < costmap_.info.height; ++row)
~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_class.cpp:62:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int col = 0; col < costmap_.info.width; ++col)
~~~~^~~~~~~~~~~~~~~~~~~~~
/home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_astar_search.cpp: In member function ‘virtual void TestSuite_checkSetPath_Test::TestBody()’:
/home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_astar_search.cpp:143:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int row = 0; row < test_obj_.costmap_.info.height; ++row)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_astar_search.cpp:145:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int col = 0; col < test_obj_.costmap_.info.width; ++col)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_astar_search.cpp:18:0:
/usr/src/googletest/googletest/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = unsigned int]’:
/usr/src/googletest/googletest/include/gtest/gtest.h:1421:23: required from ‘static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = unsigned int; bool lhs_is_null_literal = false]’
/home/sai/Autoware/ros/src/computing/planning/common/lib/astar_search/test/src/test_astar_search.cpp:30:3: required from here
/usr/src/googletest/googletest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (lhs == rhs) {
~~~~^~~~~~
---
Finished <<< astar_search [1min 19s]
Starting >>> adi_driver
Finished <<< rosinterface [34.9s]
Starting >>> autoware_bag_tools
Finished <<< state_machine_lib [14.7s]
Starting >>> autoware_launcher
--- stderr: ndt_gpu
** 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
ptxas info : 0 bytes gmem
ptxas info : 14 bytes gmem, 272 bytes cmem[3]
ptxas info : Compiling entry function '_ZN6thrust8cuda_cub4core13_kernel_agentINS0_14__parallel_for16ParallelForAgentINS0_11__transform17unary_transform_fINS_10device_ptrIiEEPiNS5_14no_stencil_tagENS_8identityIiEENS5_21always_true_predicateEEElEESE_lEEvT0_T1_' for 'sm_52'
ptxas info : Function properties for _ZN6thrust8cuda_cub4core13_kernel_agentINS0_14__parallel_for16ParallelForAgentINS0_11__transform17unary_transform_fINS_10device_ptrIiEEPiNS5_14no_stencil_tagENS_8identityIiEENS5_21always_true_predicateEEElEESE_lEEvT0_T1_
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 8 registers, 352 bytes cmem[0]
ptxas info : Compiling entry function '_ZN6thrust8cuda_cub4core13_kernel_agentINS0_14__parallel_for16ParallelForAgentINS0_11__transform17unary_transform_fIPKiNS_10device_ptrIiEENS5_14no_stencil_tagENS_8identityIiEENS5_21always_true_predicateEEElEESF_lEEvT0_T1_' for 'sm_52'
ptxas info : Function properties for _ZN6thrust8cuda_cub4core13_kernel_agentINS0_14__parallel_for16ParallelForAgentINS0_11__transform17unary_transform_fIPKiNS_10device_ptrIiEENS5_14no_stencil_tagENS_8identityIiEENS5_21always_true_predicateEEElEESF_lEEvT0_T1_
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 8 registers, 352 bytes cmem[0]
ptxas info : Compiling entry function '_ZN6thrust8cuda_cub4core13_kernel_agentINS0_6__scan9ScanAgentINS_10device_ptrIiEES6_NS_4plusIiEEiiNS_6detail17integral_constantIbLb0EEEEES6_S6_S8_iNS0_3cub13ScanTileStateIiLb1EEENS3_22AddInitToExclusiveScanIiS8_EEEEvT0_T1_T2_T3_T4_T5_' for 'sm_52'
ptxas info : Function properties for _ZN6thrust8cuda_cub4core13_kernel_agentINS0_6__scan9ScanAgentINS_10device_ptrIiEES6_NS_4plusIiEEiiNS_6detail17integral_constantIbLb0EEEEES6_S6_S8_iNS0_3cub13ScanTileStateIiLb1EEENS3_22AddInitToExclusiveScanIiS8_EEEEvT0_T1_T2_T3_T4_T5_
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 46 registers, 360 bytes cmem[0], 4 bytes cmem[2]
ptxas info : Compiling entry function '_ZN6thrust8cuda_cub4core13_kernel_agentINS0_6__scan9InitAgentINS0_3cub13ScanTileStateIiLb1EEEiEES7_iEEvT0_T1_' for 'sm_52'
ptxas info : Function properties for _ZN6thrust8cuda_cub4core13_kernel_agentINS0_6__scan9InitAgentINS0_3cub13ScanTileStateIiLb1EEEiEES7_iEEvT0_T1_
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 10 registers, 332 bytes cmem[0]
ptxas info : Compiling entry function '_ZN6thrust8cuda_cub3cub11EmptyKernelIvEEvv' for 'sm_52'
ptxas info : Function properties for _ZN6thrust8cuda_cub3cub11EmptyKernelIvEEvv
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 2 registers, 320 bytes cmem[0]
ptxas info : Compiling entry function 'verifyDistances' for 'sm_52'
ptxas info : Function properties for verifyDistances
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 12 registers, 348 bytes cmem[0]
ptxas info : Compiling entry function 'nearestPointSearch' for 'sm_52'
ptxas info : Function properties for nearestPointSearch
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 28 registers, 448 bytes cmem[0], 16 bytes cmem[2]
ptxas info : Compiling entry function 'nearestOctreeNodeSearch' for 'sm_52'
ptxas info : Function properties for nearestOctreeNodeSearch
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 56 registers, 408 bytes cmem[0], 20 bytes cmem[2]
ptxas info : Compiling entry function 'scatterPointsToVoxels' for 'sm_52'
ptxas info : Function properties for scatterPointsToVoxels
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 19 registers, 408 bytes cmem[0], 12 bytes cmem[2]
ptxas info : Compiling entry function 'insertPointsToGrid' for 'sm_52'
ptxas info : Function properties for insertPointsToGrid
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 19 registers, 400 bytes cmem[0], 12 bytes cmem[2]
ptxas info : Compiling entry function 'buildParent' for 'sm_52'
ptxas info : Function properties for buildParent
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 40 registers, 380 bytes cmem[0], 32 bytes cmem[2]
ptxas info : Compiling entry function 'collectValidVoxelCount' for 'sm_52'
ptxas info : Function properties for collectValidVoxelCount
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 10 registers, 348 bytes cmem[0]
ptxas info : Compiling entry function 'collectValidVoxels' for 'sm_52'
ptxas info : Function properties for collectValidVoxels
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 11 registers, 356 bytes cmem[0]
ptxas info : Compiling entry function 'inspectCandidateVoxels' for 'sm_52'
ptxas info : Function properties for inspectCandidateVoxels
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 40 registers, 424 bytes cmem[0], 20 bytes cmem[2]
ptxas info : Compiling entry function 'updateCandidateVoxelIds' for 'sm_52'
ptxas info : Function properties for updateCandidateVoxelIds
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 32 registers, 400 bytes cmem[0]
ptxas info : Compiling entry function 'collectValidPoints' for 'sm_52'
ptxas info : Function properties for collectValidPoints
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 11 registers, 348 bytes cmem[0]
ptxas info : Compiling entry function 'findBoundariesOfCandidateVoxels' for 'sm_52'
ptxas info : Function properties for findBoundariesOfCandidateVoxels
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 27 registers, 448 bytes cmem[0], 12 bytes cmem[2]
ptxas info : Compiling entry function 'findMin' for 'sm_52'
ptxas info : Function properties for findMin
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 16 registers, 352 bytes cmem[0]
ptxas info : Compiling entry function 'findMax' for 'sm_52'
ptxas info : Function properties for findMax
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 16 registers, 352 bytes cmem[0]
ptxas info : Compiling entry function 'updateEval2' for 'sm_52'
ptxas info : Function properties for updateEval2
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 18 registers, 344 bytes cmem[0], 8 bytes cmem[2]
ptxas info : Compiling entry function 'updateEval' for 'sm_52'
ptxas info : Function properties for updateEval
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 20 registers, 408 bytes cmem[0]
ptxas info : Compiling entry function 'computeEvec2' for 'sm_52'
ptxas info : Function properties for computeEvec2
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 32 registers, 408 bytes cmem[0]
ptxas info : Compiling entry function 'computeEvec11' for 'sm_52'
ptxas info : Function properties for computeEvec11
16 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 40 registers, 408 bytes cmem[0], 52 bytes cmem[2]
ptxas info : Compiling entry function 'computeEvec10' for 'sm_52'
ptxas info : Function properties for computeEvec10
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 48 registers, 408 bytes cmem[0], 28 bytes cmem[2]
ptxas info : Compiling entry function 'computeEvec01' for 'sm_52'
ptxas info : Function properties for computeEvec01
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 40 registers, 408 bytes cmem[0], 44 bytes cmem[2]
ptxas info : Compiling entry function 'computeEvec00' for 'sm_52'
ptxas info : Function properties for computeEvec00
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 56 registers, 408 bytes cmem[0]
ptxas info : Compiling entry function 'computeEigenvalues' for 'sm_52'
ptxas info : Function properties for computeEigenvalues
48 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 58 registers, 408 bytes cmem[0], 332 bytes cmem[2]
ptxas info : Function properties for __internal_trig_reduction_slowpathd
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Compiling entry function 'normalize' for 'sm_52'
ptxas info : Function properties for normalize
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 56 registers, 408 bytes cmem[0], 20 bytes cmem[2]
ptxas info : Compiling entry function 'initBoolean' for 'sm_52'
ptxas info : Function properties for initBoolean
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 8 registers, 332 bytes cmem[0]
ptxas info : Compiling entry function 'computeInverseCovariance' for 'sm_52'
ptxas info : Function properties for computeInverseCovariance
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 40 registers, 352 bytes cmem[0], 20 bytes cmem[2]
ptxas info : Compiling entry function 'updateCovarianceS1' for 'sm_52'
ptxas info : Function properties for updateCovarianceS1
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 32 registers, 368 bytes cmem[0]
ptxas info : Compiling entry function 'updateCovarianceS0' for 'sm_52'
ptxas info : Function properties for updateCovarianceS0
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 28 registers, 356 bytes cmem[0]
ptxas info : Compiling entry function 'computeInverseEigenvectors' for 'sm_52'
ptxas info : Function properties for computeInverseEigenvectors
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 40 registers, 356 bytes cmem[0], 20 bytes cmem[2]
ptxas info : Compiling entry function 'updateVoxelCovariance' for 'sm_52'
ptxas info : Function properties for updateVoxelCovariance
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 48 registers, 360 bytes cmem[0], 32 bytes cmem[2]
ptxas info : Compiling entry function 'updateVoxelCentroid' for 'sm_52'
ptxas info : Function properties for updateVoxelCentroid
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 30 registers, 340 bytes cmem[0], 32 bytes cmem[2]
ptxas info : Compiling entry function 'initCentroidAndCovariance' for 'sm_52'
ptxas info : Function properties for initCentroidAndCovariance
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 46 registers, 380 bytes cmem[0], 8 bytes cmem[2]
In file included from /usr/local/include/eigen3/Eigen/Core:257:0,
from /usr/local/include/eigen3/Eigen/Dense:1,
from /home/sai/Autoware/ros/src/computing/perception/localization/lib/ndt_gpu/include/ndt_gpu/Registration.h:10,
from /home/sai/Autoware/ros/src/computing/perception/localization/lib/ndt_gpu/src/Registration.cu:1:
/usr/local/cuda-10.1/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
In file included from /usr/local/include/eigen3/Eigen/Core:257:0,
from /usr/local/include/eigen3/Eigen/Dense:1,
from /home/sai/Autoware/ros/src/computing/perception/localization/lib/ndt_gpu/include/ndt_gpu/Registration.h:10,
from /home/sai/Autoware/ros/src/computing/perception/localization/lib/ndt_gpu/src/Registration.cu:1:
/usr/local/cuda-10.1/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
In file included from /usr/local/include/eigen3/Eigen/Core:257:0,
from /usr/local/include/eigen3/Eigen/Dense:1,
from /home/sai/Autoware/ros/src/computing/perception/localization/lib/ndt_gpu/include/ndt_gpu/Registration.h:10,
from /home/sai/Autoware/ros/src/computing/perception/localization/lib/ndt_gpu/src/Registration.cu:1:
/usr/local/cuda-10.1/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
ptxas info : 0 bytes gmem
ptxas info : Compiling entry function '_ZN3gpu12convertInputIN3pcl8PointXYZEEEvPT_PfS5_S5_i' for 'sm_52'
ptxas info : Function properties for _ZN3gpu12convertInputIN3pcl8PointXYZEEEvPT_PfS5_S5_i
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 14 registers, 356 bytes cmem[0]
ptxas info : Compiling entry function '_ZN3gpu12convertInputIN3pcl9PointXYZIEEEvPT_PfS5_S5_i' for 'sm_52'
ptxas info : Function properties for _ZN3gpu12convertInputIN3pcl9PointXYZIEEEvPT_PfS5_S5_i
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 14 registers, 356 bytes cmem[0]
In file included from /usr/local/include/eigen3/Eigen/Core:257:0,
from /usr/local/include/eigen3/Eigen/Dense:1,
from /home/sai/Autoware/ros/src/computing/perception/localization/lib/ndt_gpu/include/ndt_gpu/Registration.h:10,
from /home/sai/Autoware/ros/src/computing/perception/localization/lib/ndt_gpu/src/Registration.cu:1:
/usr/local/cuda-10.1/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
/usr/include/pcl-1.8/pcl/point_cloud.h:594:100: error: template-id ‘getMapping<PointT>’ used as a declarator
friend boost::shared_ptr<MsgFieldMap>& detail::getMapping<PointT>(pcl::PointCloud<PointT> &p);
^
/usr/include/pcl-1.8/pcl/point_cloud.h:594:100: error: ‘getMapping’ is neither function nor member function; cannot be declared friend
/usr/include/pcl-1.8/pcl/point_cloud.h:594:74: error: expected ‘;’ at end of member declaration
friend boost::shared_ptr<MsgFieldMap>& detail::getMapping<PointT>(pcl::PointCloud<PointT> &p);
^~~~~~~~~~~~~~~~~~~
/usr/include/pcl-1.8/pcl/point_cloud.h:594:111: error: expected ‘)’ before ‘&’ token
friend boost::shared_ptr<MsgFieldMap>& detail::getMapping<PointT>(pcl::PointCloud<PointT> &p);
^
CMake Error at ndt_gpu_generated_Registration.cu.o.Release.cmake:279 (message):
Error generating file
/home/sai/Autoware/ros/build/ndt_gpu/CMakeFiles/ndt_gpu.dir/src/./ndt_gpu_generated_Registration.cu.o
make[2]: *** [CMakeFiles/ndt_gpu.dir/src/ndt_gpu_generated_Registration.cu.o] Error 1
make[1]: *** [CMakeFiles/ndt_gpu.dir/all] Error 2
make: *** [all] Error 2
---
Failed <<< ndt_gpu [ Exited with code 2 ]
Aborted <<< autoware_launcher
--- stderr: kitti_player
** 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
---
Aborted <<< kitti_player
--- stderr: adi_driver
/home/sai/Autoware/ros/src/sensing/drivers/imu/packages/analog_devices/src/adis16470.cpp: In member function ‘int Adis16470::read_register(char, int16_t&)’:
/home/sai/Autoware/ros/src/sensing/drivers/imu/packages/analog_devices/src/adis16470.cpp:201:47: warning: narrowing conversion of ‘address’ from ‘char’ to ‘unsigned char’ inside { } [-Wnarrowing]
unsigned char buff[3] = {0x61, address, 0x00};
^
---
Aborted <<< adi_driver
Aborted <<< autoware_bag_tools
Aborted <<< vector_map
Aborted <<< autoware_health_checker
Aborted <<< sick_ldmrs_driver
Summary: 24 packages finished [2min 39s]
1 package failed: ndt_gpu
7 packages aborted: adi_driver autoware_bag_tools autoware_health_checker autoware_launcher kitti_player sick_ldmrs_driver vector_map
6 packages had stderr output: adi_driver astar_search kitti_player ndt_cpu ndt_gpu pcl_omp_registration
101 packages not processed
Asked by AM97 on 2019-06-21 03:28:34 UTC
Answers
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.
Asked by Geoff on 2019-06-30 18:50:12 UTC
Comments
@AM97 @Geoff I had the same issue with installing Autoware using the source code. Finally I got it worked by following these steps:
Installation of CUDA 10.0 and setting up NVIDIA graphics card
- Download gcc 6 first from here
- Download CUDA 10.0 from here. Also while installing cuda use
sudo apt-get install cuda-10.0
. Used this as a complete installation guide. - Download nvidia 430 driver from here.
- Run the benchmark using Unigine Heaven 4.0
- Verify the installation from here
Installation of Ros Melodic, installing system dependencies, updating eigen values and installing Autoware
Install Ros Melodic from here
Check for ros installation using this command rosversion -d
Install all the system dependencies from here and follow along to download and install Autoware.
Thanks!
Asked by omkard on 2020-03-12 17:22:58 UTC
Comments
Installation of gcc
6 should most definitely not be required. The entire stack builds perfectly fine with the version of gcc
provided with Ubuntu. If it does have issues, then it's a bug with the stack, not with the version of gcc
and should be corrected in Autoware.
In addition, the link to instructions that you provide uses ppa:graphics-drivers
which is unnecessary and potentially dangerous. Installing cuda-10-0
from the official Nvidia site is recommended and an appropriate driver will be installed automatically, if required, from the NVIDIA repo.
Asked by Josh Whitley on 2020-03-12 22:00:06 UTC
Hi @Josh Whitley,
Sorry for replying late. I had gcc version of 7 with the ubuntu I had and I started to build the Autoware. But, the build stopped in the middle saying that gcc version of 6 or less is needed. That's why I had to redo the whole thing again with gcc6 (right from reinstalling OS to building the Autoware). And it worked.
And sorry for misguiding with ppa:graphics-drivers. I will remove that link.
Asked by omkard on 2020-04-10 16:47:09 UTC
Hi guys i installed autoware yet still have the same error above. Any ideas ? $ roslaunch runtime_manager runtime_manager.launch ... logging to /home/claytex/.ros/log/1f65592c-7d82-11ea-9477-708bcd595ab7/roslaunch-CLAYTEX33-13460.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://CLAYTEX33:63439/
SUMMARY
PARAMETERS * /rosdistro: melodic * /rosversion: 1.14.5
NODES / run (runtime_manager/run)
auto-starting new master process[master]: started with pid [13520] ROS_MASTER_URI=http://localhost:11311
setting /run_id to 1f65592c-7d82-11ea-9477-708bcd595ab7 process[rosout-1]: started with pid [13531] started core service [/rosout] process[run-2]: started with pid [13534] sudo: no tty present and no askpass program specified /home/claytex/autoware.ai/install/runtime_manager/share/runtime_manager/scripts/run: line 53: --geometry=50x10+500+0: command not found [run-2] process has died [pid 13534, exit code 127, cmd /home/claytex/autoware.ai/install/runtime_manager/share/runtime_manager/scripts/run __name:=run __log:=/home/claytex/.ros/log/1f65592c-7d82-11ea-9477-708bcd595ab7/run-2.log]. log file: /home/claytex/.ros/log/1f65592c-7d82-11ea-9477-708bcd595ab7/run-2*.log
Asked by sneibus on 2020-04-13 07:31:44 UTC
Comments
Please do not post answers unless you are answering a question.
You appear to have a new issue, so post it as a new question. Then refer to this one if that is relevant.
Asked by gvdhoorn on 2020-04-13 07:44:40 UTC
Comments
Hi guys i installed autoware without CUDA yet still have the same error above. Any ideas ?
Asked by sneibus on 2020-04-12 16:05:46 UTC