From 3bfcbdc8199c6efdf464e39004945ce3d7e99351 Mon Sep 17 00:00:00 2001 From: xorss <32858925+xorss@users.noreply.github.com> Date: Tue, 21 Jul 2026 13:25:43 +0800 Subject: [PATCH] fix: the justfile syntax errror, GPU information cannot be read (#669) Co-authored-by: xor_s <7405226+xor_s@user.noreply.gitee.com> --- justfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index 156806d8..15a61cb2 100644 --- a/justfile +++ b/justfile @@ -89,10 +89,10 @@ setup-python: } Write-Host "Installing Python dependencies..." & "{{ python }}" -m pip install --upgrade pip -q - $gpus = Get-CimInstance Win32_VideoController | Select-Object -ExpandProperty Name - Write-Host "Detected GPUs: $($gpus -join ', ')" - $hasNvidia = ($gpus | Where-Object { $_ -match 'NVIDIA' }).Count -gt 0 - $hasIntelArc = ($gpus | Where-Object { $_ -match 'Arc' }).Count -gt 0 + $gpus = Get-CimInstance Win32_VideoController | Select-Object -ExpandProperty Name; \ + Write-Host "Detected GPUs: $($gpus -join ', ')"; \ + $hasNvidia = ($gpus | Where-Object { $_ -match 'NVIDIA' }).Count -gt 0; \ + $hasIntelArc = ($gpus | Where-Object { $_ -match 'Arc' }).Count -gt 0; \ if ($hasNvidia) { \ Write-Host "NVIDIA GPU detected — installing PyTorch with CUDA support..."; \ & "{{ pip }}" install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128; \