|
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: |
@@ -185,174 +110,3 @@ jobs: |
185 | 110 | ${{ matrix.shared_library == 'ON' && '--proxy --shared-library' || '' }} |
186 | 111 | ${{ matrix.umfd_lib == 'ON' && '--umfd-lib' || ''}} |
187 | 112 | ${{ matrix.static_hwloc == 'ON' && matrix.generator == 'Ninja' && '--hwloc' || '' }} |
188 | | -
|
189 | | - icx: |
190 | | - name: ICX |
191 | | - env: |
192 | | - 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" |
193 | | - strategy: |
194 | | - matrix: |
195 | | - os: ['windows-2019', 'windows-2022'] |
196 | | - build_type: [Debug] |
197 | | - compiler: [{c: icx, cxx: icx}] |
198 | | - shared_library: ['ON', 'OFF'] |
199 | | - include: |
200 | | - - os: windows-2022 |
201 | | - build_type: Release |
202 | | - compiler: {c: icx, cxx: icx} |
203 | | - shared_library: 'ON' |
204 | | - |
205 | | - runs-on: ${{matrix.os}} |
206 | | - |
207 | | - steps: |
208 | | - - name: Checkout |
209 | | - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
210 | | - with: |
211 | | - fetch-depth: 0 |
212 | | - |
213 | | - - name: Initialize vcpkg |
214 | | - uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5 |
215 | | - with: |
216 | | - vcpkgGitCommitId: ea2a964f9303270322cf3f2d51c265ba146c422d # 1.04.2025 |
217 | | - vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg |
218 | | - vcpkgJsonGlob: '**/vcpkg.json' |
219 | | - |
220 | | - - name: Install dependencies |
221 | | - run: vcpkg install --triplet x64-windows |
222 | | - |
223 | | - - name: Install Ninja |
224 | | - uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5 |
225 | | - |
226 | | - - name: Download icx compiler |
227 | | - env: |
228 | | - # Link source: https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html |
229 | | - 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" |
230 | | - run: | |
231 | | - Invoke-WebRequest -Uri "${{ env.CMPLR_LINK }}" -OutFile compiler_install.exe |
232 | | - |
233 | | - - name: Install icx compiler |
234 | | - shell: cmd |
235 | | - run: | |
236 | | - start /b /wait .\compiler_install.exe -s -x -f extracted --log extract.log |
237 | | - extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 ^ |
238 | | - -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=. |
239 | | - |
240 | | - - name: Configure build |
241 | | - shell: cmd |
242 | | - run: | |
243 | | - call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
244 | | - call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
245 | | - cmake ^ |
246 | | - -B ${{env.BUILD_DIR}} ^ |
247 | | - -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}" ^ |
248 | | - -DCMAKE_C_COMPILER=${{matrix.compiler.c}} ^ |
249 | | - -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} ^ |
250 | | - -G Ninja ^ |
251 | | - -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} ^ |
252 | | - -DUMF_FORMAT_CODE_STYLE=OFF ^ |
253 | | - -DUMF_DEVELOPER_MODE=ON ^ |
254 | | - -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON ^ |
255 | | - -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON ^ |
256 | | - -DUMF_BUILD_CUDA_PROVIDER=ON ^ |
257 | | - -DUMF_TESTS_FAIL_ON_SKIP=ON |
258 | | - |
259 | | - - name: Build UMF |
260 | | - shell: cmd |
261 | | - run: | |
262 | | - call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
263 | | - call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
264 | | - cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% |
265 | | - |
266 | | - - name: Run tests |
267 | | - shell: cmd |
268 | | - working-directory: ${{env.BUILD_DIR}} |
269 | | - run: | |
270 | | - call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
271 | | - call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
272 | | - ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test |
273 | | -
|
274 | | - # Scenarios where UMF_LINK_HWLOC_STATICALLY is set to OFF and hwloc is not installed in the system |
275 | | - # The hwloc library is fetched implicitly |
276 | | - hwloc-fallback: |
277 | | - name: "Fallback to static hwloc build" |
278 | | - strategy: |
279 | | - matrix: |
280 | | - include: |
281 | | - - os: 'ubuntu-latest' |
282 | | - build_type: Release |
283 | | - number_of_processors: '$(nproc)' |
284 | | - - os: 'windows-latest' |
285 | | - build_type: Release |
286 | | - number_of_processors: '$Env:NUMBER_OF_PROCESSORS' |
287 | | - |
288 | | - runs-on: ${{matrix.os}} |
289 | | - |
290 | | - steps: |
291 | | - - name: Install dependencies |
292 | | - if: matrix.os == 'ubuntu-latest' |
293 | | - run: sudo apt-get install -y libnuma-dev |
294 | | - |
295 | | - - name: Checkout |
296 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
297 | | - with: |
298 | | - fetch-depth: 0 |
299 | | - |
300 | | - - name: Configure build |
301 | | - run: > |
302 | | - cmake |
303 | | - -B ${{env.BUILD_DIR}} |
304 | | - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} |
305 | | - -DUMF_BUILD_SHARED_LIBRARY=ON |
306 | | - -DUMF_BUILD_EXAMPLES=OFF |
307 | | - -DUMF_DEVELOPER_MODE=ON |
308 | | - -DUMF_LINK_HWLOC_STATICALLY=OFF |
309 | | - -DUMF_TESTS_FAIL_ON_SKIP=ON |
310 | | -
|
311 | | - - name: Build UMF |
312 | | - run: > |
313 | | - cmake |
314 | | - --build ${{env.BUILD_DIR}} |
315 | | - --config ${{matrix.build_type}} |
316 | | - -j ${{matrix.number_of_processors}} |
317 | | -
|
318 | | - - name: Run tests |
319 | | - working-directory: ${{env.BUILD_DIR}} |
320 | | - run: ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test |
321 | | - |
322 | | - L0: |
323 | | - uses: ./.github/workflows/reusable_gpu.yml |
324 | | - with: |
325 | | - provider: "LEVEL_ZERO" |
326 | | - runner: "L0" |
327 | | - L0-BMG: |
328 | | - uses: ./.github/workflows/reusable_gpu.yml |
329 | | - with: |
330 | | - provider: "LEVEL_ZERO" |
331 | | - runner: "L0-BMG" |
332 | | - os: "['Ubuntu']" |
333 | | - CUDA: |
334 | | - uses: ./.github/workflows/reusable_gpu.yml |
335 | | - with: |
336 | | - provider: "CUDA" |
337 | | - runner: "CUDA" |
338 | | - |
339 | | - # Full execution of QEMU tests |
340 | | - QEMU: |
341 | | - uses: ./.github/workflows/reusable_qemu.yml |
342 | | - with: |
343 | | - short_run: false |
344 | | - # Beside the 2 LTS Ubuntu, we also test this on the latest Ubuntu - to be updated |
345 | | - # every 6 months, so we verify the latest version of packages (compilers, etc.). |
346 | | - os: "['ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-24.10']" |
347 | | - |
348 | | - Benchmarks: |
349 | | - uses: ./.github/workflows/reusable_benchmarks.yml |
350 | | - permissions: |
351 | | - contents: write |
352 | | - pull-requests: write |
353 | | - with: |
354 | | - pr_no: '0' |
355 | | - bench_script_params: '--save Baseline_PVC' |
356 | | - |
357 | | - SYCL: |
358 | | - uses: ./.github/workflows/reusable_sycl.yml |
0 commit comments