numba_dpex.kernel_api.flag_enum¶
Provides a FlagEnum class to help distinguish IntEnum types that numba_dpex intends to use as Integer literal types inside the compiler type inferring infrastructure.
Overview¶
Classes¶
- class FlagEnum¶
Bases:
enum.IntEnum
Helper class to distinguish IntEnum types that numba_dpex should consider as Numba Literal types.
Overview
Members
- classmethod basetype() int ¶
Returns an dummy int object that helps numba_dpex infer the type of an instance of a FlagEnum class.
- Returns:
Dummy int value
- Return type:
int