Loading...
cudaErrorDevicesUnavailable (46)cudaErrorDevicesUnavailable occurs when all GPUs are in exclusive mode and occupied.
CUDA error: all devices unavailable cudaErrorDevicesUnavailable
View mode.
nvidia-smi -q -d COMPUTEAllow sharing.
sudo nvidia-smi -c DEFAULTCannot access.
cudaSetDevice(0); // Fails if exclusive and in useTry all devices.
for (int i = 0; i < count; i++) if (cudaSetDevice(i) == cudaSuccess) break;DEFAULT (shared), EXCLUSIVE_PROCESS, PROHIBITED.
Need help debugging CUDA errors? Download RightNow AI for intelligent error analysis and optimization suggestions.