all-smi 추가
This commit is contained in:
1 parent
0757f0c33d
commit
0eafe509d7
4 files changed
+373
-1
No files matched your search
@@ -0,0 +1,27 @@
|
||||
@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
|
||||
Reference in new issue
Block a user