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