Files

27 lines
1.2 KiB
Batchfile
Raw Permalink Normal View History

2026-08-04 14:37:38 +09:00
@echo off
rem Lablup all-smi (Cross-platform Unified GPU/NPU Monitor) Windows 배치 설치 스크립트
rem PowerShell 스크립트(install-all-smi.ps1)를 호출하여 바이너리를 다운로드하고 설치합니다.
setlocal
echo [INFO] Starting Lablup all-smi installation...
rem 스크립트 위치 확인 및 ps1 파일 탐색
set "SCRIPT_DIR=%~dp0"
set "PS1_FILE=%SCRIPT_DIR%install-all-smi.ps1"
if exist "%PS1_FILE%" (
echo [INFO] Running local install-all-smi.ps1 script...
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; & '%PS1_FILE%'"
) else (
echo [INFO] Local install-all-smi.ps1 not found. Downloading and executing remote installer...
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"%TEMP%\install-all-smi.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-all-smi.ps1' -OutFile $t; & $t"
)
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] all-smi installation failed with error code %ERRORLEVEL%.
exit /b %ERRORLEVEL%
)
echo [OK] Installation completed successfully.
endlocal