You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building JAX with ROCm support, the build fails due to a visibility issue with the hipfft target.
Error Message
ERROR: /external/xla/xla/stream_executor/rocm/BUILD:409:11:
in cc_library rule @xla//xla/stream_executor/rocm:hipfft_if_static:
target '@local_config_rocm//rocm:hipfft' is not visible from target '@xla//xla/stream_executor/rocm:hipfft_if_static'.
Check the visibility declaration of the former target if you think the dependency is legitimate
The hipfft target in /external/local_config_rocm/rocm/BUILD needs a public visibility declaration. Other similar targets in the same file (hipblas, hiprand, etc.) already have this visibility set, but it seems to have been overlooked for hipfft.
The fix is to add visibility = ["//visibility:public"] to the hipfft target:
cc_library(
name="hipfft",
srcs=glob(["rocm_dist/lib/libhipfft*.so*"]),
include_prefix="rocm",
includes= [
"rocm_dist/include",
],
linkstatic=1,
visibility= ["//visibility:public"], # Added this line to match other ROCm librariesdeps= [":rocm_config"],
)
After applying this change, the build proceeded successfully.
System info (python version, jaxlib version, accelerator, etc.)
Description
Description
When building JAX with ROCm support, the build fails due to a visibility issue with the hipfft target.
Error Message
Environment
Solution
The hipfft target in
/external/local_config_rocm/rocm/BUILD
needs a public visibility declaration. Other similar targets in the same file (hipblas, hiprand, etc.) already have this visibility set, but it seems to have been overlooked for hipfft.The fix is to add
visibility = ["//visibility:public"]
to the hipfft target:After applying this change, the build proceeded successfully.
System info (python version, jaxlib version, accelerator, etc.)
The text was updated successfully, but these errors were encountered: