-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
Description
The usage model needs to be consistent. Earlier the approach was to import numba and enable numba_dpex if inputs are usm ndarray.
Lately we revised the approach, and enable numba_dpex explicitly via import. By going this route, the implementation is numba_dpex need to be self-contained, and alias necessary attributes from numba.
The goal is to have a model that minimizes code changes by going from CPU script to heterogeneous script. It means in particular that we have to avoid situations when user needs to import both numba and numba_dpex.
Examples of aliases needed in numba_dpex
- primitive types - float32, int64, etc (Create aliases to numba's primitive data types in numba-dpex #830)
- vectorize
- njit (Initial set of changes to add a new dpjit decorator to support dpnp arrays #887)