Skip to content

Commit

Permalink
Link to cudart_static and remove cuda_libs (#539) (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumekln authored and facaiy committed Sep 30, 2019
1 parent e2ddb4b commit 4b04a35
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tensorflow_addons/custom_ops/activations/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
6 changes: 3 additions & 3 deletions tensorflow_addons/custom_ops/image/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand All @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_addons/custom_ops/layers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_addons/custom_ops/seq2seq/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit 4b04a35

Please sign in to comment.