intel / torch-xpu-ops

Apache License 2.0
14 stars 7 forks source link

[Evaluated] OneDNN issue in TestMathBits of test_ops.py #253

Open daisyden opened 1 month ago

daisyden commented 1 month ago

🐛 Describe the bug

There are THREE kinds of issues:

  1. TestMathBitsXPU , totally 200 cases got RuntimeError: Double and complex datatype matmul is not supported in oneDNN ONEDNN_VERBOSE=2 PYTORCH_ENABLE_XPU_FALLBACK=1 PYTORCH_TEST_WITH_SLOW=1 pytest -v test_ops_xpu.py -k 'test_conj_view_addmm_xpu_complex64'

    "test_conj_viewrmatmulxpu_complex64", "test_conj_viewrefs_linalg_svd_xpu_complex64", "test_conj_view_addmm_decomposed_xpu_complex64", "test_conj_view_addmm_xpu_complex64", "test_conj_view_addmv_xpu_complex64", "test_conj_view_addr_xpu_complex64", "test_conj_view_baddbmm_xpu_complex64", "test_conj_view_bmm_xpu_complex64", "test_conj_view_cholesky_inverse_xpu_complex64", "test_conj_view_cholesky_solve_xpu_complex64", "test_conj_view_cholesky_xpu_complex64", "test_conj_view_corrcoef_xpu_complex64", "test_conj_view_cov_xpu_complex64", "test_conj_view_einsum_xpu_complex64", "test_conj_view_geqrf_xpu_complex64", "test_conj_view_inner_xpu_complex64", "test_conj_view_linalg_cholesky_ex_xpu_complex64", "test_conj_view_linalg_cholesky_xpu_complex64", "test_conj_view_linalg_cond_xpu_complex64", "test_conj_view_linalg_det_singular_xpu_complex64", "test_conj_view_linalg_det_xpu_complex64", "test_conj_view_linalg_eig_xpu_complex64", "test_conj_view_linalg_eigh_xpu_complex64", "test_conj_view_linalg_eigvals_xpu_complex64", "test_conj_view_linalg_eigvalsh_xpu_complex64", "test_conj_view_linalg_householder_product_xpu_complex64", "test_conj_view_linalg_inv_ex_xpu_complex64", "test_conj_view_linalg_inv_xpu_complex64", "test_conj_view_linalg_ldl_factor_ex_xpu_complex64", "test_conj_view_linalg_ldl_factor_xpu_complex64", "test_conj_view_linalg_ldl_solve_xpu_complex64", "test_conj_view_linalg_lstsq_grad_oriented_xpu_complex64", "test_conj_view_linalg_lstsq_xpu_complex64", "test_conj_view_linalg_lu_factor_xpu_complex64", "test_conj_view_linalg_lu_solve_xpu_complex64", "test_conj_view_linalg_matrix_norm_xpu_complex64", "test_conj_view_linalg_matrix_power_xpu_complex64", "test_conj_view_linalg_matrix_rank_hermitian_xpu_complex64", "test_conj_view_linalg_matrix_rank_xpu_complex64", "test_conj_view_linalg_multi_dot_xpu_complex64", "test_conj_view_linalg_norm_subgradients_at_zero_xpu_complex64", "test_conj_view_linalg_norm_xpu_complex64", "test_conj_view_linalg_pinv_hermitian_xpu_complex64", "test_conj_view_linalg_pinv_singular_xpu_complex64", "test_conj_view_linalg_pinv_xpu_complex64", "test_conj_view_linalg_qr_xpu_complex64", "test_conj_view_linalg_slogdet_xpu_complex64", "test_conj_view_linalg_solve_ex_xpu_complex64", "test_conj_view_linalg_solve_triangular_xpu_complex64", "test_conj_view_linalg_solve_xpu_complex64", "test_conj_view_linalg_svd_xpu_complex64", "test_conj_view_linalg_svdvals_xpu_complex64", "test_conj_view_linalg_tensorinv_xpu_complex64", "test_conj_view_linalg_tensorsolve_xpu_complex64", "test_conj_view_logdet_xpu_complex64", "test_conj_view_lu_solve_xpu_complex64", "test_conj_view_lu_xpu_complex64", "test_conj_view_matmul_xpu_complex64", "test_conj_view_mm_xpu_complex64", "test_conj_view_mv_xpu_complex64", "test_conj_view_nn_functional_linear_xpu_complex64", "test_conj_view_norm_nuc_xpu_complex64", "test_conj_view_ormqr_xpu_complex64", "test_conj_view_pinverse_xpu_complex64", "test_conj_view_qr_xpu_complex64", "test_conj_view_svd_xpu_complex64", "test_conj_view_tensordot_xpu_complex64", "test_conj_view_triangular_solve_xpu_complex64", "test_neg_conj_view_addmm_decomposed_xpu_complex128", "test_neg_conj_view_addmm_xpu_complex128", "test_neg_conj_view_addmv_xpu_complex128", "test_neg_conj_view_addr_xpu_complex128", "test_neg_conj_view_baddbmm_xpu_complex128", "test_neg_conj_view_bmm_xpu_complex128", "test_neg_conj_view_cholesky_inverse_xpu_complex128", "test_neg_conj_view_cholesky_solve_xpu_complex128", "test_neg_conj_view_cholesky_xpu_complex128", "test_neg_conj_view_corrcoef_xpu_complex128", "test_neg_conj_view_cov_xpu_complex128", "test_neg_conj_view_geqrf_xpu_complex128", "test_neg_conj_view_inner_xpu_complex128", "test_neg_conj_view_linalg_cholesky_ex_xpu_complex128", "test_neg_conj_view_linalg_cholesky_xpu_complex128", "test_neg_conj_view_linalg_cond_xpu_complex128", "test_neg_conj_view_linalg_det_singular_xpu_complex128", "test_neg_conj_view_linalg_eig_xpu_complex128", "test_neg_conj_view_linalg_eigh_xpu_complex128", "test_neg_conj_view_linalg_eigvals_xpu_complex128", "test_neg_conj_view_linalg_eigvalsh_xpu_complex128", "test_neg_conj_view_linalg_householder_product_xpu_complex128", "test_neg_conj_view_linalg_inv_ex_xpu_complex128", "test_neg_conj_view_linalg_inv_xpu_complex128", "test_neg_conj_view_linalg_ldl_factor_ex_xpu_complex128", "test_neg_conj_view_linalg_ldl_factor_xpu_complex128", "test_neg_conj_view_linalg_ldl_solve_xpu_complex128", "test_neg_conj_view_linalg_lstsq_grad_oriented_xpu_complex128", "test_neg_conj_view_linalg_lstsq_xpu_complex128", "test_neg_conj_view_linalg_lu_factor_xpu_complex128", "test_neg_conj_view_linalg_lu_solve_xpu_complex128", "test_neg_conj_view_linalg_matrix_rank_hermitian_xpu_complex128", "test_neg_conj_view_linalg_matrix_rank_xpu_complex128", "test_neg_conj_view_linalg_multi_dot_xpu_complex128", "test_neg_conj_view_linalg_pinv_hermitian_xpu_complex128", "test_neg_conj_view_linalg_pinv_singular_xpu_complex128", "test_neg_conj_view_linalg_pinv_xpu_complex128", "test_neg_conj_view_linalg_qr_xpu_complex128", "test_neg_conj_view_linalg_solve_ex_xpu_complex128", "test_neg_conj_view_linalg_solve_triangular_xpu_complex128", "test_neg_conj_view_linalg_solve_xpu_complex128", "test_neg_conj_view_linalg_svdvals_xpu_complex128", "test_neg_conj_view_linalg_tensorinv_xpu_complex128", "test_neg_conj_view_linalg_tensorsolve_xpu_complex128", "test_neg_conj_view_lu_solve_xpu_complex128", "test_neg_conj_view_lu_xpu_complex128", "test_neg_conj_view_mm_xpu_complex128", "test_neg_conj_view_mv_xpu_complex128", "test_neg_conj_view_nn_functional_linear_xpu_complex128", "test_neg_conj_view_norm_nuc_xpu_complex128", "test_neg_conj_view_ormqr_xpu_complex128", "test_neg_conj_view_pinverse_xpu_complex128", "test_neg_conj_view_qr_xpu_complex128", "test_neg_conj_view_tensordot_xpu_complex128", "test_neg_conj_view_triangular_solve_xpu_complex128", "test_neg_view__rmatmulxpu_float64", "test_neg_viewrefs_linalg_svd_xpu_float64", "test_neg_viewrefs_nn_functional_pdist_xpu_float64", "test_neg_view_addbmm_xpu_float64", "test_neg_view_addmm_decomposed_xpu_float64", "test_neg_view_addmm_xpu_float64", "test_neg_view_addmv_xpu_float64", "test_neg_view_addr_xpu_float64", "test_neg_view_baddbmm_xpu_float64", "test_neg_view_bmm_xpu_float64", "test_neg_view_cdist_xpu_float64", "test_neg_view_cholesky_inverse_xpu_float64", "test_neg_view_cholesky_solve_xpu_float64", "test_neg_view_cholesky_xpu_float64", "test_neg_view_corrcoef_xpu_float64", "test_neg_view_cov_xpu_float64", "test_neg_view_einsum_xpu_float64", "test_neg_view_geqrf_xpu_float64", "test_neg_view_inner_xpu_float64", "test_neg_view_linalg_cholesky_ex_xpu_float64", "test_neg_view_linalg_cholesky_xpu_float64", "test_neg_view_linalg_cond_xpu_float64", "test_neg_view_linalg_det_singular_xpu_float64", "test_neg_view_linalg_det_xpu_float64", "test_neg_view_linalg_eig_xpu_float64", "test_neg_view_linalg_eigh_xpu_float64", "test_neg_view_linalg_eigvals_xpu_float64", "test_neg_view_linalg_eigvalsh_xpu_float64", "test_neg_view_linalg_householder_product_xpu_float64", "test_neg_view_linalg_inv_ex_xpu_float64", "test_neg_view_linalg_inv_xpu_float64", "test_neg_view_linalg_ldl_factor_ex_xpu_float64", "test_neg_view_linalg_ldl_factor_xpu_float64", "test_neg_view_linalg_ldl_solve_xpu_float64", "test_neg_view_linalg_lstsq_grad_oriented_xpu_float64", "test_neg_view_linalg_lstsq_xpu_float64", "test_neg_view_linalg_lu_factor_xpu_float64", "test_neg_view_linalg_lu_solve_xpu_float64", "test_neg_view_linalg_matrix_norm_xpu_float64", "test_neg_view_linalg_matrix_power_xpu_float64", "test_neg_view_linalg_matrix_rank_hermitian_xpu_float64", "test_neg_view_linalg_matrix_rank_xpu_float64", "test_neg_view_linalg_multi_dot_xpu_float64", "test_neg_view_linalg_norm_subgradients_at_zero_xpu_float64", "test_neg_view_linalg_norm_xpu_float64", "test_neg_view_linalg_pinv_hermitian_xpu_float64", "test_neg_view_linalg_pinv_singular_xpu_float64", "test_neg_view_linalg_pinv_xpu_float64", "test_neg_view_linalg_qr_xpu_float64", "test_neg_view_linalg_slogdet_xpu_float64", "test_neg_view_linalg_solve_ex_xpu_float64", "test_neg_view_linalg_solve_triangular_xpu_float64", "test_neg_view_linalg_solve_xpu_float64", "test_neg_view_linalg_svd_xpu_float64", "test_neg_view_linalg_svdvals_xpu_float64", "test_neg_view_linalg_tensorinv_xpu_float64", "test_neg_view_linalg_tensorsolve_xpu_float64", "test_neg_view_logdet_xpu_float64", "test_neg_view_lu_solve_xpu_float64", "test_neg_view_lu_xpu_float64", "test_neg_view_matmul_xpu_float64", "test_neg_view_mm_xpu_float64", "test_neg_view_mv_xpu_float64", "test_neg_view_nn_functional_bilinear_xpu_float64", "test_neg_view_nn_functional_linear_xpu_float64", "test_neg_view_nn_functional_multi_head_attention_forward_xpu_float64", "test_neg_view_nn_functional_scaled_dot_product_attention_xpu_float64", "test_neg_view_norm_nuc_xpu_float64", "test_neg_view_ormqr_xpu_float64", "test_neg_view_pca_lowrank_xpu_float64", "test_neg_view_pinverse_xpu_float64", "test_neg_view_qr_xpu_float64", "test_neg_view_svd_lowrank_xpu_float64", "test_neg_view_svd_xpu_float64", "test_neg_view_tensordot_xpu_float64", "test_neg_view_triangular_solve_xpu_float64",

  2. Same shape could got RuntimeError: could not create a primitive descriptor for a deconvolution forward propagation primitive ONEDNN_VERBOSE=2 PYTORCH_ENABLE_XPU_FALLBACK=1 PYTORCH_TEST_WITH_SLOW=1 py test -v test_ops_xpu.py -k 'test_neg_view_nn_functional_conv_transpose2d_xpu_float64' ============================================================================ test session starts ============================================================================ platform linux -- Python 3.10.14, pytest-8.2.0, pluggy-1.5.0 -- /home/daisyden/miniconda3/envs/xpupatch/bin/python cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/daisyden/workspace/skiplist/pytorch3/third_party/torch-xpu-ops/test/xpu/.hypothesis/examples')) rootdir: /home/daisyden/workspace/skiplist/pytorch3 configfile: pytest.ini plugins: hypothesis-6.102.2 collected 5413 items / 5412 deselected / 1 selected

