From 4b04a3500a607fcae514b28754c5aca5f37dd130 Mon Sep 17 00:00:00 2001 From: Guillaume Klein Date: Mon, 30 Sep 2019 13:01:06 +0200 Subject: [PATCH] Link to cudart_static and remove cuda_libs (#539) (#548) --- tensorflow_addons/custom_ops/activations/BUILD | 2 +- tensorflow_addons/custom_ops/image/BUILD | 6 +++--- tensorflow_addons/custom_ops/layers/BUILD | 2 +- tensorflow_addons/custom_ops/seq2seq/BUILD | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tensorflow_addons/custom_ops/activations/BUILD b/tensorflow_addons/custom_ops/activations/BUILD index a199fbc689..6550ace197 100644 --- a/tensorflow_addons/custom_ops/activations/BUILD +++ b/tensorflow_addons/custom_ops/activations/BUILD @@ -21,8 +21,8 @@ cc_library( "@local_config_tf//:libtensorflow_framework", "@local_config_tf//:tf_header_lib", ] + if_cuda_is_configured([ - "@local_config_cuda//cuda:cuda_libs", "@local_config_cuda//cuda:cuda_headers", + "@local_config_cuda//cuda:cudart_static", ]), alwayslink = 1, ) diff --git a/tensorflow_addons/custom_ops/image/BUILD b/tensorflow_addons/custom_ops/image/BUILD index a0fdbc4da5..bfc0054835 100644 --- a/tensorflow_addons/custom_ops/image/BUILD +++ b/tensorflow_addons/custom_ops/image/BUILD @@ -21,8 +21,8 @@ cc_library( "@local_config_tf//:libtensorflow_framework", "@local_config_tf//:tf_header_lib", ] + if_cuda_is_configured([ - "@local_config_cuda//cuda:cuda_libs", "@local_config_cuda//cuda:cuda_headers", + "@local_config_cuda//cuda:cudart_static", ]), alwayslink = 1, ) @@ -62,8 +62,8 @@ cc_library( "@local_config_tf//:libtensorflow_framework", "@local_config_tf//:tf_header_lib", ] + if_cuda_is_configured([ - "@local_config_cuda//cuda:cuda_libs", "@local_config_cuda//cuda:cuda_headers", + "@local_config_cuda//cuda:cudart_static", ]), alwayslink = 1, ) @@ -84,8 +84,8 @@ cc_library( "@local_config_tf//:libtensorflow_framework", "@local_config_tf//:tf_header_lib", ] + if_cuda_is_configured([ - "@local_config_cuda//cuda:cuda_libs", "@local_config_cuda//cuda:cuda_headers", + "@local_config_cuda//cuda:cudart_static", ]), alwayslink = 1, ) diff --git a/tensorflow_addons/custom_ops/layers/BUILD b/tensorflow_addons/custom_ops/layers/BUILD index bb9c00ddf5..9ad39a5f4e 100644 --- a/tensorflow_addons/custom_ops/layers/BUILD +++ b/tensorflow_addons/custom_ops/layers/BUILD @@ -40,8 +40,8 @@ cc_library( "@local_config_tf//:libtensorflow_framework", "@local_config_tf//:tf_header_lib", ] + if_cuda_is_configured([ - "@local_config_cuda//cuda:cuda_libs", "@local_config_cuda//cuda:cuda_headers", + "@local_config_cuda//cuda:cudart_static", "@cub_archive//:cub", ]), alwayslink = 1, diff --git a/tensorflow_addons/custom_ops/seq2seq/BUILD b/tensorflow_addons/custom_ops/seq2seq/BUILD index 4f95a02373..712c78e1c4 100644 --- a/tensorflow_addons/custom_ops/seq2seq/BUILD +++ b/tensorflow_addons/custom_ops/seq2seq/BUILD @@ -40,8 +40,8 @@ cc_library( "@local_config_tf//:libtensorflow_framework", "@local_config_tf//:tf_header_lib", ] + if_cuda_is_configured([ - "@local_config_cuda//cuda:cuda_libs", "@local_config_cuda//cuda:cuda_headers", + "@local_config_cuda//cuda:cudart_static", ]), alwayslink = 1, )