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

[FRONTEND] Handle LD_LIBRARY_PATH #2892

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

atalman
Copy link
Collaborator

@atalman atalman commented Jan 8, 2024

cherry-pick into release/2.2.x branch.
We need to Release to 2.2.x branch rather then 2.2.X: https://github.com/pytorch/pytorch/blob/release/2.2/.github/scripts/build_triton_wheel.py#L90

If libcuda.so can not be found using ldconfig -P, check if LD_LIBRARY_PATH environment variable is defined and search for it there

Test plan:
https://colab.research.google.com/drive/16Kd88j-nFS4iMI-UfJS5rukH42L6UuyP?usp=sharing

Fixes #2507

If `libcuda.so` can not be found using `ldconfig -P`, check if
`LD_LIBRARY_PATH` environment variable is defined and search for it
there

Test plan:
https://colab.research.google.com/drive/16Kd88j-nFS4iMI-UfJS5rukH42L6UuyP?usp=sharing

Fixes triton-lang#2507
@atalman atalman requested a review from ptillet as a code owner January 8, 2024 22:05
@atalman atalman changed the title Version: 2.2.0 [FRONTEND] Handle LD_LIBRARY_PATH Jan 8, 2024
@jlebar jlebar merged commit 0e7b97b into triton-lang:release/2.2.x Jan 8, 2024
pingzhuu pushed a commit to siliconflow/triton that referenced this pull request Apr 2, 2024
cherry-pick into release/2.2.x branch.

If `libcuda.so` can not be found using `ldconfig -P`, check if
`LD_LIBRARY_PATH` environment variable is defined and search for it
there

Test plan:

https://colab.research.google.com/drive/16Kd88j-nFS4iMI-UfJS5rukH42L6UuyP?usp=sharing

Fixes triton-lang#2507

Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
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.

3 participants