Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Client] DNNL does not support bf16/f16 backward on the platform with avx2_vnni_2 #1094

Open
Stonepia opened this issue Nov 18, 2024 · 0 comments
Assignees
Labels

Comments

@Stonepia
Copy link
Contributor

🐛 Describe the bug

We find a failure when running on Client GPU:

_____________________________ TestNN.test_no_grad ______________________________
Traceback (most recent call last):
  File "/home/zhouyi/work/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/test_nn.py", line 274, in test_no_grad
    output.backward(torch.ones(1, 5, 10, 10))
  File "/home/zhouyi/miniforge3/envs/xpu_op_0/lib/python3.10/site-packages/torch/_tensor.py", line 581, in backward
    torch.autograd.backward(
  File "/home/zhouyi/miniforge3/envs/xpu_op_0/lib/python3.10/site-packages/torch/autograd/__init__.py", line 347, in backward
    _engine_run_backward(
  File "/home/zhouyi/miniforge3/envs/xpu_op_0/lib/python3.10/site-packages/torch/autograd/graph.py", line 825, in _engine_run_backward
    return Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: DNNL does not support bf16/f16 backward on the platform with avx2_vnni_2

To execute this test, run the following from the base repo dir:
    PYTORCH_TEST_WITH_SLOW=1 python test/test_nn.py TestNN.test_no_grad

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0

Versions

Ubuntu 24.10
PyTorch private branch pytorch-2.5.1 (f05bc32c)
torch-xpu-ops pined 02060c6
Compiler intel-compiler-2025.0.1.1225_offline.sh

@Stonepia Stonepia self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant