Skip to content

Commit

Permalink
[Windows] Add a skip list for ARC display card on windows platform. (#…
Browse files Browse the repository at this point in the history
…828)

It is found that the SYCL compiler on Windows will remove extra
FP64-related functions. This will trigger Windows-specific UT failures.
This is a list of functions that will trigger unexpected failures.
Adding this can avoid unnecessary false alarms at this moment. The
compiler problem has been reported to related teams.

Co-authored-by: min-jean-cho <[email protected]>
  • Loading branch information
cfgfung and min-jean-cho authored Aug 27, 2024
1 parent 455deaf commit 17b2696
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/xpu/run_test_with_skip_arc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from skip_list_common import skip_dict
from skip_list_arc import skip_dict as skip_dict_specifical
from skip_list_win import skip_dict as skip_dict_win
from skip_list_win_arc import skip_dict as skip_dict_win_arc
from xpu_test_utils import launch_test


Expand All @@ -15,6 +16,8 @@
skip_list += skip_dict_specifical[key]
if IS_WINDOWS and key in skip_dict_win:
skip_list += skip_dict_win[key]
if IS_WINDOWS and key in skip_dict_win_arc:
skip_list += skip_dict_win_arc[key]
res += launch_test(key, skip_list)

exit_code = os.WEXITSTATUS(res)
Expand Down
187 changes: 187 additions & 0 deletions test/xpu/skip_list_win_arc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
skip_dict = {
# SYCL Compiler on Windows removed the following operations when '-cl-poison-unsupported-fp64-kernels' is on
# Hence, skip the following windows specific errors
"test_ops_xpu.py": (
"test_compare_cpu_sqrt_xpu_complex64",
"test_backward_nn_functional_adaptive_avg_pool2d_xpu_float32",
),
"test_binary_ufuncs_xpu": (
"test_batch_vs_slicing___rpow___xpu_complex64",
"test_batch_vs_slicing__refs_pow_xpu_complex64",
"test_batch_vs_slicing_pow_xpu_complex64",
"test_contig_size1___rpow___xpu_complex64",
"test_contig_size1__refs_pow_xpu_complex64",
"test_contig_size1_large_dim___rpow___xpu_complex64",
"test_contig_size1_large_dim__refs_pow_xpu_complex64",
"test_contig_size1_large_dim_pow_xpu_complex32",
"test_contig_size1_large_dim_pow_xpu_complex64",
"test_contig_size1_pow_xpu_complex32",
"test_contig_size1_pow_xpu_complex64",
"test_contig_vs_every_other___rpow___xpu_complex64",
"test_contig_vs_every_other__refs_pow_xpu_complex64",
"test_contig_vs_every_other_pow_xpu_complex32",
"test_contig_vs_every_other_pow_xpu_complex64",
"test_contig_vs_transposed___rpow___xpu_complex64",
"test_contig_vs_transposed__refs_pow_xpu_complex64",
"test_contig_vs_transposed_pow_xpu_complex32",
"test_contig_vs_transposed_pow_xpu_complex64",
"test_non_contig___rpow___xpu_complex64",
"test_non_contig__refs_pow_xpu_complex64",
"test_non_contig_expand___rpow___xpu_complex64",
"test_non_contig_expand__refs_pow_xpu_complex64",
"test_non_contig_expand_pow_xpu_complex32",
"test_non_contig_expand_pow_xpu_complex64",
"test_non_contig_index___rpow___xpu_complex64",
"test_non_contig_index__refs_pow_xpu_complex64",
"test_non_contig_index_pow_xpu_complex32",
"test_non_contig_index_pow_xpu_complex64",
"test_non_contig_pow_xpu_complex64",
),
"test_nn_xpu.py": (
"test_adaptiveavg_pool1d_shmem_xpu",
),
"test_unary_ufuncs_xpu.py": (
"test_batch_vs_slicing__refs_acos_xpu_complex64",
"test_batch_vs_slicing__refs_acosh_xpu_complex64",
"test_batch_vs_slicing__refs_log_xpu_complex64",
"test_batch_vs_slicing__refs_sqrt_xpu_complex64",
"test_batch_vs_slicing_acos_xpu_complex32",
"test_batch_vs_slicing_acos_xpu_complex64",
"test_batch_vs_slicing_acosh_xpu_complex32",
"test_batch_vs_slicing_acosh_xpu_complex64",
"test_batch_vs_slicing_log_xpu_complex32",
"test_batch_vs_slicing_log_xpu_complex64",
"test_batch_vs_slicing_sqrt_xpu_complex32",
"test_batch_vs_slicing_sqrt_xpu_complex64",
"test_batch_vs_slicing_square_xpu_complex64",
"test_contig_size1__refs_acos_xpu_complex64",
"test_contig_size1__refs_acosh_xpu_complex64",
"test_contig_size1__refs_log_xpu_complex64",
"test_contig_size1__refs_sqrt_xpu_complex64",
"test_contig_size1_acos_xpu_complex32",
"test_contig_size1_acos_xpu_complex64",
"test_contig_size1_acosh_xpu_complex32",
"test_contig_size1_acosh_xpu_complex64",
"test_contig_size1_large_dim__refs_acos_xpu_complex64",
"test_contig_size1_large_dim__refs_acosh_xpu_complex64",
"test_contig_size1_large_dim__refs_log_xpu_complex64",
"test_contig_size1_large_dim__refs_sqrt_xpu_complex64",
"test_contig_size1_large_dim_acos_xpu_complex32",
"test_contig_size1_large_dim_acos_xpu_complex64",
"test_contig_size1_large_dim_acosh_xpu_complex32",
"test_contig_size1_large_dim_acosh_xpu_complex64",
"test_contig_size1_large_dim_log_xpu_complex32",
"test_contig_size1_large_dim_log_xpu_complex64",
"test_contig_size1_large_dim_sqrt_xpu_complex32",
"test_contig_size1_large_dim_sqrt_xpu_complex64",
"test_contig_size1_large_dim_square_xpu_complex64",
"test_contig_size1_log_xpu_complex32",
"test_contig_size1_log_xpu_complex64",
"test_contig_size1_sqrt_xpu_complex32",
"test_contig_size1_sqrt_xpu_complex64",
"test_contig_size1_square_xpu_complex64",
"test_contig_vs_every_other__refs_acos_xpu_complex64",
"test_contig_vs_every_other__refs_acosh_xpu_complex64",
"test_contig_vs_every_other__refs_log_xpu_complex64",
"test_contig_vs_every_other__refs_sqrt_xpu_complex64",
"test_contig_vs_every_other_acos_xpu_complex32",
"test_contig_vs_every_other_acos_xpu_complex64",
"test_contig_vs_every_other_acosh_xpu_complex32",
"test_contig_vs_every_other_acosh_xpu_complex64",
"test_contig_vs_every_other_log_xpu_complex32",
"test_contig_vs_every_other_log_xpu_complex64",
"test_contig_vs_every_other_sqrt_xpu_complex32",
"test_contig_vs_every_other_sqrt_xpu_complex64",
"test_contig_vs_every_other_square_xpu_complex64",
"test_contig_vs_transposed__refs_acos_xpu_complex64",
"test_contig_vs_transposed__refs_acosh_xpu_complex64",
"test_contig_vs_transposed__refs_log_xpu_complex64",
"test_contig_vs_transposed__refs_sqrt_xpu_complex64",
"test_contig_vs_transposed_acos_xpu_complex32",
"test_contig_vs_transposed_acos_xpu_complex64",
"test_contig_vs_transposed_acosh_xpu_complex32",
"test_contig_vs_transposed_acosh_xpu_complex64",
"test_contig_vs_transposed_log_xpu_complex32",
"test_contig_vs_transposed_log_xpu_complex64",
"test_contig_vs_transposed_sqrt_xpu_complex32",
"test_contig_vs_transposed_sqrt_xpu_complex64",
"test_contig_vs_transposed_square_xpu_complex64",
"test_non_contig__refs_acos_xpu_complex64",
"test_non_contig__refs_acosh_xpu_complex64",
"test_non_contig__refs_log_xpu_complex64",
"test_non_contig__refs_sqrt_xpu_complex64",
"test_non_contig_acos_xpu_complex32",
"test_non_contig_acos_xpu_complex64",
"test_non_contig_acosh_xpu_complex32",
"test_non_contig_acosh_xpu_complex64",
"test_non_contig_expand__refs_acos_xpu_complex64",
"test_non_contig_expand__refs_acosh_xpu_complex64",
"test_non_contig_expand__refs_log_xpu_complex64",
"test_non_contig_expand__refs_sqrt_xpu_complex64",
"test_non_contig_expand_acos_xpu_complex32",
"test_non_contig_expand_acos_xpu_complex64",
"test_non_contig_expand_acosh_xpu_complex32",
"test_non_contig_expand_acosh_xpu_complex64",
"test_non_contig_expand_log_xpu_complex32",
"test_non_contig_expand_log_xpu_complex64",
"test_non_contig_expand_sqrt_xpu_complex32",
"test_non_contig_expand_sqrt_xpu_complex64",
"test_non_contig_expand_square_xpu_complex64",
"test_non_contig_index__refs_acos_xpu_complex64",
"test_non_contig_index__refs_acosh_xpu_complex64",
"test_non_contig_index__refs_log_xpu_complex64",
"test_non_contig_index__refs_sqrt_xpu_complex64",
"test_non_contig_index_acos_xpu_complex32",
"test_non_contig_index_acos_xpu_complex64",
"test_non_contig_index_acosh_xpu_complex32",
"test_non_contig_index_acosh_xpu_complex64",
"test_non_contig_index_log_xpu_complex32",
"test_non_contig_index_log_xpu_complex64",
"test_non_contig_index_sqrt_xpu_complex32",
"test_non_contig_index_sqrt_xpu_complex64",
"test_non_contig_index_square_xpu_complex64",
"test_non_contig_log_xpu_complex32",
"test_non_contig_log_xpu_complex64",
"test_non_contig_sqrt_xpu_complex32",
"test_non_contig_sqrt_xpu_complex64",
"test_non_contig_square_xpu_complex64",
"test_reference_numerics_extremal__refs_sqrt_xpu_complex64",
"test_reference_numerics_extremal_sqrt_xpu_complex64",
"test_reference_numerics_large__refs_acos_xpu_complex64",
"test_reference_numerics_large__refs_log_xpu_complex64",
"test_reference_numerics_large__refs_sqrt_xpu_complex64",
"test_reference_numerics_large_acos_xpu_complex32",
"test_reference_numerics_large_acos_xpu_complex64",
"test_reference_numerics_large_acosh_xpu_complex32",
"test_reference_numerics_large_log_xpu_complex32",
"test_reference_numerics_large_log_xpu_complex64",
"test_reference_numerics_large_sqrt_xpu_complex32",
"test_reference_numerics_large_sqrt_xpu_complex64",
"test_reference_numerics_normal__refs_acos_xpu_complex64",
"test_reference_numerics_normal__refs_acosh_xpu_complex64",
"test_reference_numerics_normal__refs_log_xpu_complex64",
"test_reference_numerics_normal__refs_sqrt_xpu_complex64",
"test_reference_numerics_normal_acos_xpu_complex32",
"test_reference_numerics_normal_acos_xpu_complex64",
"test_reference_numerics_normal_acosh_xpu_complex32",
"test_reference_numerics_normal_acosh_xpu_complex64",
"test_reference_numerics_normal_log_xpu_complex32",
"test_reference_numerics_normal_log_xpu_complex64",
"test_reference_numerics_normal_sqrt_xpu_complex32",
"test_reference_numerics_normal_sqrt_xpu_complex64",
"test_reference_numerics_normal_square_xpu_complex64",
"test_reference_numerics_small__refs_acos_xpu_complex64",
"test_reference_numerics_small__refs_acosh_xpu_complex64",
"test_reference_numerics_small__refs_log_xpu_complex64",
"test_reference_numerics_small__refs_sqrt_xpu_complex64",
"test_reference_numerics_small_acos_xpu_complex32",
"test_reference_numerics_small_acos_xpu_complex64",
"test_reference_numerics_small_acosh_xpu_complex32",
"test_reference_numerics_small_acosh_xpu_complex64",
"test_reference_numerics_small_log_xpu_complex32",
"test_reference_numerics_small_log_xpu_complex64",
"test_reference_numerics_small_sqrt_xpu_complex32",
"test_reference_numerics_small_sqrt_xpu_complex64",
"test_reference_numerics_small_square_xpu_complex64",
),
}

0 comments on commit 17b2696

Please sign in to comment.