Skip to content

Controllable fallback#40

Merged
PokhodenkoSA merged 8 commits into
IntelPython:mainfrom
1e-to:control_fallback
Dec 11, 2020
Merged

Controllable fallback#40
PokhodenkoSA merged 8 commits into
IntelPython:mainfrom
1e-to:control_fallback

Conversation

@1e-to

@1e-to 1e-to commented Dec 2, 2020

Copy link
Copy Markdown
Contributor

In this PR the initial realization of user controllable fallback
It is enable to config fallback as environment variable NUMBA_DPPY_FALLBACK_OPTION=1 or a parallel jit option like : parallel={'offload':True, 'fallback':True}

Comment thread numba_dppy/target_dispatcher.py Outdated
@1e-to

1e-to commented Dec 11, 2020

Copy link
Copy Markdown
Contributor Author

Default behavior changed - fallback on cpu always happens
If you need to disable fallback, set the environment variable NUMBA_DPPY_FALLBACK_OPTION

Comment thread numba_dppy/target_dispatcher.py Outdated
Comment thread numba_dppy/config.py Outdated
Comment thread numba_dppy/tests/test_controllable_fallback.py Outdated
Comment thread numba_dppy/tests/test_controllable_fallback.py Outdated
Comment thread numba_dppy/tests/test_controllable_fallback.py Outdated
Comment thread numba_dppy/tests/test_controllable_fallback.py Outdated
Comment thread numba_dppy/tests/test_controllable_fallback.py Outdated

@PokhodenkoSA PokhodenkoSA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@PokhodenkoSA

Copy link
Copy Markdown
Contributor

Docs for controllable fallback. In separate PR.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants