+9
-1
scripts/detect-gpu-issues.nu
+9
-1
scripts/detect-gpu-issues.nu
···
6
6
7
7
# Detect & report problems with the GPU
8
8
def main [] {
9
-
if (vulkaninfo --summary
9
+
let vkinfo = vulkaninfo --summary o+e>| $in
10
+
11
+
if ($vkinfo
12
+
| str contains "Could not open device /dev/dri/renderD128") or ($vkinfo
13
+
| str contains "failed to open device /dev/dri/renderD128") {
14
+
report "Could not access GPU rendering subsystem"
15
+
}
16
+
17
+
if ($vkinfo
10
18
| parse " deviceType{whitespace}= {device_type}"
11
19
| where device_type == "PHYSICAL_DEVICE_TYPE_DISCRETE_GPU"
12
20
| length) == 0 {