Skip to content
Snippets Groups Projects
Commit 063c10d0 authored by Markus Holzer's avatar Markus Holzer
Browse files

Skip Vectorisation test if arch is not avx

parent 197ddd4e
No related branches found
No related tags found
1 merge request!192FIX pystencils install bug
Pipeline #28468 failed
......@@ -6,6 +6,9 @@ from pystencils.backends.simd_instruction_sets import get_supported_instruction_
from pystencils.cpu.vectorization import vectorize
from pystencils.fast_approximation import insert_fast_sqrts, insert_fast_divisions
from pystencils.transformations import replace_inner_stride_with_one
from pystencils.backends.simd_instruction_sets import get_supported_instruction_sets
supported_instruction_sets = get_supported_instruction_sets() if get_supported_instruction_sets() else []
def test_vector_type_propagation():
......@@ -27,6 +30,8 @@ def test_vector_type_propagation():
np.testing.assert_equal(dst[1:-1, 1:-1], 2 * 10.0 + 3)
@pytest.mark.skipif('avx' in supported_instruction_sets,
reason="This test case is specifically for AVX architectures")
def test_inplace_update():
shape = (9, 9, 3)
arr = np.ones(shape, order='f')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment