diff --git a/loopy/auto_test.py b/loopy/auto_test.py index 91ef62d789fd52654abbd1b00f60d4d1e93beef5..4f7dfbed51fa4bc2477fd38669e5b4e7d1d13029 100644 --- a/loopy/auto_test.py +++ b/loopy/auto_test.py @@ -677,12 +677,6 @@ def auto_test_vs_ref( rates += " {:g} {}/s".format(cnt/elapsed_wall, lbl) if not quiet: - def format_float_or_none(v): - if v is None: - return "" - else: - return "%g" % v - print("elapsed: %s s event, %s s marker-event %s s wall " "(%d rounds)%s" % ( format_float_or_none(elapsed_event), diff --git a/loopy/compiled.py b/loopy/compiled.py index f9313c6c95612ddba6566d7c8175d998e8312147..0fa18eacbc3a16059e06c33202c91f89cc39ef64 100644 --- a/loopy/compiled.py +++ b/loopy/compiled.py @@ -31,11 +31,11 @@ class CompiledKernel(PyOpenCLKernelExecutor): """ .. automethod:: __call__ """ - def __init__(self, context, kernel): + def __init__(self, context, kernel, entrypoint): from warnings import warn warn("CompiledKernel is deprecated. Use LoopKernel.__call__ directly.", DeprecationWarning, stacklevel=2) - super().__init__(context, kernel) + super().__init__(context, kernel, entrypoint) # }}}