|
10 | 10 | assert_raises, suppress_warnings, assert_raises_regex, assert_allclose
|
11 | 11 | )
|
12 | 12 |
|
| 13 | +COMPILERS =np.show_config(mode="dicts")["Compilers"] |
| 14 | +USING_CLANG_CL = COMPILERS["c"]["name"] == "clang-cl" |
| 15 | + |
13 | 16 | # Setup for optimize einsum
|
14 | 17 | chars = 'abcdefghij'
|
15 | 18 | sizes = np.array([2, 3, 4, 5, 4, 3, 2, 6, 5, 4, 3])
|
@@ -611,13 +614,23 @@ def check_einsum_sums(self, dtype, do_opt=False):
|
611 | 614 | [2.]) # contig_stride0_outstride0_two
|
612 | 615 |
|
613 | 616 | def test_einsum_sums_int8(self):
|
614 |
| - if sys.platform == 'darwin' and platform.machine() == 'x86_64': |
615 |
| - pytest.xfail('Fails on macOS x86-64 with Meson, see gh-23838') |
| 617 | + if ( |
| 618 | + (sys.platform == 'darwin' and platform.machine() == 'x86_64') |
| 619 | + or |
| 620 | + USING_CLANG_CL |
| 621 | + ): |
| 622 | + pytest.xfail('Fails on macOS x86-64 and when using clang-cl ' |
| 623 | + 'with Meson, see gh-23838') |
616 | 624 | self.check_einsum_sums('i1')
|
617 | 625 |
|
618 | 626 | def test_einsum_sums_uint8(self):
|
619 |
| - if sys.platform == 'darwin' and platform.machine() == 'x86_64': |
620 |
| - pytest.xfail('Fails on macOS x86-64 with Meson, see gh-23838') |
| 627 | + if ( |
| 628 | + (sys.platform == 'darwin' and platform.machine() == 'x86_64') |
| 629 | + or |
| 630 | + USING_CLANG_CL |
| 631 | + ): |
| 632 | + pytest.xfail('Fails on macOS x86-64 and when using clang-cl ' |
| 633 | + 'with Meson, see gh-23838') |
621 | 634 | self.check_einsum_sums('u1')
|
622 | 635 |
|
623 | 636 | def test_einsum_sums_int16(self):
|
|
0 commit comments