From d5673b81e04df2df3a5ffc22c9366243f6c0fedf Mon Sep 17 00:00:00 2001 From: dkeven <82354774+dkeven@users.noreply.github.com> Date: Thu, 29 May 2025 20:07:39 +0800 Subject: [PATCH] fix(cli): also consider 3D controller when detecting GPU by lspci (#1360) --- cli/pkg/gpu/prepares.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/pkg/gpu/prepares.go b/cli/pkg/gpu/prepares.go index 5d9901583..abe68aa71 100644 --- a/cli/pkg/gpu/prepares.go +++ b/cli/pkg/gpu/prepares.go @@ -118,7 +118,7 @@ func (p *NvidiaGraphicsCard) PreCheck(runtime connector.Runtime) (found bool, er } }() output, err := runtime.GetRunner().SudoCmd( - "lspci | grep -i vga | grep -i nvidia", false, false) + "lspci | grep -i -e vga -e 3d | grep -i nvidia", false, false) // an empty grep also results in the exit code to be 1 // and thus a non-nil err if err != nil {