-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JAX windows ci build error : missing stablehlo C API symbols (#2530)
Issue: JAX windows build is failing because of missing stablehlo C API symbols https://github.com/google/jax/actions/runs/10739809804/job/29786443538 root cause: `StablehloApi.h` defs has function overloads. Compiler does name mangling (decorating function names with additional information). These symbols are missing in JAX APIs, JAX only allowlist symbol exports for symbols starting with `stablehlo`, but the mangled c++ names don't have that property. fix: 1. add `extern "C" ` around stablehloapi.h declarations. extern "C" instructs the compiler to suppress the mangling. 2. rename functions to avoid function overloading thank you @hawkinsp for help with root causing and validating the fix.
- Loading branch information
Showing
3 changed files
with
35 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters