File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ set "CMAKE_GENERATOR=Ninja"
38
38
:: Make CMake verbose
39
39
set " VERBOSE = 1"
40
40
41
+ set " CMAKE_ARGS = %CMAKE_ARGS% -DDPCTL_LEVEL_ZERO_INCLUDE_DIR=%PREFIX:\ =/ % /Library/include/level_zero"
42
+
41
43
%PYTHON% -m build -w -n -x
42
44
if %ERRORLEVEL% neq 0 exit 1
43
45
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ export CMAKE_GENERATOR=Ninja
19
19
# Make CMake verbose
20
20
export VERBOSE=1
21
21
22
+ CMAKE_ARGS=" ${CMAKE_ARGS} -DDPCTL_LEVEL_ZERO_INCLUDE_DIR=${PREFIX} /include/level_zero"
23
+
22
24
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
23
25
${PYTHON} -m build -w -n -x
24
26
${PYTHON} -m wheel tags --remove --build " $GIT_DESCRIBE_NUMBER " \
Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ requirements:
29
29
host :
30
30
- python
31
31
- 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
36
33
- {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
37
34
# Ensure we are using latest version of setuptools, since we don't need
38
35
# editable environments for release.
@@ -58,7 +55,7 @@ requirements:
58
55
- {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
59
56
- {{ pin_compatible('intel-cmplr-lib-rt', min_pin='x.x', max_pin='x') }}
60
57
- {{ 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]
62
59
63
60
test :
64
61
requires :
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ option(DPCTL_ENABLE_GLOG
42
42
OFF
43
43
)
44
44
45
+ set (DPCTL_LEVEL_ZERO_INCLUDE_DIR "" CACHE STRING "Level zero header path" )
46
+
45
47
# Minimum version requirement only when oneAPI dpcpp is used.
46
48
if (DPCTL_DPCPP_FROM_ONEAPI )
47
49
find_package (IntelSyclCompiler 2021.3.0 REQUIRED )
@@ -51,8 +53,12 @@ endif()
51
53
52
54
if (DPCTL_ENABLE_L0_PROGRAM_CREATION )
53
55
set (DPCTL_ENABLE_L0_PROGRAM_CREATION 1 )
54
- include (GetLevelZeroHeaders )
55
- get_level_zero_headers ()
56
+ if (DPCTL_LEVEL_ZERO_INCLUDE_DIR )
57
+ set (LEVEL_ZERO_INCLUDE_DIR ${DPCTL_LEVEL_ZERO_INCLUDE_DIR} )
58
+ else ()
59
+ include (GetLevelZeroHeaders )
60
+ get_level_zero_headers ()
61
+ endif ()
56
62
if (UNIX )
57
63
find_library (PI_LEVEL_ZERO_LIB
58
64
NAMES pi_level_zero
You can’t perform that action at this time.
0 commit comments