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

Miscellaneous changes to compiler internals #1173

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

diptorupd
Copy link
Contributor

@diptorupd diptorupd commented Oct 12, 2023

  • Have you provided a meaningful PR description?

  • Changes to the kernel_launcher.KernelLaunchIRBuilder class constructor to make it easier to use from
    places other than the parfor_lowerer. Removed the need to pass a lowerer object and instead pass a context and builder.

  • Adds a new helper function populate_kernel_args_and_args_ty_arrays that populates arrays storing kernel args and kernel
    arg types.

  • We should not generate a cpython or a cfunc wrapper for a kernel decorated function.

  • The no_compile is also set to True as the kernel LLVM IR will not be compiled to an executable object code by Numba.
    Instead, numba-dpex will compile the LLVM IR to SPIR-V and generate a sycl::kernel_bundle.

  • 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?

Diptorup Deb added 2 commits October 12, 2023 18:03
    - Changes to the class constructor to make it easier to use from
      places other than the parfor_lowerer. Removed the need to pass
      a lowerer object and instead pass a context and builder.
    - Adds a new helper function populate_kernel_args_and_args_ty_arrays
      that populates arrays storing kernel args and kernel arg types.
    - We should not generate a cpython or a cfunc wrapper for a
      kernel decorated function.
    - The no_compile is also set to True as the kernel LLVM IR
      will not be compiled to an executable object code by Numba.
      Instead, numba-dpex will compile the LLVM IR to SPIR-V and
      generate a sycl::kernel_bundle.
@diptorupd diptorupd merged commit aaafcfa into main Oct 13, 2023
22 checks passed
@diptorupd diptorupd deleted the refactor/kernel_launcher_api branch October 13, 2023 02:06
github-actions bot added a commit that referenced this pull request Oct 13, 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.

1 participant