File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ for /f %%f in ('dir /b /S .\dist') do (
4848 if %ERRORLEVEL% neq 0 exit 1
4949)
5050
51+ set " CMAKE_ARGS = %CMAKE_ARGS% -DLEVEL_ZERO_INCLUDE_DIR=%PREFIX% \include\level_zero"
52+
5153:: wheel file was renamed
5254for /f %%f in ('dir /b /S .\dist') do (
5355 %PYTHON% -m pip install %%f ^
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ export CMAKE_GENERATOR=Ninja
1919# Make CMake verbose
2020export VERBOSE=1
2121
22+ CMAKE_ARGS=" ${CMAKE_ARGS} -DLEVEL_ZERO_INCLUDE_DIR=${PREFIX} /include/level_zero"
23+
2224# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
2325${PYTHON} -m build -w -n -x
2426${PYTHON} -m wheel tags --remove --build " $GIT_DESCRIBE_NUMBER " \
Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ requirements:
2929 host :
3030 - python
3131 - pip >=24.0
32- - git
33- # In case use forces ssh over https for git repository interaction we
34- # must have compatible SSL library version
35- - openssh
32+ - level-zero-devel >=1.16
3633 - {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
3734 # Ensure we are using latest version of setuptools, since we don't need
3835 # editable environments for release.
@@ -58,7 +55,7 @@ requirements:
5855 - {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
5956 - {{ pin_compatible('intel-cmplr-lib-rt', min_pin='x.x', max_pin='x') }}
6057 - {{ pin_compatible('numpy', min_pin='x.x', max_pin='x') }}
61- - level-zero # [linux]
58+ - {{ pin_compatible(' level-zero', min_pin='x.x', max_pin='x') }} # [linux]
6259
6360test :
6461 requires :
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ option(DPCTL_ENABLE_GLOG
4242 OFF
4343)
4444
45+ set (LEVEL_ZERO_INCLUDE_DIR "" CACHE STRING "Level zero header path" )
46+
4547# Minimum version requirement only when oneAPI dpcpp is used.
4648if (DPCTL_DPCPP_FROM_ONEAPI )
4749 find_package (IntelSyclCompiler 2021.3.0 REQUIRED )
@@ -51,8 +53,10 @@ endif()
5153
5254if (DPCTL_ENABLE_L0_PROGRAM_CREATION )
5355 set (DPCTL_ENABLE_L0_PROGRAM_CREATION 1 )
54- include (GetLevelZeroHeaders )
55- get_level_zero_headers ()
56+ if (NOT LEVEL_ZERO_INCLUDE_DIR )
57+ include (GetLevelZeroHeaders )
58+ get_level_zero_headers ()
59+ endif ()
5660 if (UNIX )
5761 find_library (PI_LEVEL_ZERO_LIB
5862 NAMES pi_level_zero
You can’t perform that action at this time.
0 commit comments