diff options
author | Patrick Nguyen <drpng@google.com> | 2016-10-20 12:09:18 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-10-20 13:19:03 -0700 |
commit | c5ab3dd177dc16bb211821e38219f350a613b5e8 (patch) | |
tree | 69f38f2790f85f31dae60b6b7c6b136b3b380daa /third_party/gpus/cuda | |
parent | 8532897352ada1d8ecd3ca1dd17aaa869a42d4b8 (diff) |
Merge changes from github.
Change: 136750267
Diffstat (limited to 'third_party/gpus/cuda')
-rw-r--r-- | third_party/gpus/cuda/platform.bzl.tpl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/gpus/cuda/platform.bzl.tpl b/third_party/gpus/cuda/platform.bzl.tpl index 7565dfc129..539ed58d2c 100644 --- a/third_party/gpus/cuda/platform.bzl.tpl +++ b/third_party/gpus/cuda/platform.bzl.tpl @@ -14,6 +14,11 @@ def cuda_library_path(name, version = cuda_sdk_version()): return "lib/lib{}.dylib".format(name) else: return "lib/lib{}.{}.dylib".format(name, version) + elif PLATFORM == "Windows": + if not version: + return "lib/{}.dll".format(name) + else: + return "lib/{}{}.dll".format(name, version) else: if not version: return "lib64/lib{}.so".format(name) @@ -23,6 +28,8 @@ def cuda_library_path(name, version = cuda_sdk_version()): def cuda_static_library_path(name): if PLATFORM == "Darwin": return "lib/lib{}_static.a".format(name) + elif PLATFORM == "Windows": + return "lib/{}_static.lib".format(name) else: return "lib64/lib{}_static.a".format(name) @@ -32,6 +39,11 @@ def cudnn_library_path(version = cudnn_sdk_version()): return "lib/libcudnn.dylib" else: return "lib/libcudnn.{}.dylib".format(version) + elif PLATFORM == "Windows": + if not version: + return "lib/cudnn.dll" + else: + return "lib/cudnn{}.dll".format(version) else: if not version: return "lib64/libcudnn.so" @@ -44,6 +56,11 @@ def cupti_library_path(version = cuda_sdk_version()): return "extras/CUPTI/lib/libcupti.dylib" else: return "extras/CUPTI/lib/libcupti.{}.dylib".format(version) + elif PLATFORM == "Windows": + if not version: + return "extras/CUPTI/lib/cupti.dll" + else: + return "extras/CUPTI/lib/cupti{}.dll".format(version) else: if not version: return "extras/CUPTI/lib64/libcupti.so" |