-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathsetup.bat
More file actions
48 lines (37 loc) · 1.59 KB
/
setup.bat
File metadata and controls
48 lines (37 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
echo OpenArc setup script for Windows
where uv >nul 2>nul
if %errorlevel% neq 0 (
echo installing uv...
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
set "PATH=%USERPROFILE%\.local\bin;%PATH%"
)
uv sync
call .venv\Scripts\activate.bat
uv pip install "optimum-intel[openvino] @ git+https://github.com/huggingface/optimum-intel"
uv pip install --pre -U openvino-genai --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
echo checking for Intel oneAPI...
if not exist "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" (
echo Warning: Intel oneAPI not found. Skipping gpu-metrics install.
echo install from https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit.html
goto :skip_gpu_metrics
)
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force
if defined LEVEL_ZERO_V1_SDK_PATH (
echo %INCLUDE% | findstr /I /C:"%LEVEL_ZERO_V1_SDK_PATH%\include" >nul || set "INCLUDE=%INCLUDE%;%LEVEL_ZERO_V1_SDK_PATH%\include"
echo %LIB% | findstr /I /C:"%LEVEL_ZERO_V1_SDK_PATH%\lib" >nul || set "LIB=%LIB%;%LEVEL_ZERO_V1_SDK_PATH%\lib"
)
echo installing gpu-metrics (soft dependency)...
uv pip install ./gpu-metrics
if %errorlevel% neq 0 (
echo Warning: gpu-metrics build failed. Intel GPU telemetry will be unavailable.
)
:skip_gpu_metrics
set /p set_key="set OPENARC_API_KEY? (y/N): "
if /I not "%set_key%"=="y" goto :skip_key
set /p api_key="key (default: openarc-api-key): "
if "%api_key%"=="" set "api_key=openarc-api-key"
setx OPENARC_API_KEY "%api_key%"
:skip_key
openarc --help
pause