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

Patch for with context #96

Closed

Conversation

PokhodenkoSA
Copy link

@PokhodenkoSA PokhodenkoSA commented Nov 9, 2020

This modifications make jit() decorator use TargetDispatcher from dppl.
Changes made in #57 by @AlexanderKalistratov and @1e-to.

This PR is for discussion about refactoring this modifications into Numba extension.

This modifications make jit() decorator use TargetDispatcher from dppl.
Changes made in numba#57 by @AlexanderKalistratov and @1e-to.
@PokhodenkoSA PokhodenkoSA mentioned this pull request Nov 9, 2020
50 tasks
@reazulhoque
Copy link

We want to achieve the following:

@njit
def foo():

# The with context should be enough to dispatch code for the specified target
with dpctl.device_context("opencl:gpu"):
    foo()

@PokhodenkoSA
Copy link
Author

Should be eliminated by IntelPython/numba-dpex#271.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants