Skip to content

Conversation

@mrodden
Copy link

@mrodden mrodden commented Mar 21, 2025

Requires 0e599b747dbd3fc6 from rocm/xla

This also requires some changes on the XLA side
for the paths and such to have any effect.

The plugin init now looks for a rocm python
package install and extracts ROCm toolkit paths
from the python packages that it finds. We hand
these into the XLA portions of the plugin via
environment variables to avoid changing any interfaces like protobuf or PJRT C APIs.

We also have to patch the rpath in the shared object files included in the plugin and kernel wheels so they look relative to their install path just like the cuda based plugin objects do.

Some other changes are fixing missing dynamic link libraries and also adding an optional feature target to pull in rocm python dependencies for the plugin.

(cherry picked from commit 61b9046)

Requires 0e599b747dbd3fc6 from rocm/xla

This also requires some changes on the XLA side
for the paths and such to have any effect.

The plugin init now looks for a `rocm` python
package install and extracts ROCm toolkit paths
from the python packages that it finds. We hand
these into the XLA portions of the plugin via
environment variables to avoid changing any interfaces
like protobuf or PJRT C APIs.

We also have to patch the rpath in the shared object files
included in the plugin and kernel wheels so they look
relative to their install path just like the cuda based
plugin objects do.

Some other changes are fixing missing dynamic link libraries
and also adding an optional feature target to pull in
rocm python dependencies for the plugin.

(cherry picked from commit 61b9046)
@mrodden mrodden force-pushed the rocm-wheels-0.4.35 branch from 732af71 to 8afc41c Compare March 21, 2025 20:25
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