Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected #23

Open
Thanushan1997 opened this issue Dec 13, 2022 · 12 comments

Comments

@Thanushan1997
Copy link

When I try to list the physical GPU using the Tensorflow using the command "tf.config.list_physical_devices(device_type='GPU')". it gives me the following error .

I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcuda.so.1
E tensorflow/stream_executor/cuda/cuda_driver.cc:328] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (nano): /proc/driver/nvidia/version does not exist

@Qengineering
Copy link
Owner

Does this link help you? It seems a common problem.

@Thanushan1997
Copy link
Author

Thanushan1997 commented Dec 15, 2022

And while on the booting time i noticed, it's stuck on the below sectors. But I am able to login through serial console.

  1. “[ERROR] failed to start nvpmodel service”
  2. “[ERROR] Failed to start Docker Application Container Engine”

the screenshots i have attached through this link : https://drive.google.com/drive/folders/1C5EWm83TH_uIJI1Rp-danxcgxYlKXRXB?usp=share_link

1

issue1_issue2_screenshot (1)

@Qengineering
Copy link
Owner

I'm afraid you have a corrupted image.
Tested with a fresh download and a clean SD card I get:
Screenshot from 2022-12-15 10-31-21

@Thanushan1997
Copy link
Author

I have downloaded the image from your github link. Is there any other link to download image?

@Qengineering
Copy link
Owner

The GitHub link must be OK. I will download the image from the Gdrive and install it once again, in case I missed something.
Here is my system info.
Screenshot from 2022-12-15 13-19-03

@Thanushan1997
Copy link
Author

Thanushan1997 commented Dec 16, 2022

Hi, Thanks for the details, But still no improvements.

  1. Jdk OS successfully booting the Jetson nano through SD card. (clone the OS from jetson internal memory to SD card)
    Defaultly the board booted from internal storage, and then we Configured the jetson nano to boot from SD card slot

below image will showed the details of some service files output from default image :
workingjetson nano details

  1. But while flash your downloaded image through SD card, Its still stuck on the above error screen. Do you have found any luck on this matter?

@Qengineering
Copy link
Owner

I can confirm the image on GitHub has no nvpmodel issues. Downloaded for the second time and still no reproduction of your problem.
However, I see you have core version 32.7.3, while I still have version 32.6.1, even after sudo apt-get update && sudo apt-get upgrade. Perhaps this can be the cause?

@Thanushan1997
Copy link
Author

Thanushan1997 commented Dec 16, 2022

Above screenshot from different image. Not from this Repository.

@Qengineering
Copy link
Owner

In that case, I really don't know what causes your issue. I'm very sorry not able to help you.

@Thanushan1997
Copy link
Author

Thanushan1997 commented Dec 16, 2022

Yeah i can understand. I just mentioned for your detailed references.

Used Board : http://plink-ai.com/en/product/Nano-DEV-02.html

@Thanushan1997
Copy link
Author

image

Our vendor said that in a default fresh jetson nano board, it doesn't boot the os from the SD card. If we flash your image in the SD card, How can we configure the board to load the OS from the SD card, you haven't mentioned that in the GitHub link?

@Qengineering
Copy link
Owner

Dear @Thanushan1997,

Every Jetson Nano boots default from SD. It doesn't matter if you are using jetpack 4.5 or 4.6. If the file structure on the SD card is correct it will boot. Period. The only exception can be a dedicated Nano with altered hardware.
If you can download the original image, flash it on a SD-card and get the Nano booted, it will also work with this image.
I've tested this image, with success, on the original Jetson Nano 4 GB board many times.
I know it's a showstopper, but keep in mind that this image is being downloaded over 100+ per week, and we have never had any of the issues you face.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants