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

add rpath of sycl libraries location in python env to avoid manually activating sycl environment #857

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jingxu10
Copy link

as title

Comment on lines +86 to +90
if(LINUX)
target_link_options(${lib} PRIVATE "-Wl,-rpath,$ORIGIN")
target_link_options(${lib} PRIVATE "-Wl,-rpath,$ORIGIN/../../../../")
target_link_options(${lib} PRIVATE "-Wl,--disable-new-dtags")
endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you hope PyTorch XPU could work at runtime without sourcing oneAPI bundle?

Copy link
Author

Choose a reason for hiding this comment

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

yes, when pip packages are released.
The PR in PyTorch is pytorch/pytorch#134912

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.

2 participants