Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
fix(benchmark): WSL2 submits "Microsoft Basic Render Driver" as the GPU model
Chris Sherwood4c4071e7c70c
diff --git a/admin/app/services/benchmark_service.ts b/admin/app/services/benchmark_service.tsindex e366db65..68f69b7f 100644--- a/admin/app/services/benchmark_service.ts+++ b/admin/app/services/benchmark_service.ts@@ -203,6 +203,16 @@ function isUnresolvedGpuModel(model: string): boolean {if (s === '') return trueif (/^device\s+[0-9a-f]{4}$/i.test(s)) return trueif (/^unknown$/i.test(s)) return true+ // WSL2 exposes the GPU through /dev/dxg rather than the real adapter, so+ // si.graphics() reports Microsoft's generic placeholder even while CUDA work+ // is running on a physical card. Left unhandled, an RTX 3090 reaches the+ // public leaderboard labelled "Microsoft Basic Render Driver", which is worse+ // than no label: it is wrong, and it fragments per-hardware grouping (#1218).+ //+ // These are Microsoft's own placeholder adapter names and appear nowhere+ // outside a Windows/WSL graphics stack, so this cannot reject a real product+ // name on a native Linux host.+ if (/^microsoft basic (render driver|display adapter)$/i.test(s)) return truereturn false}