Commit 0c9b413615a by Pierre Augier

Add a warning: jit with unimportable accelerator

parent 8abfe551f47
......@@ -227,7 +227,10 @@ class JIT:
if not can_import_accelerator(
# TODO: add a warning if backend is specified by user
"Cannot accelerate a jitted function because "
f"{self.backend.name_capitalized} is not importable."
return func
func_name = func.__name__
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment