# Unable to determine the device handle for GPU 0000:02:00.0: Unknown Error

**URL:** <https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974>\
**Category:** Linux\
**Created:** [December 14, 2021, 6:52am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974 "2021-12-14T06:52:08Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![2386677465](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@2386677465](https://forums.developer.nvidia.com/u/2386677465)\
**Post date:** [December 14, 2021, 6:52am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/1 "2021-12-14T06:52:08Z")

</div>

OS: CentOS Linux 7 (Core)  
Driver Version: 470.82.01  
GPUs: 2 Telsa T4

While I am typing `nvidia-smi` in my terminal, there is an error `Unable to determine the device handle for GPU 0000:02:00.0: Unknown Error`. And this is the output of `nvidia-debugdump --list`.

```auto
Found 2 NVIDIA devices
Error: nvmlDeviceGetHandleByIndex(): Unknown Error
FAILED to get details on GPU (0x0): Unknown Error

```

Here is the detailed info of bug report  
[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/exPn93yuTZv1JT8PZmPg3Ir9AZW.gz) (1.5 MB)

PS: I have checked other developers question and their logs. However, it seems my bug is quite different from them. This is the reason why I new a question.

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [December 14, 2021, 10:05am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/2 "2021-12-14T10:05:47Z")

</div>

You’re getting a fatal pcie error on the root bus so the gpu is disconnected. Please try reseating the gpu in its slot, try a different slot, check for a bios upgrade, check/replace mainboard.

```auto
[695.203791] pcieport 0000:00:02.0: AER: Uncorrected (Fatal) error received: id=0010
[695.203805] pcieport 0000:00:02.0: PCIe Bus Error: severity=Uncorrected (Fatal), type=Transaction Layer, id=0010(Receiver ID)
[695.203811] pcieport 0000:00:02.0: device [8086:6f04] error status/mask=00000020/00000000
[695.203815] pcieport 0000:00:02.0: [5] Surprise Down Error (First)
[695.203821] pcieport 0000:00:02.0: broadcast error_detected message
[695.203825] nvidia 0000:02:00.0: device has no AER-aware driver
[695.830814] NVRM: GPU at PCI:0000:02:00: GPU-b4e8ed5d-9b8a-c48c-1ecd-aac240753b23
[695.830817] NVRM: Xid (PCI:0000:02:00): 79, pid=29245, GPU has fallen off the bus.
[695.830819] NVRM: GPU 0000:02:00.0: GPU has fallen off the bus.
[695.830836] NVRM: GPU 0000:02:00.0: GPU serial number is \xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff.
[695.830844] NVRM: A GPU crash dump has been created. If possible, please run
NVRM: nvidia-bug-report.sh as root to collect this data before
NVRM: the NVIDIA kernel module is unloaded.
[696.207412] pcieport 0000:00:02.0: Root Port link has been reset
[696.207422] pcieport 0000:00:02.0: AER: Device recovery failed

```

---

<div class="post-metadata">

**Author:** ![2386677465](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@2386677465](https://forums.developer.nvidia.com/u/2386677465)\
**Post date:** [December 14, 2021, 1:55pm UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/3 "2021-12-14T13:55:30Z")

</div>

> [@generix](#):
>
> check for a bios upgrade

Thanks for the advice. What do you mean by “check for a bios upgrade”. I have googled a lot, it doesnot have so mant satisfied answers. Can you make it more specificly?

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [December 14, 2021, 3:49pm UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/4 "2021-12-14T15:49:41Z")

</div>

A system bios update from the manufacturer of the server/mainboard.

---

<div class="post-metadata">

**Author:** ![fkeufss](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@fkeufss](https://forums.developer.nvidia.com/u/fkeufss)\
**Post date:** [January 16, 2022, 1:39pm UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/5 "2022-01-16T13:39:58Z")

</div>

Dear sir, may I ask how you solved your problem eventually? I think I got exactly the same problem as you. After trying a lot of approaches mentioned in previous posts, I still got the same problem. Thank you very much.

---

<div class="post-metadata">

**Author:** ![2386677465](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@2386677465](https://forums.developer.nvidia.com/u/2386677465)\
**Post date:** [March 19, 2022, 8:11am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/6 "2022-03-19T08:11:02Z")

</div>

Sorry for replying so late… I finished by changing a different slot.

---

<div class="post-metadata">

**Author:** ![Ryosuke](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Ryosuke](https://forums.developer.nvidia.com/u/Ryosuke)\
**Post date:** [October 26, 2022, 8:07am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/7 "2022-10-26T08:07:44Z")

</div>

Hi, I’ve now came across the same question, but the problem only broke up when all the gpu have been used(use part of the gpu won’t appear). Is it the same problem you’ve solved?

---

<div class="post-metadata">

**Author:** ![san3](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@san3](https://forums.developer.nvidia.com/u/san3)\
**Post date:** [January 4, 2023, 5:00pm UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/8 "2023-01-04T17:00:41Z")

</div>

I had the same issue with one of the GPUs not being able to load due to some reason. After draining the specified incorrect GPU ID, the remainder of the system works perfectly. I believe the issue is caused by the connected monitor. I have four Tesla V100 GPUs, one of which is linked to the Monitor.

```auto
sudo nvidia-smi drain -p 0000:02:00.0 -m 1

```

To enable it back

```auto
sudo nvidia-smi drain -p 0000:02:00.0 -m 0

```

---

<div class="post-metadata">

**Author:** ![johy.yz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@johy.yz](https://forums.developer.nvidia.com/u/johy.yz)\
**Post date:** [January 10, 2023, 8:32am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/9 "2023-01-10T08:32:57Z")

</div>

$ sudo nvidia-smi drain -p 0000:1E:00.0 -m 1  
Successfully set GPU 00000000:1E:00.0 drain state to: draining.

$ sudo nvidia-smi drain -p 0000:1E:00.0 -m 0  
Successfully set GPU 00000000:1E:00.0 drain state to: not draining.

I can not enable it back. I don’t know what went wrong.

---

<div class="post-metadata">

**Author:** ![2386677465](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@2386677465](https://forums.developer.nvidia.com/u/2386677465)\
**Post date:** [January 10, 2023, 8:54am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/10 "2023-01-10T08:54:43Z")

</div>

You should see the very detailed log of the bug report. Many different bugs may result the same output in your terminal. You can always find the real reason in the log report.

---

<div class="post-metadata">

**Author:** ![2386677465](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@2386677465](https://forums.developer.nvidia.com/u/2386677465)\
**Post date:** [January 10, 2023, 8:56am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/11 "2023-01-10T08:56:31Z")

</div>

Please check my reply below

---

<div class="post-metadata">

**Author:** ![sk8\_peterf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sk8\_peterf](https://forums.developer.nvidia.com/u/sk8_peterf)\
**Post date:** [August 31, 2023, 1:08pm UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/12 "2023-08-31T13:08:25Z")

</div>

I’ve got the exact same issue with my 4090. When running `nvidia-debugdump --list` i get

```auto
Found 2 NVIDIA devices
	Device ID: 0
	Device name: NVIDIA GeForce RTX 4090 (*PrimaryCard)
	GPU internal ID: GPU-42e965ce-ce70-ded4-a964-7be45311e1e6

Error: nvmlDeviceGetHandleByIndex(): Unknown Error
FAILED to get details on GPU (0x1): Unknown Error

```

I’ve uploaded my bug report.  
[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/c7dboD6DlYrVSXzQW72dmvBY0fa.gz) (651.2 KB)

The weird thing for me is that my Pytorch code will run fine for a few minutes, sometimes hours, then all of a sudden, I get this error and the code hangs (presumably because something is buggered deep down in CUDA stack or kernel driver). I would expect it to either work or not work. Not sometimes break at runtime in the future.  
I’ve tried:

- Downgrading CUDA → didn’t fix
- Uninstalling CUDA&drivers then re-installing them using ubuntu package manager → doesn’t fix
- Looked at disabling PCIe power management in BIOS → didn’t fix  
This is really frustrating. We’ve spent a lot of money on this machine…  
Any help would be greatly appreciated. thank you.

---

<div class="post-metadata">

**Author:** ![zsy\_lookout](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zsy\_lookout](https://forums.developer.nvidia.com/u/zsy_lookout)\
**Post date:** [October 27, 2023, 6:16am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/13 "2023-10-27T06:16:53Z")

</div>

Hi, I’ve met exactly the same issue like yours, after running pytorch codes for a while the specific card (RTX 4090) would crash, and I will have to reboot the system. Do you have any idea if it is due to issues on the PCIE slot or the card?

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [October 31, 2023, 5:11pm UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/14 "2023-10-31T17:11:22Z")

</div>

`Xid (PCI:0000:42:00): 79, pid='<unknown>', name=<unknown>, GPU has fallen off the bus.`  
Running ML workloads will cause heavy spikes in power usage, so rather get a better PSU.

---

<div class="post-metadata">

**Author:** ![user121939](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user121939](https://forums.developer.nvidia.com/u/user121939)\
**Post date:** [November 14, 2023, 5:10am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/15 "2023-11-14T05:10:54Z")

</div>

In my case the GPU overheated. I could see its temperature raising to 97 C via nvitop (pip install nvitop), then the error message occurred.

---

<div class="post-metadata">

**Author:** ![v6jrwu4s2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@v6jrwu4s2](https://forums.developer.nvidia.com/u/v6jrwu4s2)\
**Post date:** [March 14, 2024, 7:29am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/16 "2024-03-14T07:29:03Z")

</div>

OS: Rockylinux 9.3  
Driver Version: 535.113.01  
GPUs: A5000 x8

The same error occurs periodically. When typing nvidia-smi, an error appears: Unable to determine the device handle for GPU 0000:DB:00.0: Unknown Error.

Bug report  
[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/wHcJcrC5pZqn38hMrMISGglXZeE.gz) (2.6 MB)

DB:00.0 seems to be the PCIe bus-id, and it’s always the card at this location that disappears, but it’s unclear whether the card is faulty or if there’s an issue with the server. Rebooting usually fixes this issue.

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [March 14, 2024, 8:05am UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/17 "2024-03-14T08:05:54Z")

</div>

Please monitor gpu temperatures.

---

<div class="post-metadata">

**Author:** ![michael.bourassa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@michael.bourassa](https://forums.developer.nvidia.com/u/michael.bourassa)\
**Post date:** [December 19, 2024, 3:01pm UTC](https://forums.developer.nvidia.com/t/unable-to-determine-the-device-handle-for-gpu-000000-0-unknown-error/197974/18 "2024-12-19T15:01:39Z")

</div>

I recently had this error. The correct useful search term is “GPU has fallen off the bus” because that’s what is happening and how it is described. Things I found and solution:

1. a reboot would get the GPU back on the root bus but some ML processes would still sometimes disconnect them again;
2. running device monitoring “nvidia-smi dmon -i 0 -s puv -d 5 -o TD” (open a terminal, run this command, and watch the log in real time) was useful in seeing temperatures, mem use, and power and temperature violations. It allowed me to rule out temperature as a cause but it did signal power problems; and
3. reseating the cards and replugging the power connections “solved” the problem. That said, even though there are no longer any failures, there still appear to be power violations leading me to conclude that either my PSU is starting to fail or the GPU is.

The fact is, GPU’s are pretty sensitive to things like voltage because it affects the data flow which has to very precise at the clock speeds the GPU’s are working at. Things that have a lot of effect on voltage are:

1. condition of the GPU
2. temperature of the GPU
3. condition of the PSU
