|
23 | 23 | options: >- |
24 | 24 | --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --user root |
25 | 25 | --volume /home/runner/.triton:/github/home/.triton |
26 | | - - image: rocm/pytorch:rocm7.0_ubuntu22.04_py3.10_pytorch_release_2.8.0 |
| 26 | + - image: rocm/pytorch-private:rocm7.0_ubuntu22.04_py3.10_pytorch_2.8.0_asan |
27 | 27 | runner: ["amd-gfx942"] |
28 | 28 | # We add --env-file to pull in HIP_VISIBLE_DEVICES and ROCR_VISIBLE_DEVICES definition for GPU isolation. |
29 | 29 | options: >- |
|
47 | 47 | PROTON_SKIP_PC_SAMPLING_TEST: 1 |
48 | 48 | PYTHON: "python3" |
49 | 49 | CCACHE_COMPRESS: "true" |
| 50 | + PIP_BREAK_SYSTEM_PACKAGES: 1 |
50 | 51 | container: |
51 | 52 | image: ${{ matrix.image }} |
52 | 53 | options: ${{ matrix.options }} |
@@ -167,18 +168,22 @@ jobs: |
167 | 168 | run: | |
168 | 169 | make test-distributed |
169 | 170 | - name: Run asan tests on AMD |
170 | | - if: false |
| 171 | + if: ${{ matrix.runner[0] == 'amd-gfx942' }} |
171 | 172 | run: | |
172 | 173 | cd third_party/amd/python/test/ |
173 | 174 | ulimit -s 1024 |
174 | 175 | export PATH=$(find ~/.triton/llvm -name llvm-symbolizer -printf '%h\n'):$PATH |
| 176 | + TORCH_PATH=$(find /opt -name libcaffe2_nvrtc.so -printf '%h\n') |
| 177 | + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TORCH_PATH |
| 178 | + mv $TORCH_PATH/libamdhip64.so $TORCH_PATH/libamdhip64_bck.so |
175 | 179 | export LD_LIBRARY_PATH=$(find /opt -name libclang_rt.asan-x86_64.so -printf '%h\n'):$LD_LIBRARY_PATH |
176 | 180 | export LD_LIBRARY_PATH=$(find /opt -type d -wholename *lib/llvm/lib/asan):$LD_LIBRARY_PATH |
177 | | - export LD_LIBRARY_PATH=$(find /usr -name libcaffe2_nvrtc.so -printf '%h\n'):$LD_LIBRARY_PATH |
| 181 | + export LD_LIBRARY_PATH=$(find /opt -wholename *lib/asan/libamdhip64.so -printf '%h\n'):$LD_LIBRARY_PATH |
178 | 182 | export CLANG_ASAN_LIB=$(find /opt -name libclang_rt.asan-x86_64.so) |
179 | 183 | export HIP_ASAN_LIB=$(find /opt -wholename *lib/asan/libamdhip64.so) |
180 | 184 | ASAN_OPTIONS=detect_leaks=0,alloc_dealloc_mismatch=0 \ |
181 | 185 | LD_PRELOAD=$CLANG_ASAN_LIB:$HIP_ASAN_LIB python3 -m pytest -s test_address_sanitizer.py |
| 186 | + mv $TORCH_PATH/libamdhip64_bck.so $TORCH_PATH/libamdhip64.so |
182 | 187 | - name: Run regression tests |
183 | 188 | run: | |
184 | 189 | make test-regression |
|
0 commit comments