Skip to content

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): Detect Intel Arc Graphics on Core Ultra processors

Chris Sherwoodf6db05bed234
diff --git a/admin/app/services/benchmark_service.ts b/admin/app/services/benchmark_service.ts
index fcab1fa8..7eeb0b6b 100644
--- a/admin/app/services/benchmark_service.ts
+++ b/admin/app/services/benchmark_service.ts
@@ -269,14 +269,23 @@ export class BenchmarkService {
gpuModel = discreteGpu?.model || graphics.controllers[0]?.model || null
}
- // Fallback: Extract integrated GPU from CPU model name (common for AMD APUs)
- // e.g., "AMD Ryzen AI 9 HX 370 w/ Radeon 890M" -> "Radeon 890M"
+ // Fallback: Extract integrated GPU from CPU model name
if (!gpuModel) {
const cpuFullName = `${cpu.manufacturer} ${cpu.brand}`
+
+ // AMD APUs: e.g., "AMD Ryzen AI 9 HX 370 w/ Radeon 890M" -> "Radeon 890M"
const radeonMatch = cpuFullName.match(/w\/\s*(Radeon\s+\d+\w*)/i)
if (radeonMatch) {
gpuModel = radeonMatch[1]
}
+
+ // Intel Core Ultra: These have Intel Arc Graphics integrated
+ // e.g., "Intel Core Ultra 9 285HX" -> "Intel Arc Graphics (Integrated)"
+ if (!gpuModel && cpu.manufacturer?.toLowerCase().includes('intel')) {
+ if (cpu.brand?.toLowerCase().includes('core ultra')) {
+ gpuModel = 'Intel Arc Graphics (Integrated)'
+ }
+ }
}
return {