Skip to content

[PROTON] Build Proton utilities that rely on SYCL at runtime instead of compile time && disable XPU support by default#4018

Merged
anmyachev merged 7 commits into
mainfrom
amyachev/issue4017
Apr 26, 2025
Merged

[PROTON] Build Proton utilities that rely on SYCL at runtime instead of compile time && disable XPU support by default#4018
anmyachev merged 7 commits into
mainfrom
amyachev/issue4017

Conversation

@anmyachev
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
@anmyachev anmyachev linked an issue Apr 25, 2025 that may be closed by this pull request
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
@anmyachev anmyachev changed the title [PROTON] Search for sycl headers only if icpx in path [PROTON] Build Proton utilities that rely on SYCL at runtime instead of compile time Apr 25, 2025
@anmyachev anmyachev marked this pull request as ready for review April 25, 2025 18:28
@anmyachev anmyachev requested review from jle-quel and pbchekin April 25, 2025 18:28
Comment on lines 82 to 83
find_library(ZE_TRACING_LIB NAMES ze_tracing_layer PATHS /usr/lib/x86_64-linux-gnu)
find_library(ZE_LOADER_LIB NAMES ze_loader PATHS /usr/lib/x86_64-linux-gnu)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

TODO: need to move to runtime build or or disable proton build for XPU if there are no corresponding headers

Copy link
Copy Markdown
Contributor

@pbchekin pbchekin left a comment

Choose a reason for hiding this comment

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

Python code looks good, one nit.

Comment thread third_party/intel/backend/driver.py Outdated
Comment thread third_party/proton/csrc/lib/Profiler/Xpupti/XpuptiProfiler.cpp Outdated
Comment thread third_party/proton/csrc/lib/Profiler/Xpupti/XpuptiProfiler.cpp Outdated
Comment thread third_party/proton/csrc/lib/Profiler/Xpupti/XpuptiProfiler.cpp Outdated
Comment thread third_party/proton/csrc/lib/Profiler/Xpupti/XpuptiProfiler.cpp Outdated
Co-authored-by: Pavel Chekin <pavel.chekin@intel.com>
@anmyachev
Copy link
Copy Markdown
Contributor Author

@pbchekin do you know why DCO check failed?

@pbchekin
Copy link
Copy Markdown
Contributor

@pbchekin do you know why DCO check failed?

Looks like the new check is now mandatory for our organization. Basically this check requires "Signed-off-by" statement in each commit, you can amend commits and it will pass.

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
@anmyachev anmyachev changed the title [PROTON] Build Proton utilities that rely on SYCL at runtime instead of compile time [PROTON] Build Proton utilities that rely on SYCL at runtime instead of compile time && disable XPU support by default Apr 26, 2025
@anmyachev
Copy link
Copy Markdown
Contributor Author

@pbchekin could you also review the last commit?

Copy link
Copy Markdown
Contributor

@pbchekin pbchekin left a comment

Choose a reason for hiding this comment

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

Looks good!

@anmyachev anmyachev merged commit bdd0656 into main Apr 26, 2025
10 of 11 checks passed
@anmyachev anmyachev deleted the amyachev/issue4017 branch April 26, 2025 20:26
anmyachev added a commit that referenced this pull request Apr 28, 2025
…on14XpuptiProfilerE` (#4035)

Test with pip CI (old):
https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/14684390264/job/41211129850
new:
https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/14705967044
(passed)

The problem started to appear after:
#4018

This change is necessary for `import triton.profiler` to work even if
the xpu profiler is not built, which happens for example in tutorial 9.

---------

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
david-hls pushed a commit to david-hls/intel-xpu-backend-for-triton that referenced this pull request Jun 18, 2025
When processing loops we were incorrectly setting all the local def as
livein.
Since part of the code assumes that only livein variable can be loop
carried dependency that was causing a mismatch in the logic. Change it
to enforce that local def not livein cannot be loop carried.
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.

Triton build failure with oneapi 2025.1 on main branch

2 participants