test_ops_xpu.py::TestMathBitsXPU::test_neg_view_nn_functional_conv_transpose2d_xpu_float64 onednn_verbose,info,oneDNN v3.3.6 (commit 86e6af5974177e513fd3fee58425e1063e7f1361) onednn_verbose,info,cpu,runtime:threadpool,nthr:56 onednn_verbose,info,cpu,isa:Intel AVX-512 with float16, Intel DL Boost and bfloat16 support and Intel AMX with bfloat16 and 8-bit integer support onednn_verbose,info,gpu,runtime:DPC++ onednn_verbose,info,gpu,engine,0,backend:Level Zero,name:Intel(R) Data Center GPU Max 1100,driver_version:1.3.27642,binary_kernels:enabled onednn_verbose,primitive,info,template:operation,engine,primitive,implementation,prop_kind,memory_descriptors,attributes,auxiliary,problem_desc,exec_time onednn_verbose,primitive,create:cache_miss,gpu,deconvolution,jit:ir,forward_training,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,31.3291 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,forward_training,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.156006 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,forward_training,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0180664 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,forward_training,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0720215 onednn_verbose,primitive,create:cache_miss,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,5.48413 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.700928 onednn_verbose,primitive,create:cache_miss,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,6.72217 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.772949 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00683594 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0688477 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00195312 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.045166 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0129395 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.185059 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00610352 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.133057 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00708008 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.115967 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00488281 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.101074 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,forward_training,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00805664 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,forward_training,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0788574 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,forward_training,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00195312 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,forward_training,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.032959 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00805664 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.125977 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00488281 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.101807 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0078125 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.111816 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00390625 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.105957 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00610352 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0759277 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00195312 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0678711 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00415039 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_data,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_undef::undef::: dst_f64::blocked:abcd::f0,,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.059082 onednn_verbose,primitive,create:cache_hit,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.00195312 onednn_verbose,primitive,exec,gpu,deconvolution,jit:ir,backward_weights,src_f64::blocked:abcd::f0 wei_f64::blocked:bacd::f0 bia_f64::blocked:a::f0 dst_f64::blocked:abcd::f0,attr-scratchpad:user ,alg:deconvolution_direct,mb1_ic3oc3_ih4oh6kh3sh2dh0ph2_iw4ow6kw3sw2dw0pw2,0.0549316 FAILED [100%]

================================================================================= FAILURES ================================================================================== _____ TestMathBitsXPU.test_neg_view_nn_functional_conv_transpose2d_xpu_float64 __ Traceback (most recent call last): File "/home/daisyden/miniconda3/envs/xpupatch/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 971, in test_wrapper return test(*args, kwargs) File "/home/daisyden/workspace/skiplist/pytorch3/third_party/torch-xpu-ops/test/xpu/../../../../test/test_ops.py", line 2027, in test_neg_view self._test_math_view( File "/home/daisyden/workspace/skiplist/pytorch3/third_party/torch-xpu-ops/test/xpu/../../../../test/test_ops.py", line 1938, in _test_math_view expected_forward = op(sample.input, *sample.args, *sample.kwargs) File "/home/daisyden/miniconda3/envs/xpupatch/lib/python3.10/site-packages/torch/testing/_internal/opinfo/core.py", line 1132, in call return self.op(args, kwargs) RuntimeError: could not create a primitive descriptor for a deconvolution forward propagation primitive

  1. oneDNN error

onednn_verbose,common,error,ocl,Error during the build of OpenCL program. Build log: 1:6644:26: error: unknown type name 'PO_1_BIN_ARG_DATA_T'

image TestCompositeComplianceXPU.test_view_replay_addbmm_xpu_float32 TestCompositeComplianceXPU.test_view_replay_addmm_xpu_float32 TestCompositeComplianceXPU.test_view_replay_addmv_xpu_float32 image

Versions

Collecting environment information... PyTorch version: 2.4.0a0+git470723f Is debug build: False CUDA used to build PyTorch: None ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.3 LTS (x86_64) GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang version: 14.0.0-1ubuntu1.1 CMake version: version 3.26.4 Libc version: glibc-2.35

Python version: 3.10.14 (main, May 6 2024, 19:42:50) [GCC 11.2.0] (64-bit runtime) Python platform: Linux-5.15.0-106-generic-x86_64-with-glibc2.35 Is CUDA available: False CUDA runtime version: No CUDA CUDA_MODULE_LOADING set to: N/A GPU models and configuration: No CUDA Nvidia driver version: No CUDA cuDNN version: No CUDA HIP runtime version: N/A MIOpen runtime version: N/A Is XNNPACK available: True

CPU: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 52 bits physical, 57 bits virtual Byte Order: Little Endian CPU(s): 224 On-line CPU(s) list: 0-223 Vendor ID: GenuineIntel Model name: Intel(R) Xeon(R) Platinum 8480+ CPU family: 6 Model: 143 Thread(s) per core: 2 Core(s) per socket: 56 Socket(s): 2 Stepping: 8 CPU max MHz: 3800.0000 CPU min MHz: 800.0000 BogoMIPS: 4000.00 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 dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 invpcid_single intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities Virtualization: VT-x L1d cache: 5.3 MiB (112 instances) L1i cache: 3.5 MiB (112 instances) L2 cache: 224 MiB (112 instances) L3 cache: 210 MiB (2 instances) NUMA node(s): 2 NUMA node0 CPU(s): 0-55,112-167 NUMA node1 CPU(s): 56-111,168-223 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 and seccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced IBRS; IBPB conditional; RSB filling; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected

Versions of relevant libraries: [pip3] numpy==1.26.4 [pip3] optree==0.11.0 [pip3] torch==2.4.0a0+git470723f [conda] mkl-include 2024.1.0 intel_691 intel [conda] mkl-static 2024.1.0 intel_691 intel [conda] numpy 1.26.4 pypi_0 pypi [conda] optree 0.11.0 pypi_0 pypi [conda] torch 2.4.0a0+git470723f pypi_0 pypi

daisyden commented 1 month ago

To reproduce use PR#243 cd torch-xpu-ops/test/xpu timeout 10000 python run_test_with_skip.py