Skip to content

MTL specific issues #611

Closed
Closed
@daisyden

Description

@daisyden

Aug 2 updated status

<style> </style>
test_reductions_xpu.py::TestReductionsXPU::test_median_nan_values_xpu_float64 Nan Penghui P1 passed
test_reductions_xpu.py::TestReductionsXPU::test_median_real_values_xpu_float64 Nan Penghui P1 passed
test_reductions_xpu.py::TestReductionsXPU::test_quantile_xpu_float64 Nan Penghui P1 passed
test_nn_xpu.py::TestNNDeviceTypeXPU::test_grid_sample_large_xpu Nan Jing P1 JIRA:https://jira.devtools.intel.com/browse/GSD-9622
TestCommonXPU.test_compare_cpu_index_put_xpu_bool Inf Daisy P1 Passed
TestCommonXPU.test_compare_cpu_index_put_xpu_uint8 Inf Daisy P1 Passed
TestCommonXPU.test_python_ref__refs_all_xpu_complex128 Inf Yucheng P1  
TestCommonXPU::test_compare_cpu_all_xpu_complex128 Acc Yucheng P1 WIP
test_reductions_xpu.py::TestReductionsXPU::test_min_xpu_bool Inf Penghui->Yutao P1 WIP
TestCommonXPU.test_python_ref__refs_all_xpu_complex128 Inf Yucheng P1  
TestCommonXPU.test_python_ref_torch_fallback__refs_all_xpu_complex128 Inf Yucheng P1  
TestCommonXPU.test_python_ref_executor__refs_all_executor_aten_xpu_complex128 Inf Yucheng P1  
test_ops_xpu.py::TestMathBitsXPU::test_neg_view_nn_functional_embedding_xpu_float64 Acc Daisy P1 Passed
test_indexing_xpu.py::TestIndexingXPU::test_cuda_broadcast_index_use_deterministic_algorithms_xpu Acc Huaiyu P1 Passed
test_tensor_creation_ops_xpu.py::TestTensorCreationXPU::test_float_to_int_conversion_finite_xpu_int64 Acc Huaiyu P1 GSD-9643
test_indexing_xpu.py::TestIndexingXPU::test_index_put_accumulate_large_tensor_xpu Acc Daisy P1 OOM
test_index_and_index_put.py::TestTorchMethod::test_index_and_index_put Acc Daisy P1 Passed
test_ops_xpu.py::TestCommonXPU::test_compare_cpu_all_xpu_complex128 Acc Yucheng P1  
test_ops_xpu.py::TestCommonXPU::test_compare_cpu_index_put_xpu_complex128 Acc Daisy P1 Passed
test_reductions_xpu.py::TestReductionsXPU::test_ref_duplicate_values_all_xpu_complex128 Acc Jing P1  
TestCommonXPU.test_python_ref__refs_nn_functional_group_norm_xpu_float64 Acc Penghui->Yutao P1  
TestCommonXPU.test_numpy_ref_searchsorted_xpu_float64 Acc Penghui P1 passed
TestCommonXPU.test_numpy_ref_searchsorted_xpu_int64 Acc Penghui P1 passed
test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_complex128 Acc Yu P1  
test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_complex64 Acc Yu P1  
test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_float64 Acc Yu P1  
TestMathBitsXPU.test_neg_view_nn_functional_embedding_xpu_float64 Acc Daisy P1 Passed

🐛 Describe the bug

https://github.com/mengfei25/torch-xpu-ops/actions/runs/9773918255/job/26981060430

There are 109 failures in the report, they occurs on MTL but not on PVC, most of them reports "Tensor like is not close"

NAN:

  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_fmod_xpu_bfloat16
  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_fmod_xpu_float32
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_int16
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_int32
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_int64
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_int8
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_uint8
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_int16
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_int32
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_int64
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_int8
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_uint8
  • test_sort_and_select_xpu.py::TestSortAndSelectXPU::test_kthvalue_xpu_float64
  • test_sort_and_select_xpu.py::TestSortAndSelectXPU::test_msort_xpu_float64
  • test_reductions_xpu.py::TestReductionsXPU::test_median_nan_values_xpu_float64
  • test_reductions_xpu.py::TestReductionsXPU::test_median_real_values_xpu_float64
  • test_reductions_xpu.py::TestReductionsXPU::test_quantile_xpu_float64
  • test_nn_xpu.py::TestNNDeviceTypeXPU::test_grid_sample_large_xpu
  • test_reductions_xpu.py::TestReductionsXPU::test_median_nan_values_xpu_float64
  • test_reductions_xpu.py::TestReductionsXPU::test_median_real_values_xpu_float64
  • test_reductions_xpu.py::TestReductionsXPU::test_quantile_xpu_float64

INF

  • TestCommonXPU.test_compare_cpu_index_put_xpu_bool
  • TestCommonXPU.test_compare_cpu_index_put_xpu_uint8
  • TestCommonXPU.test_noncontiguous_samples__unsafe_masked_index_xpu_float32
  • TestCommonXPU.test_python_ref__refs_all_xpu_complex128
  • TestCommonXPU.test_python_ref_executor__refs_all_executor_aten_xpu_complex128
  • test_ops_xpu.py::TestCommonXPU::test_numpy_ref_searchsorted_xpu_float64
  • test_sort_and_select_xpu.py::TestSortAndSelectXPU::test_msort_xpu_int64
  • nn/test_embedding_xpu.py::TestEmbeddingNNDeviceTypeXPU::test_embedding_padding_idx_xpu_float32
  • test_indexing_xpu.py::TestIndexingXPU::test_index_put_accumulate_expanded_values_xpu
  • test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_complex128
  • test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_complex64
  • test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_float64
  • test_reductions_xpu.py::TestReductionsXPU::test_median_real_values_xpu_int64
  • test_reductions_xpu.py::TestReductionsXPU::test_min_xpu_bool
  • TestEmbeddingNNDeviceTypeXPU.test_embedding_padding_idx_xpu_float16
  • TestEmbeddingNNDeviceTypeXPU.test_embedding_padding_idx_xpu_float64
  • TestCommonXPU.test_numpy_ref_searchsorted_xpu_float64
  • TestCommonXPU.test_python_ref__refs_all_xpu_complex128
  • TestCommonXPU.test_python_ref_torch_fallback__refs_all_xpu_complex128

