|
1 | 1 | # Various non-standard tests, requiring e.g. longer run
|
2 | 2 | name: Nightly
|
3 | 3 |
|
4 |
| -# This job is run at 04:00 UTC every day or on demand. |
| 4 | +# This job is run at 04:00 UTC every day, on push, or on pull request. |
5 | 5 | on:
|
| 6 | + push: |
| 7 | + pull_request: |
6 | 8 | workflow_dispatch:
|
7 | 9 | schedule:
|
8 | 10 | - cron: '0 4 * * *'
|
|
14 | 16 | BUILD_DIR : "${{github.workspace}}/build"
|
15 | 17 |
|
16 | 18 | jobs:
|
17 |
| - fuzz-test: |
18 |
| - name: Fuzz test |
19 |
| - strategy: |
20 |
| - fail-fast: false |
21 |
| - matrix: |
22 |
| - build_type: [Debug, Release] |
23 |
| - compiler: [{c: clang, cxx: clang++}] |
24 |
| - |
25 |
| - runs-on: ubuntu-latest |
26 |
| - |
27 |
| - steps: |
28 |
| - - name: Checkout repository |
29 |
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
30 |
| - with: |
31 |
| - fetch-depth: 0 |
32 |
| - |
33 |
| - - name: Install apt packages |
34 |
| - run: | |
35 |
| - sudo apt-get update |
36 |
| - sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev |
37 |
| -
|
38 |
| - - name: Configure CMake |
39 |
| - run: > |
40 |
| - cmake |
41 |
| - -B ${{github.workspace}}/build |
42 |
| - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} |
43 |
| - -DCMAKE_C_COMPILER=${{matrix.compiler.c}} |
44 |
| - -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} |
45 |
| - -DUMF_TESTS_FAIL_ON_SKIP=ON |
46 |
| - -DUMF_DEVELOPER_MODE=ON |
47 |
| - -DUMF_BUILD_FUZZTESTS=ON |
48 |
| -
|
49 |
| - - name: Build |
50 |
| - run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --verbose -j$(nproc) |
51 |
| - |
52 |
| - - name: Fuzz long test |
53 |
| - working-directory: ${{github.workspace}}/build |
54 |
| - run: ctest -C ${{matrix.build_type}} --output-on-failure --verbose -L "fuzz-long" |
55 |
| - |
56 |
| - valgrind: |
57 |
| - name: Valgrind |
58 |
| - strategy: |
59 |
| - fail-fast: false |
60 |
| - matrix: |
61 |
| - tool: ['memcheck', 'drd', 'helgrind'] |
62 |
| - runs-on: ubuntu-latest |
63 |
| - |
64 |
| - steps: |
65 |
| - - name: Checkout repository |
66 |
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
67 |
| - with: |
68 |
| - fetch-depth: 0 |
69 |
| - |
70 |
| - - name: Install apt packages |
71 |
| - run: | |
72 |
| - sudo apt-get update |
73 |
| - sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev valgrind |
74 |
| -
|
75 |
| - - name: Configure CMake |
76 |
| - run: > |
77 |
| - cmake |
78 |
| - -B ${{github.workspace}}/build |
79 |
| - -DCMAKE_BUILD_TYPE=Debug |
80 |
| - -DUMF_FORMAT_CODE_STYLE=OFF |
81 |
| - -DUMF_DEVELOPER_MODE=ON |
82 |
| - -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON |
83 |
| - -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF |
84 |
| - -DUMF_BUILD_CUDA_PROVIDER=OFF |
85 |
| - -DUMF_USE_VALGRIND=1 |
86 |
| - -DUMF_TESTS_FAIL_ON_SKIP=ON |
87 |
| -
|
88 |
| - - name: Build |
89 |
| - run: cmake --build ${{github.workspace}}/build --config Debug -j$(nproc) |
90 |
| - |
91 |
| - - name: Run tests under valgrind |
92 |
| - run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}} |
93 |
| - |
94 | 19 | Windows-generators:
|
95 | 20 | name: Windows ${{matrix.generator}} generator
|
96 | 21 | strategy:
|
@@ -177,174 +102,3 @@ jobs:
|
177 | 102 | --umf-version ${{env.UMF_VERSION}}
|
178 | 103 | ${{ matrix.shared_library == 'ON' && '--shared-library' || ''}}
|
179 | 104 | ${{ matrix.umfd_lib == 'ON' && '--umfd-lib' || ''}}
|
180 |
| -
|
181 |
| - icx: |
182 |
| - name: ICX |
183 |
| - env: |
184 |
| - VCPKG_PATH: "${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows" |
185 |
| - strategy: |
186 |
| - matrix: |
187 |
| - os: ['windows-2019', 'windows-2022'] |
188 |
| - build_type: [Debug] |
189 |
| - compiler: [{c: icx, cxx: icx}] |
190 |
| - shared_library: ['ON', 'OFF'] |
191 |
| - include: |
192 |
| - - os: windows-2022 |
193 |
| - build_type: Release |
194 |
| - compiler: {c: icx, cxx: icx} |
195 |
| - shared_library: 'ON' |
196 |
| - |
197 |
| - runs-on: ${{matrix.os}} |
198 |
| - |
199 |
| - steps: |
200 |
| - - name: Checkout |
201 |
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
202 |
| - with: |
203 |
| - fetch-depth: 0 |
204 |
| - |
205 |
| - - name: Initialize vcpkg |
206 |
| - uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5 |
207 |
| - with: |
208 |
| - vcpkgGitCommitId: ea2a964f9303270322cf3f2d51c265ba146c422d # 1.04.2025 |
209 |
| - vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg |
210 |
| - vcpkgJsonGlob: '**/vcpkg.json' |
211 |
| - |
212 |
| - - name: Install dependencies |
213 |
| - run: vcpkg install --triplet x64-windows |
214 |
| - |
215 |
| - - name: Install Ninja |
216 |
| - uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5 |
217 |
| - |
218 |
| - - name: Download icx compiler |
219 |
| - env: |
220 |
| - # Link source: https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html |
221 |
| - CMPLR_LINK: "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/15a35578-2f9a-4f39-804b-3906e0a5f8fc/w_dpcpp-cpp-compiler_p_2024.2.1.83_offline.exe" |
222 |
| - run: | |
223 |
| - Invoke-WebRequest -Uri "${{ env.CMPLR_LINK }}" -OutFile compiler_install.exe |
224 |
| - |
225 |
| - - name: Install icx compiler |
226 |
| - shell: cmd |
227 |
| - run: | |
228 |
| - start /b /wait .\compiler_install.exe -s -x -f extracted --log extract.log |
229 |
| - extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 ^ |
230 |
| - -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=. |
231 |
| - |
232 |
| - - name: Configure build |
233 |
| - shell: cmd |
234 |
| - run: | |
235 |
| - call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
236 |
| - call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
237 |
| - cmake ^ |
238 |
| - -B ${{env.BUILD_DIR}} ^ |
239 |
| - -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}" ^ |
240 |
| - -DCMAKE_C_COMPILER=${{matrix.compiler.c}} ^ |
241 |
| - -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} ^ |
242 |
| - -G Ninja ^ |
243 |
| - -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} ^ |
244 |
| - -DUMF_FORMAT_CODE_STYLE=OFF ^ |
245 |
| - -DUMF_DEVELOPER_MODE=ON ^ |
246 |
| - -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON ^ |
247 |
| - -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON ^ |
248 |
| - -DUMF_BUILD_CUDA_PROVIDER=ON ^ |
249 |
| - -DUMF_TESTS_FAIL_ON_SKIP=ON |
250 |
| - |
251 |
| - - name: Build UMF |
252 |
| - shell: cmd |
253 |
| - run: | |
254 |
| - call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
255 |
| - call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
256 |
| - cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% |
257 |
| - |
258 |
| - - name: Run tests |
259 |
| - shell: cmd |
260 |
| - working-directory: ${{env.BUILD_DIR}} |
261 |
| - run: | |
262 |
| - call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
263 |
| - call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
264 |
| - ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test |
265 |
| -
|
266 |
| - # Scenarios where UMF_LINK_HWLOC_STATICALLY is set to OFF and hwloc is not installed in the system |
267 |
| - # The hwloc library is fetched implicitly |
268 |
| - hwloc-fallback: |
269 |
| - name: "Fallback to static hwloc build" |
270 |
| - strategy: |
271 |
| - matrix: |
272 |
| - include: |
273 |
| - - os: 'ubuntu-latest' |
274 |
| - build_type: Release |
275 |
| - number_of_processors: '$(nproc)' |
276 |
| - - os: 'windows-latest' |
277 |
| - build_type: Release |
278 |
| - number_of_processors: '$Env:NUMBER_OF_PROCESSORS' |
279 |
| - |
280 |
| - runs-on: ${{matrix.os}} |
281 |
| - |
282 |
| - steps: |
283 |
| - - name: Install dependencies |
284 |
| - if: matrix.os == 'ubuntu-latest' |
285 |
| - run: sudo apt-get install -y libnuma-dev |
286 |
| - |
287 |
| - - name: Checkout |
288 |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
289 |
| - with: |
290 |
| - fetch-depth: 0 |
291 |
| - |
292 |
| - - name: Configure build |
293 |
| - run: > |
294 |
| - cmake |
295 |
| - -B ${{env.BUILD_DIR}} |
296 |
| - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} |
297 |
| - -DUMF_BUILD_SHARED_LIBRARY=ON |
298 |
| - -DUMF_BUILD_EXAMPLES=OFF |
299 |
| - -DUMF_DEVELOPER_MODE=ON |
300 |
| - -DUMF_LINK_HWLOC_STATICALLY=OFF |
301 |
| - -DUMF_TESTS_FAIL_ON_SKIP=ON |
302 |
| -
|
303 |
| - - name: Build UMF |
304 |
| - run: > |
305 |
| - cmake |
306 |
| - --build ${{env.BUILD_DIR}} |
307 |
| - --config ${{matrix.build_type}} |
308 |
| - -j ${{matrix.number_of_processors}} |
309 |
| -
|
310 |
| - - name: Run tests |
311 |
| - working-directory: ${{env.BUILD_DIR}} |
312 |
| - run: ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test |
313 |
| - |
314 |
| - L0: |
315 |
| - uses: ./.github/workflows/reusable_gpu.yml |
316 |
| - with: |
317 |
| - provider: "LEVEL_ZERO" |
318 |
| - runner: "L0" |
319 |
| - L0-BMG: |
320 |
| - uses: ./.github/workflows/reusable_gpu.yml |
321 |
| - with: |
322 |
| - provider: "LEVEL_ZERO" |
323 |
| - runner: "L0-BMG" |
324 |
| - os: "['Ubuntu']" |
325 |
| - CUDA: |
326 |
| - uses: ./.github/workflows/reusable_gpu.yml |
327 |
| - with: |
328 |
| - provider: "CUDA" |
329 |
| - runner: "CUDA" |
330 |
| - |
331 |
| - # Full execution of QEMU tests |
332 |
| - QEMU: |
333 |
| - uses: ./.github/workflows/reusable_qemu.yml |
334 |
| - with: |
335 |
| - short_run: false |
336 |
| - # Beside the 2 LTS Ubuntu, we also test this on the latest Ubuntu - to be updated |
337 |
| - # every 6 months, so we verify the latest version of packages (compilers, etc.). |
338 |
| - os: "['ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-24.10']" |
339 |
| - |
340 |
| - Benchmarks: |
341 |
| - uses: ./.github/workflows/reusable_benchmarks.yml |
342 |
| - permissions: |
343 |
| - contents: write |
344 |
| - pull-requests: write |
345 |
| - with: |
346 |
| - pr_no: '0' |
347 |
| - bench_script_params: '--save Baseline_PVC' |
348 |
| - |
349 |
| - SYCL: |
350 |
| - uses: ./.github/workflows/reusable_sycl.yml |
0 commit comments