You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Importing cpu_dispatcher modifies global state #89
Tests numba.dppl.tests fails. It seems that importing cpu_dispatcher modifies some global state. It changes behavior of numba.
Possible solution is to import cpu_dispatcher when dppl is imported.
#90 removes back CPUDispatcher from cpu_dispatcher.py and return it to core/registry.py. When core.registry is imported the desired global state is achieved.
The global state modification is numba.core.registry.dispatcher_registry['cpu'] = CPUDispatcher. It is the modification which was performed when cpu_dispatcher was imported.
Activity
PokhodenkoSA commentedon Nov 6, 2020
#90 removes back CPUDispatcher from
cpu_dispatcher.pyand return it tocore/registry.py. Whencore.registryis imported the desired global state is achieved.The global state modification is
numba.core.registry.dispatcher_registry['cpu'] = CPUDispatcher. It is the modification which was performed when cpu_dispatcher was imported.