Skip to content

Commit

Permalink
add patch to SciPy-bundle 2024.05 that fixes test failure on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianAchilles committed Oct 5, 2024
1 parent f273295 commit 175e9af
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,15 @@ exts_list = [
'patches': [
'scipy-1.11.1_disable-tests.patch',
'scipy-1.11.1_xfail-aarch64_test_maxiter_worsening.patch',
'scipy-1.13.1_TestLinprogIPSparse.patch',
],
'checksums': [
{'scipy-1.13.1.tar.gz': '095a87a0312b08dfd6a6155cbbd310a8c51800fc931b8c0b84003014b874ed3c'},
{'scipy-1.11.1_disable-tests.patch': '906bfb03397d94882ccdc1b93bc2c8e854e0e060c2d107c83042992394e6a4af'},
{'scipy-1.11.1_xfail-aarch64_test_maxiter_worsening.patch':
'918c8e6fa8215d459126f267764c961bde729ea4a116c7f6287cddfdc58ffcea'},
{'scipy-1.13.1_TestLinprogIPSparse.patch':
'7213c2690b76c69f7e7103529cea3fa2098c05fbea556f04325fab9ca8c065f5'},
],
}),
('numexpr', '2.10.0', {
Expand Down
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.")

0 comments on commit 175e9af

Please sign in to comment.