Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gulsumgudukbay
Copy link
Contributor

This PR is for patching the installed jaxlib from dist_packages to correctly find the kernels if ROCm 7 is used. It is necessary to be able to fix many unit tests (which especially use the hipsolver kernels).
The patch is currently located in the third_party directory, but may be moved in the future. If it is moved, don't forget to modify the Dockerfile patch mount paths.

@gulsumgudukbay gulsumgudukbay requested a review from mrodden July 2, 2025 05:08
@gulsumgudukbay
Copy link
Contributor Author

fixing the path and dynamically finding the path in a second commit...

@gulsumgudukbay gulsumgudukbay requested a review from Ruturaj4 July 2, 2025 14:46
major_version=$(echo "$ROCM_VERSION" | cut -d. -f1) && \
if [ "$major_version" -ge 7 ]; then \
echo "Applying patch for ROCm $ROCM_VERSION..."; \
dist_packages=$(python3 -c "import sysconfig; print(sysconfig.get_paths()['purelib'])") && \
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

@gulsumgudukbay gulsumgudukbay requested a review from Ruturaj4 July 7, 2025 16:41
Copy link
Contributor

@Ruturaj4 Ruturaj4 left a comment

Choose a reason for hiding this comment

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

LGTM

@Ruturaj4 Ruturaj4 merged commit fb3074b into master Jul 7, 2025
8 of 10 checks passed
@Ruturaj4 Ruturaj4 deleted the namespace_patch_dockerfile branch July 8, 2025 02:38
@charleshofer charleshofer mentioned this pull request Aug 18, 2025
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.

4 participants