From a2db2afa0413afbcfdf0b9abfe135eb39852ceeb Mon Sep 17 00:00:00 2001 From: Henning Becker Date: Wed, 19 Jun 2024 03:01:09 -0700 Subject: [PATCH] Make :redzone_allocator_kernel_cuda a cc_library It used to be a `gpu_kernel_library` which means it gets compiled for device using NVCC in OSS. But the sources files don't contain any CUDA code, so there is no need for that. https://github.com/openxla/xla/issues/13460 reports that this behaviour even fails with some versions of NVCC because NVCC can't deal with C++ template magic being pulled in by Abseil. PiperOrigin-RevId: 644685844 --- third_party/xla/xla/stream_executor/gpu/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/xla/xla/stream_executor/gpu/BUILD b/third_party/xla/xla/stream_executor/gpu/BUILD index 97ec85bcc4fead..9b9237f12189d2 100644 --- a/third_party/xla/xla/stream_executor/gpu/BUILD +++ b/third_party/xla/xla/stream_executor/gpu/BUILD @@ -491,7 +491,7 @@ gpu_only_cc_library( ]), ) -gpu_kernel_library( +cc_library( name = "redzone_allocator_kernel_cuda", srcs = [ "redzone_allocator_kernel.h",