3030 strategy :
3131 fail-fast : false
3232 matrix :
33- name : ["gfx942_clang22_release", "cpu_clang18_debug", "gfx942_clang22_debug", "cpu_gcc13_codecov"]
33+ name : ["gfx942_clang22_release", "cpu_clang18_debug", "gfx942_clang22_debug", "cpu_gcc13_codecov", "gfx942_clang22_asan", "cpu_clang18_asan" ]
3434 include :
3535 - name : gfx942_clang22_release
3636 runs-on : linux-mi325-1gpu-ossci-iree-org
6767 -DFUSILLI_CODE_COVERAGE=ON
6868 -DFUSILLI_SYSTEMS_AMDGPU=OFF
6969 -DFUSILLI_ENABLE_CLANG_TIDY=ON
70+ - name : gfx942_clang22_asan
71+ runs-on : linux-mi325-1gpu-ossci-iree-org
72+ cmake-options :
73+ -DCMAKE_C_COMPILER=clang-22
74+ -DCMAKE_CXX_COMPILER=clang++-22
75+ -DCMAKE_BUILD_TYPE=Debug
76+ -DFUSILLI_SYSTEMS_AMDGPU=ON
77+ -DFUSILLI_ENABLE_ASAN=ON
78+ asan-env : >-
79+ ASAN_SYMBOLIZER_PATH=/workspace/.cache/docker/venv/bin/llvm-symbolizer-22
80+ ASAN_OPTIONS=detect_leaks=1:halt_on_error=0
81+ LSAN_OPTIONS=suppressions=/workspace/build_tools/sanitizers/lsan_suppressions.txt
82+ - name : cpu_clang18_asan
83+ runs-on : azure-linux-scale
84+ cmake-options :
85+ -DCMAKE_C_COMPILER=clang-18
86+ -DCMAKE_CXX_COMPILER=clang++-18
87+ -DCMAKE_BUILD_TYPE=Debug
88+ -DFUSILLI_SYSTEMS_AMDGPU=OFF
89+ -DFUSILLI_ENABLE_ASAN=ON
90+ asan-env : >-
91+ ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-18
92+ ASAN_OPTIONS=detect_leaks=1:halt_on_error=0
93+ LSAN_OPTIONS=suppressions=/workspace/build_tools/sanitizers/lsan_suppressions.txt
7094
7195 steps :
7296 - name : Checkout fusilli
@@ -81,14 +105,14 @@ jobs:
81105 cmake --build build --target all"
82106
83107 - name : Test fusilli (libIREECompiler CAPI)
84- if : ${{ matrix.name != 'cpu_gcc13_codecov' }}
108+ if : ${{ matrix.name != 'cpu_gcc13_codecov' && matrix.name != 'gfx942_clang22_asan' && matrix.name != 'cpu_clang18_asan' }}
85109 run : |
86110 build_tools/docker/exec_docker_ci.sh \
87111 bash -c "ctest --test-dir build --output-on-failure --extra-verbose --timeout 120 -j \$(nproc) && \
88112 tests/test_cache_empty.sh"
89113
90114 - name : Test fusilli (iree-compile CLI)
91- if : ${{ matrix.name != 'cpu_gcc13_codecov' }}
115+ if : ${{ matrix.name != 'cpu_gcc13_codecov' && matrix.name != 'gfx942_clang22_asan' && matrix.name != 'cpu_clang18_asan' }}
92116 run : |
93117 build_tools/docker/exec_docker_ci.sh \
94118 bash -c "FUSILLI_COMPILE_BACKEND_USE_CLI=1 ctest --test-dir build --output-on-failure --extra-verbose --timeout 120 -j \$(nproc) && \
@@ -109,3 +133,11 @@ jobs:
109133 with :
110134 name : coverage-report
111135 path : ${{ github.workspace }}/coverage_report
136+
137+ - name : Run AddressSanitizer
138+ if : ${{ matrix.name == 'gfx942_clang22_asan' || matrix.name == 'cpu_clang18_asan' }}
139+ run : |
140+ build_tools/docker/exec_docker_ci.sh \
141+ bash -c "${{ matrix.asan-env }} \
142+ ctest --test-dir build --output-on-failure --extra-verbose --timeout 120 -j \$(nproc) && \
143+ tests/test_cache_empty.sh"
0 commit comments