Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 36a26cf

Browse files
committed
fix: gpu: filter out llvmpipe
1 parent e48a0b4 commit 36a26cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/common/hardware_common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ inline Json::Value ToJson(const std::vector<GPU>& gpus) {
100100
gpu["total_vram"] = gpus[i].total_vram;
101101
gpu["uuid"] = gpus[i].uuid;
102102
gpu["activated"] = gpus[i].is_activated;
103-
res.append(gpu);
103+
if (gpus[i].total_vram > 0) {
104+
res.append(gpu);
105+
}
104106
}
105107
return res;
106108
}

0 commit comments

Comments
 (0)