From b4b93e064d3a9d306b687e0a173bd41f7ec0a9fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 14 Feb 2023 17:15:58 +0100 Subject: [PATCH] Platform: improve WindowlessEglApp error with a not found CUDA device. Say how many devices there were in total, so it's possible to distinguish the case of trying to find a CUDA device on a machine with no NVidia GPU (where it says it found some other EGL devices) and the case of drivers being completely broken for some reason (where it says it didn't find any device at all). --- src/Magnum/Platform/WindowlessEglApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Platform/WindowlessEglApplication.cpp b/src/Magnum/Platform/WindowlessEglApplication.cpp index 5a55c5548..fbc152bff 100644 --- a/src/Magnum/Platform/WindowlessEglApplication.cpp +++ b/src/Magnum/Platform/WindowlessEglApplication.cpp @@ -230,7 +230,7 @@ WindowlessEglContext::WindowlessEglContext(const Configuration& configuration, G /* None found */ if(selectedDevice == UnsignedInt(count)) { Error e; - e << "Platform::WindowlessEglApplication::tryCreateContext(): unable to find EGL device for CUDA device" << configuration.cudaDevice(); + e << "Platform::WindowlessEglApplication::tryCreateContext(): unable to find CUDA device" << configuration.cudaDevice() << "among" << count << "EGL devices in total"; return; }