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

Everything is really good now

parent 2eafcc6c
No related branches found
No related tags found
No related merge requests found
Pipeline #37519 failed
......@@ -63,7 +63,7 @@ def test_vectorized_abs(instruction_set, dtype):
def test_strided(instruction_set, dtype):
npdtype = np.float64 if dtype == 'double' else np.float32
type_string = "float64" if dtype == 'double' else "float32"
f, g = ps.fields(f"f, g : {type_string}[2D]")
update_rule = [ps.Assignment(g[0, 0], f[0, 0] + f[-1, 0] + f[1, 0] + f[0, 1] + f[0, -1] + 42.0)]
if 'storeS' not in get_vector_instruction_set(dtype, instruction_set) and instruction_set not in ['avx512', 'rvv'] and not instruction_set.startswith('sve'):
......@@ -84,7 +84,8 @@ def test_strided(instruction_set, dtype):
ref_config = pystencils.config.CreateKernelConfig(default_number_float=type_string)
ref_func = ps.create_kernel(update_rule, config=ref_config).compile()
arr = np.full((23 + 2, 17 + 2), 0.13).astype(npdtype)
size = (25, 19)
arr = np.reshape(np.linspace(0, 1, size[0] * size[1]), size).astype(npdtype)
dst = np.zeros_like(arr, dtype=npdtype)
ref = np.zeros_like(arr, dtype=npdtype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment