@@ -116,14 +116,15 @@ jobs:
116
116
working-directory : ${{github.workspace}}/build
117
117
run : ctest -C ${{matrix.build_type}} --output-on-failure -L "umf|loader|validation|tracing|unit|urtrace"
118
118
119
- fuzztest-build :
120
- name : Build and run quick fuzztest scenarios
119
+ fuzztest-build-hw :
120
+ name : Build and run quick fuzztest scenarios on L0 HW
121
+ if : github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
121
122
strategy :
122
123
matrix :
123
124
build_type : [Debug, Release]
124
125
compiler : [{c: clang, cxx: clang++}]
125
126
126
- runs-on : ' ubuntu-22.04 '
127
+ runs-on : ' FUZZTESTS '
127
128
128
129
steps :
129
130
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -133,14 +134,20 @@ jobs:
133
134
134
135
- name : Download DPC++
135
136
run : |
136
- sudo apt install libncurses5
137
137
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/sycl-nightly%2F20230626/dpcpp-compiler.tar.gz
138
138
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz
139
139
140
140
- name : Setup DPC++
141
141
run : |
142
142
source ${{github.workspace}}/dpcpp_compiler/startup.sh
143
143
144
+ - name : Build level zero
145
+ run : |
146
+ git clone -b v1.17.6 --depth=1 https://github.com/oneapi-src/level-zero.git ${{github.workspace}}/level-zero
147
+ cd ${{github.workspace}}/level-zero
148
+ cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
149
+ cmake --build build -j $(nproc)
150
+
144
151
- name : Configure CMake
145
152
run : >
146
153
cmake
@@ -152,14 +159,22 @@ jobs:
152
159
-DUR_BUILD_TESTS=ON
153
160
-DUR_USE_ASAN=ON
154
161
-DUR_USE_UBSAN=ON
162
+ -DUR_BUILD_ADAPTER_L0=ON
163
+ -DUR_LEVEL_ZERO_LOADER_LIBRARY=${{github.workspace}}/level-zero/build/lib/libze_loader.so
164
+ -DUR_LEVEL_ZERO_INCLUDE_DIR=${{github.workspace}}/level-zero/include/
155
165
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
166
+ -DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
156
167
157
168
- name : Build
158
169
run : cmake --build ${{github.workspace}}/build -j $(nproc)
159
170
160
171
- name : Fuzz test
161
172
working-directory : ${{github.workspace}}/build
162
173
run : ctest -C ${{matrix.build_type}} --output-on-failure -L "fuzz-short" --verbose
174
+
175
+ - name : Get information about platform
176
+ if : ${{ always() }}
177
+ run : .github/scripts/get_system_info.sh
163
178
164
179
level-zero :
165
180
name : Level Zero
0 commit comments