-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add patch to SciPy-bundle 2024.05 that fixes test failure on aarch64
- Loading branch information
1 parent
f273295
commit 175e9af
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
easybuild/easyconfigs/s/SciPy-bundle/scipy-1.13.1_TestLinprogIPSparse.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
disable problematic tests | ||
TestLinprogIPSparse::test_bug_6139 + TestLinprogIPSparsePresolve::test_bug_6139 fail on Grace Hopper aarch64 | ||
author: Sebastian Achilles (Juelich Supercomputing Centre) | ||
|
||
diff --git a/scipy/optimize/tests/test_linprog.py b/scipy/optimize/tests/test_linprog.py | ||
index 49a0f8de5..8ffbb0b47 100644 | ||
--- a/scipy/optimize/tests/test_linprog.py | ||
+++ b/scipy/optimize/tests/test_linprog.py | ||
@@ -1977,6 +1977,10 @@ if has_umfpack: | ||
class TestLinprogIPSparse(LinprogIPTests): | ||
options = {"sparse": True, "cholesky": False, "sym_pos": False} | ||
|
||
+ @pytest.mark.skipif( | ||
+ platform.machine() == 'aarch64', | ||
+ reason="Fails on aarch64" | ||
+ ) | ||
@pytest.mark.xfail_on_32bit("This test is sensitive to machine epsilon level " | ||
"perturbations in linear system solution in " | ||
"_linprog_ip._sym_solve.") | ||
@@ -2027,6 +2031,10 @@ class TestLinprogIPSparse(LinprogIPTests): | ||
class TestLinprogIPSparsePresolve(LinprogIPTests): | ||
options = {"sparse": True, "_sparse_presolve": True} | ||
|
||
+ @pytest.mark.skipif( | ||
+ platform.machine() == 'aarch64', | ||
+ reason="Fails on aarch64" | ||
+ ) | ||
@pytest.mark.xfail_on_32bit("This test is sensitive to machine epsilon level " | ||
"perturbations in linear system solution in " | ||
"_linprog_ip._sym_solve.") |