Skip to content

Commit

Permalink
fix(Windows)!: Fix dependency resolution for local builds
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Users on Windows trying to use cuDNN 8 must manually
configure third_party/cudnn/local/BUILD to use cuDNN 8.

Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Jul 31, 2020
1 parent 83eb3ad commit 858d8c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion third_party/cudnn/local/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cc_import(
name = "cudnn_lib",
shared_library = select({
":aarch64_linux": "lib/aarch64-linux-gnu/libcudnn.so",
":windows": glob(["bin/cudnn64_*.dll"])[0],
":windows": "bin/cudnn64_7.dll", #Need to configure specific version for windows
"//conditions:default": "lib/x86_64-linux-gnu/libcudnn.so",
}),
visibility = ["//visibility:private"],
Expand Down
1 change: 0 additions & 1 deletion third_party/tensorrt/local/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ cc_import(

cc_library(
name = "nvinfer",
srcs = select({ ":windows": [ "lib/nvinfer.lib" ] }),

This comment has been minimized.

Copy link
@xsacha

xsacha Jul 31, 2020

Contributor

I had a linker error until I added this in. Does this still work?

deps = [
"nvinfer_headers",
"nvinfer_lib",
Expand Down

0 comments on commit 858d8c3

Please sign in to comment.