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

Remove indepence check for some kernels

parent 86a6112e
No related branches found
No related tags found
1 merge request!391Thread safety
...@@ -450,5 +450,6 @@ def create_boundary_kernel(field, index_field, stencil, boundary_functor, target ...@@ -450,5 +450,6 @@ def create_boundary_kernel(field, index_field, stencil, boundary_functor, target
dir_symbol = TypedSymbol("dir", np.int32) dir_symbol = TypedSymbol("dir", np.int32)
elements += [SympyAssignment(dir_symbol, index_field[0]('dir'))] elements += [SympyAssignment(dir_symbol, index_field[0]('dir'))]
elements += boundary_functor(field, direction_symbol=dir_symbol, index_field=index_field) elements += boundary_functor(field, direction_symbol=dir_symbol, index_field=index_field)
config = CreateKernelConfig(index_fields=[index_field], target=target, **kernel_creation_args) config = CreateKernelConfig(index_fields=[index_field], target=target, skip_independence_check=True,
**kernel_creation_args)
return create_kernel(elements, config=config) return create_kernel(elements, config=config)
...@@ -232,7 +232,8 @@ def test_issue62(dtype, instruction_set, padding): ...@@ -232,7 +232,8 @@ def test_issue62(dtype, instruction_set, padding):
config = ps.CreateKernelConfig(data_type=dtype, config = ps.CreateKernelConfig(data_type=dtype,
default_number_float=dtype, default_number_float=dtype,
cpu_vectorize_info=opt) cpu_vectorize_info=opt,
skip_independence_check=True)
ast = ps.create_kernel(up, config=config) ast = ps.create_kernel(up, config=config)
ast.compile() ast.compile()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment