Skip to content

Include PJRT headers in jax/jaxlib wheel #42471

Open

Description

@nicholasjng

Loosely related to #37033.

I'd like for JAX to ship the PJRT C API headers in the jax/jaxlib wheels if possible. Right now, I'm downloading that header via CMake, tracking jax's XLA commit from MODULE.bazel by hand (see https://github.com/nicholasjng/palladium).

For a consumer building a PJRT plugin, this creates a bit of friction. With the PJRT C API headers in the wheel, I could grab them from the venv just like I do with JAX's FFI headers, and remain ignorant of the XLA build details otherwise.

I don't think it should cost a lot, maybe a filegroup and an installation directive in XLA's and jaxlib's Bazel setup, but I have not looked at it in a while. If this is possible and feasible, I can prepare a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions