Commit 928789d
authored
Add declaration warnings suppression option (#4438)
After migrating to 2025.1 PyTorch is seeing excessive deprecated
declarations warnings when our host code is compiled with gcc.
I was able to reproduce it with:
```bash
pip install transformers==4.44.2 pandas psutil scipy
pip install torch==2.8.0.dev20250515 --pre --index-url https://download.pytorch.org/whl/nightly/xpu
git clone https://github.com/pytorch/pytorch
cd pytorch
git checkout 46a5746426714a1b1d01c06795fa3a3c5426d9bc
rm -rf ~/.triton/ && rm -rf /tmp/torchinductor_* && rm -rf /tmp/tmp*
CXX=gcc python benchmarks/dynamo/huggingface.py --performance --float16 -d xpu -n10 --inference --only AlbertForMaskedLM --backend=inductor
```
Though the problem is not specific to Triton, we can suppress those for
the upcoming release.1 parent ace916b commit 928789d
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
0 commit comments