From 59c13fb1b80a946469b3892d20b72195df8d4251 Mon Sep 17 00:00:00 2001 From: Michael Kuron <mkuron@icp.uni-stuttgart.de> Date: Wed, 27 Apr 2022 22:13:33 +0200 Subject: [PATCH] Fix test_alignment_of_different_layouts on architectures with 128-bit vectors --- pystencils_tests/test_aligned_array.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pystencils_tests/test_aligned_array.py b/pystencils_tests/test_aligned_array.py index 8c7222c38..33f435a48 100644 --- a/pystencils_tests/test_aligned_array.py +++ b/pystencils_tests/test_aligned_array.py @@ -59,13 +59,13 @@ def test_alignment_of_different_layouts(): byte_offset = 8 for tries in range(16): # try a few times, since we might get lucky and get randomly a correct alignment arr = create_numpy_array_with_layout((3, 4, 5), layout=(0, 1, 2), - alignment=True, byte_offset=byte_offset) + alignment=8*4, byte_offset=byte_offset) assert is_aligned(arr[offset, ...], 8*4, byte_offset) arr = create_numpy_array_with_layout((3, 4, 5), layout=(2, 1, 0), - alignment=True, byte_offset=byte_offset) + alignment=8*4, byte_offset=byte_offset) assert is_aligned(arr[..., offset], 8*4, byte_offset) arr = create_numpy_array_with_layout((3, 4, 5), layout=(2, 0, 1), - alignment=True, byte_offset=byte_offset) + alignment=8*4, byte_offset=byte_offset) assert is_aligned(arr[:, 0, :], 8*4, byte_offset) -- GitLab