Skip to content

Commit

Permalink
Merge pull request #569 from OP2/silence_pymbolic_warning
Browse files Browse the repository at this point in the history
Silence Pymbolic warning pending proper fix
  • Loading branch information
dham authored Sep 25, 2019
2 parents 97e4b67 + 87f1ce0 commit 99d10ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyop2/codegen/rep2loopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,10 @@ def generate(builder, wrapper_name=None):

if isinstance(kernel._code, loopy.LoopKernel):
knl = kernel._code
wrapper = loopy.register_callable_kernel(wrapper, knl)
import warnings
with warnings.catch_warnings():
warnings.simplefilter("ignore")
wrapper = loopy.register_callable_kernel(wrapper, knl)
from loopy.transform.callable import _match_caller_callee_argument_dimension_
wrapper = _match_caller_callee_argument_dimension_(wrapper, knl.name)
wrapper = loopy.inline_callable_kernel(wrapper, knl.name)
Expand Down

0 comments on commit 99d10ca

Please sign in to comment.