lava-dl icon indicating copy to clipboard operation
lava-dl copied to clipboard

No CUDA runtime is found, using CUDA_HOME='/usr'

Open franzhd opened this issue 2 years ago • 4 comments

Hello everyone, i have this error: "No CUDA runtime is found, using CUDA_HOME='/usr' "

each time i import stuff from slayer like "import lava.lib.dl.slayer as slayer" . Asking torch.cuda.is_available() in a python3 shell inside the env does tell me that CUDA is available. pytest pass all necessary steps. Anyone has suggestion on how to resolve this problem? thanks for your attention!

Objective of issue:

Lava DL version:

  • [ ] 0.3.0 (feature release)
  • [ ] 0.2.1 (bug fixes)
  • [x] 0.2.0 (current version)
  • [ ] 0.1.2

Lava version:

  • [ ] 0.4.0 (feature release)
  • [ ] 0.3.1 (bug fixes)
  • [x] 0.3.0 (current version)
  • [ ] 0.2.0
  • [ ] 0.1.2

I'm submitting a ...

  • [x] bug report
  • [ ] feature request
  • [ ] documentation request

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

insert the output from lava debug here

franzhd avatar Jun 09 '22 13:06 franzhd

Can you post the outputs of these commands

nvidia-smi | grep CUDA
nvcc --version
python -c "import torch; print(torch.__version__)"

bamsumit avatar Jun 09 '22 18:06 bamsumit

image

there are mismatching version of CUDA, but as i know the version in the nvidia-smi command is only the latest version supported by that version of nvidia drivers, while the version suggested by nvcc is the actual version installed. is it correct?

franzhd avatar Jun 11 '22 10:06 franzhd

As long as nvcc and torch CUDA version match, it should be okay.

Can you try this:

  1. Find cuda installation path: which nvcc
  2. Make sure <cuda_path>/home exists (try ls ...)
  3. export CUDA_HOME=<cuda_path>/home

and try running the unittests. python -m unittest

bamsumit avatar Jun 13 '22 00:06 bamsumit

Hi @franzhd any progress?

bamsumit avatar Sep 22 '22 02:09 bamsumit

Closed as STALE

bamsumit avatar Jan 19 '23 19:01 bamsumit