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

Parfor lowering as kernels and dpnp ufunc compilation to kernels #957

Merged
merged 21 commits into from
Mar 6, 2023

Conversation

diptorupd
Copy link
Collaborator

  • Have you provided a meaningful PR description?

The PR is the initial set of changes to support dpnp functions and vector-style expressions in numba-dpex.

  • A large subset of Numba's Numpy ufuncs that can be lowered to a SPIR-V supporting device and are also supported by dpnp now can be compiled using numba-dpex.

  • Dpnp offloading follows the compute follows data programming model.

  • New infrastructure for lowering parfors to kernels

  • Have you added a test, reproducer or referred to an issue with a reproducer?

  • Have you tested your changes locally for CPU and GPU devices?

  • Have you made sure that new changes do not introduce compiler warnings?

  • If this PR is a work in progress, are you filing the PR as a draft?

   - DPEXRTQueue_CreateFromFilterString: to help create a
     DPCTLSyclQueueRef object from a filter string.
   - DpexrtQueue_SubmitRange: to submit a ranged kernel.
@diptorupd diptorupd force-pushed the feature/dpnp_parfor_v2 branch 3 times, most recently from d107b63 to 671393d Compare March 4, 2023 21:05
   The code is based on the existing DpexLowerer in
   core/passes/lowerer, but refactored and cleaned up a bit.
      - Add the ParforLoweringPass
      - Utility modules kernel_builder and kernel_launcher
    - Dpnp expressions that rely on the __array_ufunc__ method
      of DpnpNdArray do not infer the usm_type and device type
      of the LHS of the expression.

      The pass is an incomplete implementation of an algorithm
      that traverses all the basic blocks and checks CFD compliance
      and fixes the LHS of all parfors created from dpnp array
      expressions and pranges.
   - The new DpjitPipeline uses the backported parfor passes
     with the new parfor lowerer and parfor compute follows data
     legalization pass.
   - dpjit decorator now used DpjitCompiler.
@diptorupd diptorupd force-pushed the feature/dpnp_parfor_v2 branch 3 times, most recently from f0557a9 to dc25803 Compare March 5, 2023 00:43
Copy link
Contributor

@mingjie-intel mingjie-intel left a comment

Choose a reason for hiding this comment

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

Good to go.

@diptorupd diptorupd merged commit 5a2238b into main Mar 6, 2023
@diptorupd diptorupd deleted the feature/dpnp_parfor_v2 branch March 6, 2023 03:00
github-actions bot added a commit that referenced this pull request Mar 6, 2023
Parfor lowering as kernels and dpnp ufunc compilation to kernels 5a2238b
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.

3 participants