numba_dpex.utils.misc module

exception numba_dpex.utils.misc.IndeterminateExecutionQueueError

Bases: Exception

numba_dpex.utils.misc.assert_no_return(rettype)

Make sure the type of return is void/None.

@dppy.kernel does not allow users to return any value and this function raises TypeError when users do return something.

Args:

rettype: Numba type representing the return value.

Raises:
TypeError: Only None and types.void is allowed. In case

of any other type TypeError is raised.