1111
1212env :
1313 # sycl is not included. Add it manually if you need
14- WORKLOADS : python,numpy,dpnp,numba_n,numba_np,numba_npr,numba_dpex_k,numba_dpex_n,numba_dpex_p,numba_mlir_k,numba_mlir_n,numba_mlir_p
14+ # WORKLOADS: python,numpy,dpnp,numba_n,numba_np,numba_npr,numba_dpex_k,numba_dpex_n,numba_dpex_p,numba_mlir_k,numba_mlir_n,numba_mlir_p
15+ WORKLOADS : python,numpy,dpnp,numba_n,numba_np,numba_npr,numba_dpex_k,numba_dpex_n,numba_dpex_p
1516
1617jobs :
17- build_linux :
18+ build :
1819 name : Build and run
1920
2021 strategy :
4041
4142 runs-on : ${{matrix.os}}
4243
44+ defaults :
45+ run :
46+ shell : ${{ matrix.os == 'windows-latest' && 'cmd /C CALL {0}' || 'bash -l {0}' }}
47+
4348 steps :
4449 - name : Cancel Previous Runs
4550 uses : styfle/cancel-workflow-action@0.6.0
@@ -63,12 +68,10 @@ jobs:
6368 run-post : false
6469
6570 - name : Conda info
66- shell : bash -el {0}
6771 run : |
6872 conda info
6973 conda list
7074
71-
7275 - name : Setup OpenCL CPU device
7376 if : runner.os == 'Windows'
7477 shell : pwsh
@@ -107,6 +110,7 @@ jobs:
107110 echo "CXX=${{matrix.cxx}}" >> "$GITHUB_ENV"
108111 echo "DPBENCH_SYCL=1" >> "$GITHUB_ENV"
109112 echo "WORKLOADS=$WORKLOADS,sycl" >> "$GITHUB_ENV"
113+ echo "SKBUILD_ARGS=-G Ninja" >> "$GITHUB_ENV"
110114
111115 - name : Build dpbench
112116 if : matrix.install == 'pip'
@@ -118,21 +122,18 @@ jobs:
118122 - name : Build dpbench
119123 if : matrix.install == 'setup.py'
120124 shell : bash -el {0}
121- run : |
122- python setup.py develop
125+ run : python setup.py develop $SKBUILD_ARGS
123126
124- - name : Run benchmarks
127+ - name : Configure dpbench
125128 shell : bash -el {0}
126129 run : |
127130 export NUMBA_MLIR_GPU_RUNTIME=sycl
128131 # Turn off numba-dpex autofall back
129132 export NUMBA_DPEX_FALLBACK_ON_CPU=0
130- # Make sure numba-dpex is using native atomics in github CI
131- export NUMBA_DPEX_ACTIVATE_ATOMICS_FP_NATIVE=1
132133
133- dpbench -i ${WORKLOADS} run -r2 --no-print-results || exit 1
134+ - name : Run benchmarks
135+ run : dpbench -i ${WORKLOADS} run -r2 --no-print-results || exit 1
134136
135137 - name : Generate report
136138 shell : bash -el {0}
137- run : |
138- dpbench -i ${WORKLOADS} report || exit 1
139+ run : dpbench -i ${WORKLOADS} report || exit 1
0 commit comments