Accuracy issues (11 are on integer or bool)

  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_index_put_xpu_bfloat16
  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_index_put_xpu_float16
  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_remainder_xpu_bfloat16
  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_remainder_xpu_float32
  • TestCommonXPU::test_compare_cpu_all_xpu_complex128
  • test_ops_xpu.py::TestCommonXPU::test_numpy_ref_searchsorted_xpu_int64
  • test_ops_xpu.py::TestMathBitsXPU::test_neg_view_nn_functional_embedding_xpu_float64
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter__xpu_complex64
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter__xpu_float16
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter__xpu_float32
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_add__xpu_complex64
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_add__xpu_float16
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_add__xpu_float32
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_add_mult_index_base_xpu_float32
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_bfloat16
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_float16
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_float32
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_mean_xpu_float64
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_bfloat16
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_complex128
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_complex64
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_float16
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_float32
  • test_scatter_gather_ops_xpu.py::TestScatterGatherXPU::test_scatter_reduce_sum_xpu_float64
  • test_sort_and_select_xpu.py::TestSortAndSelectXPU::test_topk_integral_xpu_int64
  • nn/test_embedding_xpu.py::TestEmbeddingNNDeviceTypeXPU::test_embedding_dense_grad_xpu
  • test_modules_xpu.py::TestModuleXPU::test_cpu_gpu_parity_nn_Embedding_xpu_float32
  • test_modules_xpu.py::TestModuleXPU::test_cpu_gpu_parity_nn_Embedding_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_grad_nn_ConvTranspose1d_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_grad_nn_ConvTranspose2d_xpu_float64, ....
  • test_modules_xpu.py::TestModuleXPU::test_grad_nn_Embedding_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_grad_nn_LazyConvTranspose1d_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_grad_nn_LazyConvTranspose2d_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_gradgrad_nn_Conv1d_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_gradgrad_nn_Conv2d_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_gradgrad_nn_Conv3d_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_gradgrad_nn_Embedding_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_gradgrad_nn_LazyConv1d_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_gradgrad_nn_LazyConv2d_xpu_float64
  • test_modules_xpu.py::TestModuleXPU::test_gradgrad_nn_LazyConv3d_xpu_float64
  • test_indexing_xpu.py::TestIndexingXPU::test_cuda_broadcast_index_use_deterministic_algorithms_xpu
  • test_indexing_xpu.py::TestIndexingXPU::test_index_put_accumulate_large_tensor_xpu
  • test_tensor_creation_ops_xpu.py::TestTensorCreationXPU::test_float_to_int_conversion_finite_xpu_int64
  • test_reductions_xpu.py::TestReductionsXPU::test_median_real_values_xpu_int64
  • test_index_and_index_put.py::TestTorchMethod::test_index_and_index_put
  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_all_xpu_complex128
  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_index_put_xpu_complex128 and ...
  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu__unsafe_masked_index_put_accumulate_xpu_float32
  • test_ops_xpu.py::TestCommonXPU::test_compare_cpu_index_put_xpu_float32
  • test_ops_xpu.py::TestCommonXPU::test_non_standard_bool_values__unsafe_masked_index_put_accumulate_xpu_bool TestCommonXPU::test_noncontiguous_samples_nn_functional_embedding_xpu_float32 test_ops_xpu.py::TestCommonXPU::test_python_ref__refs_nn_functional_group_norm_xpu_float64 test_ops_xpu.py::TestMathBitsXPU::test_conj_view__unsafe_masked_index_put_accumulate_xpu_complex64 ......
  • test_indexing_xpu.py::TestIndexingXPU::test_cuda_broadcast_index_use_deterministic_algorithms_xpu
  • test_indexing_xpu.py::TestIndexingXPU::test_index_put_accumulate_duplicate_indices_xpu
  • test_indexing_xpu.py::TestIndexingXPU::test_index_put_accumulate_large_tensor_xpu
  • test_tensor_creation_ops_xpu.py::TestTensorCreationXPU::test_float_to_int_conversion_finite_xpu_int64
  • test_tensor_creation_ops_xpu.py::TestRandomTensorCreationXPU::test_randperm_xpu
  • test_reductions_xpu.py::TestReductionsXPU::test_ref_duplicate_values_all_xpu_complex128
  • TestCommonXPU.test_numpy_ref_nn_functional_conv_transpose1d_xpu_float64
  • TestCommonXPU.test_numpy_ref_searchsorted_xpu_int64
  • TestCommonXPU.test_python_ref__refs_nn_functional_group_norm_xpu_float64
  • TestMathBitsXPU.test_conj_view__unsafe_masked_index_put_accumulate_xpu_complex64
  • TestMathBitsXPU.test_conj_view__unsafe_masked_index_xpu_complex64
  • TestMathBitsXPU.test_neg_conj_view__unsafe_masked_index_put_accumulate_xpu_complex128
  • TestMathBitsXPU.test_neg_conj_view__unsafe_masked_index_xpu_complex128
  • TestMathBitsXPU.test_neg_view__unsafe_masked_index_put_accumulate_xpu_float64
  • TestMathBitsXPU.test_neg_view__unsafe_masked_index_xpu_float64
  • TestMathBitsXPU.test_neg_view_nn_functional_embedding_xpu_float64

Can fix by adjust threshold

  • test_modules_xpu.py::TestModuleXPU::test_cpu_gpu_parity_nn_ConvTranspose1d_xpu_complex32
  • test_modules_xpu.py::TestModuleXPU::test_cpu_gpu_parity_nn_ConvTranspose2d_xpu_complex32

Versions

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

OS: Ubuntu 22.04.4 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: version 3.22.1
Libc version: glibc-2.35

Python version: 3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:45:18) [GCC 12.3.0] (64-bit runtime)
Python platform: Linux-6.6.7-060607-generic-x86_64-with-glibc2.35
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
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 22
On-line CPU(s) list: 0-21
Vendor ID: GenuineIntel
Model name: Intel(R) Core(TM) Ultra 7 1002H
CPU family: 6
Model: 170
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 1
Stepping: 4
CPU max MHz: 5000.0000
CPU min MHz: 400.0000
BogoMIPS: 5990.40
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb intel_ppin ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid bus_lock_detect movdiri movdir64b fsrm md_clear serialize arch_lbr ibt flush_l1d arch_capabilities
Virtualization: VT-x
NUMA node(s): 1
NUMA node0 CPU(s): 0-21
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected

Versions of relevant libraries:
[pip3] mypy==1.10.0
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.22.4
[pip3] optree==0.11.0
[pip3] torch==2.5.0a0+gitc2d0b7b
[conda] numpy 1.22.4 pypi_0 pypi
[conda] optree 0.11.0 pypi_0 pypi
[conda] torch 2.5.0a0+gitc2d0b7b pypi_0 pypi
test_reductions_xpu.py::TestReductionsXPU::test_median_nan_values_xpu_float64 Nan Penghui P1 passed
test_reductions_xpu.py::TestReductionsXPU::test_median_real_values_xpu_float64 Nan Penghui P1 passed
test_reductions_xpu.py::TestReductionsXPU::test_quantile_xpu_float64 Nan Penghui P1 passed
test_nn_xpu.py::TestNNDeviceTypeXPU::test_grid_sample_large_xpu Nan Jing P1 JIRA:https://jira.devtools.intel.com/browse/GSD-9622
TestCommonXPU.test_compare_cpu_index_put_xpu_bool Inf Daisy P1 Passed
TestCommonXPU.test_compare_cpu_index_put_xpu_uint8 Inf Daisy P1 Passed
TestCommonXPU.test_python_ref__refs_all_xpu_complex128 Inf Yucheng P1
TestCommonXPU::test_compare_cpu_all_xpu_complex128 Acc Yucheng P1 WIP
test_reductions_xpu.py::TestReductionsXPU::test_min_xpu_bool Inf Penghui->Yutao P1 WIP
TestCommonXPU.test_python_ref__refs_all_xpu_complex128 Inf Yucheng P1
TestCommonXPU.test_python_ref_torch_fallback__refs_all_xpu_complex128 Inf Yucheng P1
TestCommonXPU.test_python_ref_executor__refs_all_executor_aten_xpu_complex128 Inf Yucheng P1
test_ops_xpu.py::TestMathBitsXPU::test_neg_view_nn_functional_embedding_xpu_float64 Acc Daisy P1 Passed
test_indexing_xpu.py::TestIndexingXPU::test_cuda_broadcast_index_use_deterministic_algorithms_xpu Acc Huaiyu P1 Passed
test_tensor_creation_ops_xpu.py::TestTensorCreationXPU::test_float_to_int_conversion_finite_xpu_int64 Acc Huaiyu P1 GSD-9643
test_indexing_xpu.py::TestIndexingXPU::test_index_put_accumulate_large_tensor_xpu Acc Daisy P1 OOM
test_index_and_index_put.py::TestTorchMethod::test_index_and_index_put Acc Daisy P1 Passed
test_ops_xpu.py::TestCommonXPU::test_compare_cpu_all_xpu_complex128 Acc Yucheng P1
test_ops_xpu.py::TestCommonXPU::test_compare_cpu_index_put_xpu_complex128 Acc Daisy P1 Passed
test_reductions_xpu.py::TestReductionsXPU::test_ref_duplicate_values_all_xpu_complex128 Acc Jing P1
TestCommonXPU.test_python_ref__refs_nn_functional_group_norm_xpu_float64 Acc Penghui->Yutao P1
TestCommonXPU.test_numpy_ref_searchsorted_xpu_float64 Acc Penghui P1 passed
TestCommonXPU.test_numpy_ref_searchsorted_xpu_int64 Acc Penghui P1 passed
test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_complex128 Acc Yu P1
test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_complex64 Acc Yu P1
test_reductions_xpu.py::TestReductionsXPU::test_all_any_vs_numpy_xpu_float64 Acc Yu P1
TestMathBitsXPU.test_neg_view_nn_functional_embedding_xpu_float64 Acc Daisy P1 Passed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions