apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Perception module stopped

Open lyletbjohnson opened this issue 8 years ago • 11 comments

Hello,

I see the following error at runtime after starting Apollo modules:

F0206 17:09:40.526986  4789 common.cpp:151] Check failed: error == cudaSuccess (35 vs. 0)  CUDA driver version is insufficient for CUDA runtime version

Here are the steps I've tried:

  1. Referred to the Apollo 2.0 Hardware and System Installation Guide to ensure the driver is properly installed
  2. Rebuilt Apollo modules within the Docker container with apollo.sh build_opt_gpu, which reports a successful build of each module
  3. Restart the system and check the logs

I'm using all of the hardware and software specified in the Apollo 2.0 docs; there are not additional or supplementary hardware or software modules.

lyletbjohnson avatar Feb 06 '18 23:02 lyletbjohnson

Seems a Nvidia driver sissue. Can you try this guide first? https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_run_perception_module_on_your_local_computer.md

startcode avatar Feb 06 '18 23:02 startcode

Yes, thank you for the suggestion!

It appears that I meet the same result. Note that my docker script was previously set up with the suggestions from the linked article.

Here's the terminal output from following the guide. I added some whitespace for readability.

dev@apollo-box:~/apollo$ vim docker/scripts/dev_start.sh 

dev@apollo-box:~/apollo$ bstart
[sudo] password for dev: 
/apollo/data/core/core_%e.%p
dev-x86_64-v2.0.0: Pulling from apolloauto/apollo
Digest: sha256:c739310a6d733c51de8b2066cd686213b26dadd3c24d5c8316ff06a7072115f5
Status: Image is up to date for apolloauto/apollo:dev-x86_64-v2.0.0
e815665b65255f02af54511fb40cac663345c2c49c39b559111b0f261f90f063
Adding group `dev' (GID 1000) ...
Done.
Adding user `dev' ...
Adding new user `dev' (1000) with group `dev' ...
The home directory `/home/dev' already exists.  Not copying from `/etc/skel'.

dev@apollo-box:~/apollo$ docker exec -it apollo_dev /bin/bash

root@in_dev_docker:/apollo# ls
[...] NVIDIA-Linux-x86_64-375.39.run  [...]

root@in_dev_docker:/apollo# ./NVIDIA-Linux-x86_64-375.39.run --no-opengl-files -a -s
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.39.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

ERROR: The kernel you are installing for is a PREEMPT_RT kernel!
       
       The NVIDIA driver does not support real-time kernels. If you 
       are using a stock distribution kernel, please install 
       a variant of this kernel that does not have the PREEMPT_RT 
       patch set applied; if this is a custom kernel, please 
       install a standard Linux kernel.  Then try installing the 
       NVIDIA kernel module again.


ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at
       www.nvidia.com.

root@in_dev_docker:/apollo#

lyletbjohnson avatar Feb 06 '18 23:02 lyletbjohnson

Update:

On Step 4 of the perception guide (https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_run_perception_module_on_your_local_computer.md), I opted to using the provided install_nvidia.sh script to bypass the PREEMPT_RT kernel issues.

After that I continued to follow the guide where I was able to properly build the modules with build_opt_gpu.

I'm now testing if the perception module is working correctly or not, and will follow up here.

I would recommend updating the how-to article to reference the provided install-nvidia.sh script, rather than the manually provided command.

lyletbjohnson avatar Feb 07 '18 00:02 lyletbjohnson

Thanks for the feedback. I will update the document. Also feel free to update the document on github based on your experience.

startcode avatar Feb 07 '18 00:02 startcode

@startcode I see the same error (Check failed: error == cudaSuccess (35 vs. 0) CUDA driver version is insufficient for CUDA runtime version) after following these steps.

Do you have further troubleshooting recommendations?


I'll be happy to contribute to the documentation changes!

lyletbjohnson avatar Feb 07 '18 00:02 lyletbjohnson

@wanglei828 have you encounter this problem before?

startcode avatar Feb 07 '18 05:02 startcode

I have met this problem before. The main reason is that the gpu driver in host machine is inconsistent with the driver in docker.

wanglei828 avatar Feb 07 '18 05:02 wanglei828

Thanks for the suggestions!

I'm seeing the same errors today, and I've validated that the driver versions match.

Host

dev@apollo-box:~$ lspci -k | grep -A 2 -i "VGA"
00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 06)
	Subsystem: Intel Corporation Sky Lake Integrated Graphics
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
--
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1b80 (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device 3717
	Kernel driver in use: nvidia
dev@apollo-box:~$ modinfo nvidia
filename:       /lib/modules/4.4.32-apollo-3-RT/kernel/drivers/video/nvidia.ko
alias:          char-major-195-*
version:        375.39
supported:      external
license:        NVIDIA
srcversion:     CFE3F1A3ED277FC7A51892C
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
vermagic:       4.4.32-apollo-3-RT SMP preempt mod_unload modversions 
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_UseThreadedInterrupts:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

Docker container

dev@in_dev_docker:/apollo$ lspci -k | grep -A 2 -i "VGA" 
00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 06)
	Subsystem: Intel Corporation Sky Lake Integrated Graphics
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
--
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1b80 (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device 3717
	Kernel driver in use: nvidia
dev@in_dev_docker:/apollo$ modinfo nvidia
filename:       /lib/modules/4.4.32-apollo-3-RT/kernel/drivers/video/nvidia.ko
alias:          char-major-195-*
version:        375.39
supported:      external
license:        NVIDIA
srcversion:     CFE3F1A3ED277FC7A51892C
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
vermagic:       4.4.32-apollo-3-RT SMP preempt mod_unload modversions 
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_UseThreadedInterrupts:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

lyletbjohnson avatar Feb 07 '18 18:02 lyletbjohnson

@wanglei828 @startcode do you have further suggestions? It does not appear to be a mismatch between GPU driver versions on the host and in the docker container.

lyletbjohnson avatar Feb 08 '18 17:02 lyletbjohnson

Bump; please help me to troubleshoot this.

lyletbjohnson avatar Apr 18 '18 23:04 lyletbjohnson

@lyletbjohnson apologies for the delay in response. Is this an error you are still seeing?

natashadsouza avatar Aug 24 '18 00:08 natashadsouza