From 1570d896a9db783395debd97977c33ed1fb2280c Mon Sep 17 00:00:00 2001 From: Markus Holzer <markus.holzer@fau.de> Date: Mon, 24 Jun 2024 14:51:04 +0200 Subject: [PATCH] Make test thread safe --- tests/test_vectorization_specific.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_vectorization_specific.py b/tests/test_vectorization_specific.py index 749148b22..dcebeae60 100644 --- a/tests/test_vectorization_specific.py +++ b/tests/test_vectorization_specific.py @@ -226,14 +226,13 @@ def test_issue62(dtype, instruction_set, padding): dy = sp.Symbol("dy") src, dst, rhs = ps.fields(f"src, src_tmp, rhs: {dtype}[2D]", layout='fzyx') - up = ps.Assignment(src[0, 0], ((dy ** 2 * (src[1, 0] + src[-1, 0])) + up = ps.Assignment(dst[0, 0], ((dy ** 2 * (src[1, 0] + src[-1, 0])) + (dx ** 2 * (src[0, 1] + src[0, -1])) - (rhs[0, 0] * dx ** 2 * dy ** 2)) / (2 * (dx ** 2 + dy ** 2))) config = ps.CreateKernelConfig(data_type=dtype, default_number_float=dtype, - cpu_vectorize_info=opt, - skip_independence_check=True) + cpu_vectorize_info=opt) ast = ps.create_kernel(up, config=config) ast.compile() -- GitLab