Skip to content

Commit 9bfc00b

Browse files
committed
misc: Linting
1 parent a85c6f5 commit 9bfc00b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

devito/passes/iet/errors.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
from devito.ir.iet import (
88
Break, Call, Conditional, DummyExpr, EntryFunction, FindNodes, FindSymbols, Iteration,
9-
List, Return, Transformer, KernelLaunch, make_callable, retrieve_iteration_tree
9+
KernelLaunch, List, Return, Transformer, make_callable
1010
)
1111
from devito.passes.iet.engine import iet_pass
1212
from devito.symbolics import CondEq, MathFunction
1313
from devito.tools import dtype_to_ctype
1414
from devito.types import Eq, Inc, LocalObject, Symbol
1515

16-
__all__ = ['check_stability', 'check_launch', 'error_mapper']
16+
__all__ = ['check_launch', 'check_stability', 'error_mapper']
1717

1818

1919
def check_stability(graph, options=None, rcompile=None, sregistry=None, **kwargs):
@@ -102,15 +102,15 @@ def _check_stability(iet, wmovs=(), rcompile=None, sregistry=None):
102102
return iet, {'efuncs': efuncs, 'includes': includes}
103103

104104

105-
def check_launch(graph, options={}, **kwargs):
105+
def check_launch(graph, options=None, **kwargs):
106106
"""
107107
Insert the CHECK_LAUNCH macro if errctl is set to ensure graceful handling of
108108
failed kernel launches. This macro should only be inserted if the kernel is
109109
directly within a loop, as compilation will fail otherwise.
110110
"""
111-
if not options.get('errctl', False):
111+
if options is None or not options.get('errctl', False):
112112
return
113-
113+
114114
langbb = kwargs['langbb']
115115

116116
definition = make_launch_macros(langbb)

0 commit comments

Comments
 (0)