Skip to content

Commit

Permalink
fix no_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
havogt committed Jan 4, 2024
1 parent 70467bd commit ec57a0d
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,7 @@
@ppi.program_executor
def no_backend(program: itir.FencilDefinition, *args: Any, **kwargs: Any) -> None:
"""Temporary default backend to not accidentally test the wrong backend."""
raise ValueError("No backend selected. Backend selection is mandatory in tests.")
"""Temporary default backend to not accidentally test the wrong backend."""

@property
def kind(self) -> type[ppi.ProgramExecutor]:
return ppi.ProgramExecutor

def __call__(program: itir.FencilDefinition, *args: Any, **kwargs: Any):
raise ValueError("No backend selected! Backend selection is mandatory in tests.")
raise ValueError("No backend selected! Backend selection is mandatory in tests.")


OPTIONAL_PROCESSORS = []
Expand Down

0 comments on commit ec57a0d

Please sign in to comment.