apollo icon indicating copy to clipboard operation
apollo copied to clipboard

[How to Run Offline Perception Visualizer] CUDA driver version is insufficient for CUDA runtime version

Open Durant35 opened this issue 8 years ago • 10 comments

  • After successfully building /apollo/bazel-bin/modules/perception/tool/offline_visualizer_tool/offline_lidar_visualizer_tool following How to Run Offline Perception Visualizer and https://github.com/ApolloAuto/apollo/issues/1683 ...
  • Running error
xxxxx@in_dev_docker:/apollo$ /apollo/bazel-bin/modules/perception/tool/offline_visualizer_tool/offline_lidar_visualizer_tool
....
....
I1208 14:23:26.679039 23459 net.cpp:94] Creating Layer input
I1208 14:23:26.679080 23459 net.cpp:402] input -> data
F1208 14:23:26.680850 23459 syncedmem.hpp:18] Check failed: error == cudaSuccess (35 vs. 0)  CUDA driver version is insufficient for CUDA runtime version
*** Check failure stack trace: ***
Aborted (core dumped)

I need to install the CUDA driver?

Durant35 avatar Dec 08 '17 06:12 Durant35

The cuda have install in the docker but the driver are not,so you need to install driver,the version recommended would be 375.39

gengqx avatar Dec 08 '17 07:12 gengqx

Thanks. Yes, follow here How to Run Perception Module on Your Local Computer

3. Download the official Nvidia driver installation file which should be the exactly same version as the one installed in your host machine. We recommand the version of 375.39:

need I also install the driver in my host machine???

Durant35 avatar Dec 08 '17 07:12 Durant35

@wanglei828 @jzhuucla

Capri2014 avatar Dec 08 '17 07:12 Capri2014

In your host mochine ,you did not need to install cuda,but you need to install nvidia driver.I have not test whether if the host driver is 375.39 would make any difference.But I think most of the time,the host have installed nvidia driver,then you could just install a driver in docker,and use devicequery to test if it works well.

gengqx avatar Dec 08 '17 14:12 gengqx

That's right! It requires to install Nvidia driver in host machine. And for the docker, by default we didn't install the driver but the CUDA is pre-installed. You may install the driver as the same version of your host's in docker. That's all. Please see the detailed steps on how to install the Nvidia driver in docker from the doc: https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_run_perception_module_on_your_local_computer.md

On Fri, Dec 8, 2017 at 6:08 AM, gengqx [email protected] wrote:

In your host mochine ,you did not need to install cuda,but you need to install nvidia driver.I have not test whether if the host driver is 375.39 would make any difference.But I think most of the time,the host have installed nvidia driver,then you could just install a driver in docker,and use devicequery to test if it works well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ApolloAuto/apollo/issues/1687#issuecomment-350271433, or mute the thread https://github.com/notifications/unsubscribe-auth/AHTv5IsprLrGtSH9Ii3XrqB7o12YGx5Bks5s-ULjgaJpZM4Q6p8A .

jzhuucla avatar Dec 08 '17 17:12 jzhuucla

Indeed,After I install apollo kernel,I have never success install driver by this code.

./NVIDIA-Linux-x86_64-375.39.run --no-opengl-files -a -s

this woul give that the driver did not support the realtime kernel. @jzhuucla

gengqx avatar Dec 09 '17 01:12 gengqx

That's right! Because this installation method does not support the customized Apollo Linux RT kernel. Actually, it can be installed with standard linux kernel on your local computer. The Apollo RT kernel is optimized for the hardware on the car. But it is good enough to use a standard kernel for offline simulation on your local computer.

On Fri, Dec 8, 2017 at 5:10 PM, gengqx [email protected] wrote:

Indeed,After I install apollo kernel,I have never success install driver by this code.

./NVIDIA-Linux-x86_64-375.39.run --no-opengl-files -a -s

this woul give that the driver did not support the realtime kernel. @jzhuucla https://github.com/jzhuucla

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ApolloAuto/apollo/issues/1687#issuecomment-350411356, or mute the thread https://github.com/notifications/unsubscribe-auth/AHTv5Hzi8oHs71fOO2J9GFY6r87j4I_5ks5s-d4igaJpZM4Q6p8A .

jzhuucla avatar Dec 09 '17 06:12 jzhuucla

I think the root of the problem: too low version of gcc in released dev docker image

  • It's better to install the GPU driver by downloading corresponding xxx.run driver according to your Nvidia GPU Model
  • Step 1: install Nvidia driver on your host machine
    sudo ./NVIDIA-Linux-x86_64-384.98.run -no-x-check -no-nouveau-check -no-opengl-files
    
    • Check installation succeed?
    $ nvidia-smi
    # or (need to install CUDA) 
    $ cd /usr/local/cuda/samples/1_Utilities/deviceQuery
    # maybe need to make
    xxx@xxx:/usr/local/cuda/samples/1_Utilities/deviceQuery$ ./deviceQuery
    ./deviceQuery Starting...
    
     CUDA Device Query (Runtime API) version (CUDART static linking)
    
    Detected 1 CUDA Capable device(s)
    ...
    
  • Step 2: install Nvidia driver in the released dev docker
    sudo ./NVIDIA-Linux-x86_64-384.98.run --no-opengl-files -a -s
    

Durant35 avatar Dec 18 '17 02:12 Durant35

I get the exact same error, but I don't have an nVidia GPU. Is there anything I can do to make this work?

GeorgeMD avatar Jul 23 '18 17:07 GeorgeMD

I think,no...

Durant35 avatar Jul 25 '18 01:07 Durant35