Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Importing cpu_dispatcher modifies global state #89

Closed

Description

@PokhodenkoSA

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.

Originally posted by @PokhodenkoSA in #84 (comment)

Activity

  1. PokhodenkoSA commented on Nov 6, 2020

    @PokhodenkoSA
    Author

    #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions