aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/gpus/cuda/build_defs.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/gpus/cuda/build_defs.bzl')
-rw-r--r--third_party/gpus/cuda/build_defs.bzl14
1 files changed, 0 insertions, 14 deletions
diff --git a/third_party/gpus/cuda/build_defs.bzl b/third_party/gpus/cuda/build_defs.bzl
deleted file mode 100644
index 49b977e93e..0000000000
--- a/third_party/gpus/cuda/build_defs.bzl
+++ /dev/null
@@ -1,14 +0,0 @@
-# Macros for building CUDA code.
-
-def if_cuda(if_true, if_false = []):
- """Shorthand for select()'ing on whether we're building with CUDA.
-
- Returns a select statement which evaluates to if_true if we're building
- with CUDA enabled. Otherwise, the select statement evaluates to if_false.
-
- """
- return select({
- "//third_party/gpus/cuda:using_nvcc": if_true,
- "//third_party/gpus/cuda:using_gcudacc": if_true,
- "//conditions:default": if_false
- })