Skip to content

Commit

Permalink
[XLA:Python] Remove JAX CUDA rpaths setting.
Browse files Browse the repository at this point in the history
This is now no longer used by JAX, and never matter on xla_extension.so because we no longer build it in a CUDA-specific configuration, instead using CUDA plugins.

PiperOrigin-RevId: 719399140
  • Loading branch information
hawkinsp authored and Google-ML-Automation committed Jan 24, 2025
1 parent 21391be commit e5dba5b
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions xla/python/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda")
load("@local_config_rocm//rocm:build_defs.bzl", "if_rocm")
load("//xla:pytype.default.bzl", "pytype_strict_library")
Expand Down Expand Up @@ -1170,20 +1169,6 @@ tf_proto_library(
srcs = ["py_host_callback.proto"],
)

# If this flag is enabled, it sets RPATH on the xla_extension to values that are suitable for
# finding NVIDIA's CUDA libraries when they are installed as pip packages.
bool_flag(
name = "jax_cuda_pip_rpaths",
build_setting_default = False,
)

config_setting(
name = "use_jax_cuda_pip_rpaths",
flag_values = {
":jax_cuda_pip_rpaths": "True",
},
)

cc_library(
name = "logging",
srcs = ["logging.cc"],
Expand Down Expand Up @@ -1251,18 +1236,6 @@ tsl_pybind_extension(
"-fno-strict-aliasing",
],
features = ["-use_header_modules"],
linkopts = select({
":use_jax_cuda_pip_rpaths": [
"-Wl,-rpath,$$ORIGIN/../nvidia/cuda_cupti/lib",
"-Wl,-rpath,$$ORIGIN/../nvidia/cuda_runtime/lib",
"-Wl,-rpath,$$ORIGIN/../nvidia/cublas/lib",
"-Wl,-rpath,$$ORIGIN/../nvidia/cufft/lib",
"-Wl,-rpath,$$ORIGIN/../nvidia/cudnn/lib",
"-Wl,-rpath,$$ORIGIN/../nvidia/cusolver/lib",
"-Wl,-rpath,$$ORIGIN/../nvidia/nccl/lib",
],
"//conditions:default": [],
}),
pytype_deps = [
"//third_party/py/numpy",
],
Expand Down

0 comments on commit e5dba5b

Please sign in to comment.