Skip to content

Commit 777b30b

Browse files
caisqtensorflower-gardener
authored andcommitted
Internal changes
PiperOrigin-RevId: 169860974
1 parent ab3f202 commit 777b30b

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

third_party/aws.BUILD

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Description:
2+
# AWS C++ SDK
3+
4+
package(default_visibility = ["//visibility:public"])
5+
6+
licenses(["notice"]) # Apache 2.0
7+
8+
exports_files(["LICENSE"])
9+
10+
load("@%ws%//third_party:common.bzl", "template_rule")
11+
12+
cc_library(
13+
name = "aws",
14+
srcs = select({
15+
"@%ws%//tensorflow:linux_x86_64": glob([
16+
"aws-cpp-sdk-core/source/platform/linux-shared/*.cpp",
17+
]),
18+
"@%ws%//tensorflow:darwin": glob([
19+
"aws-cpp-sdk-core/source/platform/linux-shared/*.cpp",
20+
]),
21+
}) + glob([
22+
"aws-cpp-sdk-core/source/*.cpp",
23+
"aws-cpp-sdk-core/source/auth/**/*.cpp",
24+
"aws-cpp-sdk-core/source/config/**/*.cpp",
25+
"aws-cpp-sdk-core/source/client/**/*.cpp",
26+
"aws-cpp-sdk-core/source/external/**/*.cpp",
27+
"aws-cpp-sdk-core/source/internal/**/*.cpp",
28+
"aws-cpp-sdk-core/source/http/*.cpp",
29+
"aws-cpp-sdk-core/source/http/curl/**/*.cpp",
30+
"aws-cpp-sdk-core/source/http/standard/**/*.cpp",
31+
"aws-cpp-sdk-core/source/utils/*.cpp",
32+
"aws-cpp-sdk-core/source/utils/base64/**/*.cpp",
33+
"aws-cpp-sdk-core/source/utils/json/**/*.cpp",
34+
"aws-cpp-sdk-core/source/utils/logging/**/*.cpp",
35+
"aws-cpp-sdk-core/source/utils/memory/**/*.cpp",
36+
"aws-cpp-sdk-core/source/utils/stream/**/*.cpp",
37+
"aws-cpp-sdk-core/source/utils/threading/**/*.cpp",
38+
"aws-cpp-sdk-core/source/utils/xml/**/*.cpp",
39+
"aws-cpp-sdk-core/source/utils/crypto/*.cpp",
40+
"aws-cpp-sdk-core/source/utils/crypto/factory/**/*.cpp",
41+
"aws-cpp-sdk-s3/source/**/*.cpp",
42+
]),
43+
hdrs = [
44+
"aws-cpp-sdk-core/include/aws/core/SDKConfig.h",
45+
],
46+
defines = select({
47+
"@%ws%//tensorflow:linux_x86_64": [
48+
"PLATFORM_LINUX",
49+
"ENABLE_CURL_CLIENT",
50+
"ENABLE_NO_ENCRYPTION",
51+
],
52+
"@%ws%//tensorflow:darwin": [
53+
"PLATFORM_APPLE",
54+
"ENABLE_CURL_CLIENT",
55+
"ENABLE_NO_ENCRYPTION",
56+
],
57+
"//conditions:default": [],
58+
}),
59+
includes = [
60+
"aws-cpp-sdk-core/include/",
61+
"aws-cpp-sdk-s3/include/",
62+
],
63+
deps = [
64+
"@curl//:curl",
65+
],
66+
)
67+
68+
template_rule(
69+
name = "SDKConfig_h",
70+
src = "aws-cpp-sdk-core/include/aws/core/SDKConfig.h.in",
71+
out = "aws-cpp-sdk-core/include/aws/core/SDKConfig.h",
72+
substitutions = {
73+
"cmakedefine": "define",
74+
},
75+
)

third_party/mpi/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.h
2+
*.dylib
3+
*.so

third_party/mpi_collectives/BUILD

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package(default_visibility = ["//visibility:public"])
2+
3+
licenses(["notice"]) # Apache 2.0
4+
5+
exports_files(["LICENSE.txt"])
6+
7+
filegroup(
8+
name = "all_files",
9+
srcs = glob(
10+
["**/*"],
11+
exclude = [
12+
"**/METADATA",
13+
"**/OWNERS",
14+
],
15+
),
16+
visibility = ["//tensorflow:__subpackages__"],
17+
)
18+
19+
cc_library(
20+
name = "mpi",
21+
srcs = select({
22+
"//tensorflow:darwin": ["libmpi.dylib"],
23+
"//conditions:default": ["libmpi.so"],
24+
}),
25+
hdrs = [
26+
"mpi.h",
27+
"mpi_portable_platform",
28+
],
29+
)

0 commit comments

Comments
 (0)