open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.21k stars 9.4k forks source link

After this error occurs, why can't my GPU be found? #11801

Open GGD777 opened 3 months ago

GGD777 commented 3 months ago

RuntimeError: CUDA error: invalid device ordinal CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

After this error occurs, why can't my GPU be found? It changes directly from 4gpu to 3gpu