From 69517088526a39f25fe6f9171f00dda39ca25691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= <765740+giordano@users.noreply.github.com> Date: Tue, 28 Jan 2025 19:54:10 +0100 Subject: [PATCH] Use `xla/stream_executor/cuda:cuda_compute_capability_proto_cc_impl` only on non CUDA (#646) --- deps/ReactantExtra/BUILD | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/deps/ReactantExtra/BUILD b/deps/ReactantExtra/BUILD index f30576679..5ebcf2aaa 100644 --- a/deps/ReactantExtra/BUILD +++ b/deps/ReactantExtra/BUILD @@ -474,11 +474,11 @@ cc_library( "@llvm-project//mlir:SCFDialect", "@llvm-project//mlir:TransformDialect", "@llvm-project//mlir:Transforms", - + "@llvm-project//mlir:LLVMIRToLLVMTranslation", "@llvm-project//mlir:LLVMIRToNVVMTranslation", "@llvm-project//mlir:LLVMIRTransforms", - + "@llvm-project//llvm:IRReader", "@llvm-project//llvm:Support", "@llvm-project//llvm:AArch64AsmParser", @@ -494,11 +494,10 @@ cc_library( "@xla//xla/pjrt:pjrt_api", "@xla//xla/pjrt:pjrt_c_api_client", "@xla//xla/pjrt/cpu:cpu_client", - + "@xla//xla:xla_proto_cc", "@xla//xla:xla_proto_cc_impl", "@xla//xla/stream_executor:device_description_proto_cc_impl", - "@xla//xla/stream_executor/cuda:cuda_compute_capability_proto_cc_impl", "@xla//xla/service:metrics_proto_cc", "@xla//xla/service:metrics_proto_cc_impl", @@ -507,10 +506,10 @@ cc_library( "@xla//xla/stream_executor/tpu:tpu_on_demand_compiler", "@xla//xla/stream_executor/tpu:tpu_executor", "@xla//xla/stream_executor/tpu:tpu_transfer_manager", - + "@xla//xla/service/cpu:cpu_transfer_manager", "@xla//xla/pjrt/gpu:se_gpu_pjrt_client", - + "@xla//xla/tsl/protobuf:protos_all_cc_impl", "@xla//xla/tsl/framework:allocator_registry_impl", @@ -553,21 +552,22 @@ cc_library( "@com_google_absl//absl/log:initialize", "@com_google_absl//absl/log:globals", "@llvm-project//mlir:CAPIIRObjects", - "@llvm-project//mlir:CAPILLVMObjects", + "@llvm-project//mlir:CAPILLVMObjects", "@jax//jaxlib/mosaic:tpu_dialect_capi_objects", "@jax//jaxlib/triton:triton_dialect_capi_objects", ] + select({ - "@xla//xla/tsl:is_cuda_enabled_and_oss":[ - "@xla//xla/stream_executor/cuda:all_runtime", - "@xla//xla/stream_executor/cuda:cuda_compute_capability_proto", - "@xla//xla/service/gpu/model:hlo_op_profiles", - "@xla//xla/service/gpu/model:hlo_op_profile_proto_cc_impl", - "@xla//xla/service/gpu:nvptx_compiler", - "@xla//xla/service/gpu:gpu_transfer_manager", - "@xla//xla/stream_executor:kernel", - "@xla//xla/backends/profiler/gpu:device_tracer", - ], - "//conditions:default": [], + "@xla//xla/tsl:is_cuda_enabled_and_oss":[ + "@xla//xla/stream_executor/cuda:all_runtime", + "@xla//xla/service/gpu/model:hlo_op_profiles", + "@xla//xla/service/gpu/model:hlo_op_profile_proto_cc_impl", + "@xla//xla/service/gpu:nvptx_compiler", + "@xla//xla/service/gpu:gpu_transfer_manager", + "@xla//xla/stream_executor:kernel", + "@xla//xla/backends/profiler/gpu:device_tracer", + ], + "//conditions:default": [ + "@xla//xla/stream_executor/cuda:cuda_compute_capability_proto_cc_impl", + ], }) + if_rocm([ "@xla//xla/service/gpu:amdgpu_compiler", "@xla//xla/backends/profiler/gpu:device_tracer",