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

[NATIVECPU] Handle oneAPI Construction Kit integration in runtime #1152

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

PietroGhg
Copy link
Contributor

intel/llvm PR: intel/llvm#11614

With intel/llvm#11614 we start integrating the oneAPI Construction Kit. If the OCK is enabled, it creates the work item loops in the compiler, so it is not necessary to execute the loops in the adapter.

@PietroGhg PietroGhg requested a review from a team as a code owner December 4, 2023 11:58
@fabiomestre fabiomestre changed the base branch from adapters to main December 5, 2023 16:40
@fabiomestre
Copy link
Contributor

I have updated the target branch of this PR from the adapters branch to the main branch.
Development in UR is moving back to main. The adapters branch will soon be deleted.

@PietroGhg
Copy link
Contributor Author

I have updated the target branch of this PR from the adapters branch to the main branch. Development in UR is moving back to main. The adapters branch will soon be deleted.

Thanks @fabiomestre

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (364a299) 15.73% compared to head (0da76bf) 15.74%.
Report is 2 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1152   +/-   ##
=======================================
  Coverage   15.73%   15.74%           
=======================================
  Files         223      223           
  Lines       31459    31459           
  Branches     3542     3542           
=======================================
+ Hits         4951     4952    +1     
+ Misses      26457    26456    -1     
  Partials       51       51           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@PietroGhg PietroGhg added the ready to merge Added to PR's which are ready to merge label Jan 4, 2024
@kbenzie kbenzie merged commit eddda12 into oneapi-src:main Jan 24, 2024
51 checks passed
sommerlukas pushed a commit to intel/llvm that referenced this pull request Jan 25, 2024
This PR adds support to barriers by integrating LLVM passes from the
[oneAPI Construction
Kit](https://github.com/codeplaysoftware/oneapi-construction-kit). The
OCK is fetched via CMake when the Native CPU plug-in is enabled, and can
optionally be disabled through the `NATIVE_CPU_USE_OCK` CMake option.
When the OCK is available, the `NATIVECPU_USE_OCK` definition is set for
the targets defined in `llvm/lib/SYCLLowerIR`.

This PR also refactors the pass pipeline for Native CPU, making it so
all of passes relevant to Native CPU are run in the `clang` invocation
that lowers the IR to the target ISA, this is done to allow correct
handling of barriers with functions declared with `SYCL_EXTERNAL`.

Unified Runtime PR:
oneapi-src/unified-runtime#1152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Added to PR's which are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants