Skip to content

[riscv64] quantized engine does not support riscv64 #5

@yuzibo

Description

@yuzibo

🐛 Describe the bug

This is one core test case and we do not know how it affects riscv64.

=================================== FAILURES ===================================
____________________________ TestTorch.test_qengine ____________________________
Traceback (most recent call last):
  File "/home/jenkins/pytorch/test/test_torch.py", line 9578, in test_qengine
    torch.backends.quantized.engine = original_qe
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins/pip/lib/python3.13/site-packages/torch/backends/quantized/__init__.py", line 37, in __set__
    torch._C._set_qengine(_get_qengine_id(val))
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: quantized engine NoQEngine is not supported

To execute this test, run the following from the base repo dir:
    python test/test_torch.py TestTorch.test_qengine

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
=========================== short test summary info ============================
FAILED [0.0113s] test_torch.py::TestTorch::test_qengine - RuntimeError: quant...
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!

===== shard_0_ci.log =====

=================================== FAILURES ===================================
____________________________ TestTorch.test_qengine ____________________________
Traceback (most recent call last):
  File "/home/jenkins/pytorch/test/test_torch.py", line 9578, in test_qengine
    torch.backends.quantized.engine = original_qe
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins/pip/lib/python3.13/site-packages/torch/backends/quantized/__init__.py", line 37, in __set__
    torch._C._set_qengine(_get_qengine_id(val))
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: quantized engine NoQEngine is not supported
Exception raised from setQEngine at /home/jenkins/pytorch/aten/src/ATen/Context.cpp:747 (most recent call first):
C++ CapturedTraceback:


To execute this test, run the following from the base repo dir:
    python test/test_torch.py TestTorch.test_qengine

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
----------------------------- Captured stderr call -----------------------------
/home/jenkins/pip/lib/python3.13/site-packages/torch/backends/quantized/__init__.py:37: UserWarning: record_context_cpp is not supported on this platform (requires linux x86_64 or aarch64) (Triggered internally at /home/jenkins/pytorch/torch/csrc/profiler/unwind/unwind.cpp:10.)
  torch._C._set_qengine(_get_qengine_id(val))
=========================== short test summary info ============================
FAILED [0.0114s] test_torch.py::TestTorch::test_qengine - RuntimeError: quant...
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!

===== shard_0_ci.log =====

=================================== FAILURES ===================================
____________________________ TestTorch.test_qengine ____________________________
Traceback (most recent call last):
  File "/home/jenkins/pytorch/test/test_torch.py", line 9578, in test_qengine
    torch.backends.quantized.engine = original_qe
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins/pip/lib/python3.13/site-packages/torch/backends/quantized/__init__.py", line 37, in __set__
    torch._C._set_qengine(_get_qengine_id(val))
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: quantized engine NoQEngine is not supported
Exception raised from setQEngine at /home/jenkins/pytorch/aten/src/ATen/Context.cpp:747 (most recent call first):
C++ CapturedTraceback:


To execute this test, run the following from the base repo dir:
    python test/test_torch.py TestTorch.test_qengine

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
----------------------------- Captured stderr call -----------------------------
/home/jenkins/pip/lib/python3.13/site-packages/torch/backends/quantized/__init__.py:37: UserWarning: record_context_cpp is not supported on this platform (requires linux x86_64 or aarch64) (Triggered internally at /home/jenkins/pytorch/torch/csrc/profiler/unwind/unwind.cpp:10.)
  torch._C._set_qengine(_get_qengine_id(val))
=========================== short test summary info ============================
FAILED [0.0113s] test_torch.py::TestTorch::test_qengine - RuntimeError: quant...
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!

see the log

Versions

Collecting environment information...
PyTorch version:b2e1f526d2c562
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Debian GNU/Linux 13 (trixie) (riscv64)
GCC version: (Debian 14.2.0-19) 14.2.0
Clang version: 19.1.7 (3+b1)
CMake version: version 3.31.6
Libc version: glibc-2.41

Python version: 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0] (64-bit runtime)
Python platform: Linux-6.6.0-98.0.0.103.oe2403sp2.riscv64-riscv64-with-glibc2.41
Is CUDA available: N/A
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
Is XPU available: N/A
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A
Caching allocator config: N/A

CPU:
Architecture:        riscv64
Byte Order:          Little Endian
CPU(s):              64
On-line CPU(s) list: 0-63
Vendor ID:           0x5b7
Model name:          -
CPU family:          0x0
Model:               0x0
Thread(s) per core:  1
Core(s) per socket:  64
Socket(s):           1
NUMA node(s):        4
NUMA node0 CPU(s):   0-7,16-23
NUMA node1 CPU(s):   8-15,24-31
NUMA node2 CPU(s):   32-39,48-55
NUMA node3 CPU(s):   40-47,56-63

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions