8000 Add x86-simd-sort accelerated sorting by sterrettm2 · Pull Request #149362 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Add x86-simd-sort accelerated sorting #149362

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
< 8000 div class="js-split-diff-view d-flex flex-1">
Prev Previous commit
Next Next commit
Set reference_in_float to False for the inductor testing
  • Loading branch information
sterrettm2 committed May 6, 2025
commit 9f9599b8ec1175e224b0ffdd6e975b6932cc7e98
9 changes: 9 additions & 0 deletions test/inductor/test_torchinductor_opinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ def wrapper_noop_set_seed(op, *args, **kwargs):
("nn.functional.interpolate.bicubic", u8): {"atol": 1, "rtol": 0},
# High atol due to precision loss
("nn.functional.interpolate.bicubic", f32): {"atol": 5e-3, "rtol": 0},
# reference_in_float can cause erroneous failures in sorting tests
"argsort": {"reference_in_float": False},
"sort": {"reference_in_float": False},
}

inductor_override_kwargs["cuda"] = {
Expand Down Expand Up @@ -504,6 +507,9 @@ def wrapper_noop_set_seed(op, *args, **kwargs):
"atol": 1e-4,
"rtol": 7e-1,
},
# reference_in_float can cause erroneous failures in sorting tests
"argsort": {"reference_in_float": False},
"sort": {"reference_in_float": False},
}

inductor_override_kwargs["xpu"] = {
Expand Down Expand Up @@ -660,6 +666,9 @@ def wrapper_noop_set_seed(op, *args, **kwargs):
("nn.functional.unfold", f16): {
"reference_in_float": True,
},
# reference_in_float can cause erroneous failures in sorting tests
"argsort": {"reference_in_float": False},
"sort": {"reference_in_float": False},
}
if TEST_WITH_ROCM:
inductor_override_kwargs["cuda"].update(
Expand Down
0