Skip to content

Conversation

@anmyachev
Copy link
Contributor

@anmyachev anmyachev commented Oct 24, 2025

The current method we agreed on with the PTI team is to copy the files (which are necessary for building the wheels and which are currently in build_pti_data folder) from their internal repo, since they currently do not plan to opensource these files.

The current way to install dev pti and use it for Proton (I'll try to simplify it in the future):

./scripts/install-pti.sh --build-level-zero
PTI_LIBS_DIR=$(python ./scripts/pti_lib.py)
export LD_LIBRARY_PATH=${{ env.PTI_LIBS_DIR }}:$LD_LIBRARY_PATH

@anmyachev anmyachev linked an issue Oct 24, 2025 that may be closed by this pull request
Signed-off-by: Anatoly Myachev <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
- name: Build PTI
run: |
./scripts/install-pti.sh --build-level-zero
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a build-time dependency on level zero 1.24.2

export LD_LIBRARY_PATH=$PTI_LIBS_DIR:$LD_LIBRARY_PATH
export TRITON_XPUPTI_LIB_PATH=$PTI_LIBS_DIR
export LD_LIBRARY_PATH=${{ env.PTI_LIBS_DIR }}:$LD_LIBRARY_PATH
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Otherwise, libpti_view.so from the DLE package will be loaded.

@@ -0,0 +1,49 @@
cmake_minimum_required(VERSION 3.20)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All files in build_pti_data folder are provided by the PTI team with my minor modifications.

@anmyachev anmyachev marked this pull request as ready for review October 29, 2025 10:48
@anmyachev anmyachev merged commit e89a6f7 into main Oct 29, 2025
23 checks passed
@anmyachev anmyachev deleted the amyachev/issue5278 branch October 29, 2025 11:26
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.

Build PTI wheels from sources

3 participants