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

sync skip list with main branch #1189

Open
wants to merge 4 commits into
base: release/2.6
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions test/xpu/extended/run_test_with_skip_lnl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os
import pytest
import sys
from skip_list_common import skip_dict
from skip_list_win import skip_dict as skip_dict_win
from skip_list_win_lnl import skip_dict as skip_dict_win_lnl

IS_WINDOWS = sys.platform == "win32"

skip_list = skip_dict["test_ops_xpu.py"]
if IS_WINDOWS:
skip_list += skip_dict_win["test_ops_xpu.py"] + skip_dict_win_lnl["test_ops_xpu.py"]

skip_options = "not " + skip_list[0]
for skip_case in skip_list[1:]:
skip_option = " and not " + skip_case
skip_options += skip_option

os.environ["PYTORCH_TEST_WITH_SLOW"]="1"
test_command = ["-k", skip_options, "test_ops_xpu.py", "-v"]
res = pytest.main(test_command)
sys.exit(res)
4 changes: 4 additions & 0 deletions test/xpu/extended/skip_list_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,9 @@
# Greatest absolute difference: 0.0625 at index (1,) (up to 0.001 allowed)
# Greatest relative difference: 0.00640869140625 at index (1,) (up to 0.001 allowed)
"test_compare_cpu_xlogy_xpu_bfloat16",
"test_compare_cpu_div_trunc_rounding_xpu_float64",
"test_compare_cpu_div_trunc_rounding_xpu_float16",
"test_compare_cpu_div_floor_rounding_xpu_float16",
"test_compare_cpu_div_floor_rounding_xpu_bfloat16",
),
}
7 changes: 7 additions & 0 deletions test/xpu/extended/skip_list_win_lnl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
skip_dict = {
"test_ops_xpu.py": (
# https://github.com/intel/torch-xpu-ops/issues/1173
# Fatal Python error: Illegal instruction
"test_compare_cpu_grid_sampler_2d_xpu_float64",
),
}
24 changes: 24 additions & 0 deletions test/xpu/run_test_with_skip_bmg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import os
import sys
from skip_list_common import skip_dict
from skip_list_win import skip_dict as skip_dict_win
from skip_list_win_bmg import skip_dict as skip_dict_win_bmg
from xpu_test_utils import launch_test


res = 0
IS_WINDOWS = sys.platform == "win32"

for key in skip_dict:
skip_list = skip_dict[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_bmg:
skip_list += skip_dict_win_bmg[key]
res += launch_test(key, skip_list)

if os.name == "nt":
sys.exit(res)
else:
exit_code = os.WEXITSTATUS(res)
sys.exit(exit_code)
24 changes: 24 additions & 0 deletions test/xpu/run_test_with_skip_lnl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import os
import sys
from skip_list_common import skip_dict
from skip_list_win import skip_dict as skip_dict_win
from skip_list_win_lnl import skip_dict as skip_dict_win_lnl
from xpu_test_utils import launch_test


res = 0
IS_WINDOWS = sys.platform == "win32"

for key in skip_dict:
skip_list = skip_dict[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_lnl:
skip_list += skip_dict_win_lnl[key]
res += launch_test(key, skip_list)

if os.name == "nt":
sys.exit(res)
else:
exit_code = os.WEXITSTATUS(res)
sys.exit(exit_code)
Loading