Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numba-mlir integration #1130

Closed
wants to merge 5 commits into from

Conversation

Hardcode84
Copy link
Contributor

  • Add use_mlir option to decorator with proper target options support
  • Insert mlir parfor lowering passe if flag is set
  • Update some prange tests
  • One can use NUMBA_MLIR_LOG_GPU_RUNTIME_CALLS=1 to check if numba-mlir gpu runtime was actually invoked

@@ -155,6 +155,7 @@ def dpjit(*args, **kws):
kws.update({"nopython": True})
kws.update({"parallel": True})
kws.update({"pipeline_class": DpjitCompiler})
kws.update({"_target": "dpex"})
Copy link
Collaborator

Choose a reason for hiding this comment

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

I ran into a problem with this change previously (see the FIXME note few lines below). The dpnp overloads are right now added to the CPUTarget and changing dpjit to use DpexTarget makes numba not locate the dpnp overloads.
#1027 needs to be completed first before we can do the change.

@diptorupd
Copy link
Collaborator

Not being considered at this point, we will revive again if we consider integration in the future.

@diptorupd diptorupd closed this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants