@@ -66,6 +66,7 @@ cc_library(
66
66
deps = if_cuda_is_configured ([
67
67
"@com_google_absl//absl/container:inlined_vector" ,
68
68
"@com_google_absl//absl/strings" ,
69
+ "//tensorflow/stream_executor/gpu:gpu_diagnostics_header" ,
69
70
"//tensorflow/stream_executor/lib" ,
70
71
"//tensorflow/stream_executor/platform" ,
71
72
]),
@@ -85,6 +86,7 @@ cc_library(
85
86
"@com_google_absl//absl/strings" ,
86
87
"@local_config_cuda//cuda:cuda_headers" ,
87
88
"//tensorflow/stream_executor:device_options" ,
89
+ "//tensorflow/stream_executor/gpu:gpu_driver_header" ,
88
90
"//tensorflow/stream_executor/lib" ,
89
91
"//tensorflow/stream_executor/platform" ,
90
92
"//tensorflow/stream_executor/platform:dso_loader" ,
@@ -97,18 +99,22 @@ cc_library(
97
99
name = "cuda_activation_header" ,
98
100
hdrs = if_cuda_is_configured (["cuda_activation.h" ]),
99
101
visibility = ["//visibility:public" ],
100
- deps = if_cuda_is_configured (["//tensorflow/stream_executor/platform" ]),
102
+ deps = if_cuda_is_configured ([
103
+ "//tensorflow/stream_executor/gpu:gpu_activation_header" ,
104
+ "//tensorflow/stream_executor/platform" ,
105
+ ]),
101
106
)
102
107
103
108
cc_library (
104
109
name = "cuda_activation" ,
105
- srcs = if_cuda_is_configured ([ "cuda_activation.cc" ]) ,
110
+ srcs = [] ,
106
111
hdrs = if_cuda_is_configured (["cuda_activation.h" ]),
107
112
deps = if_cuda_is_configured ([
108
113
":cuda_driver" ,
109
114
"@local_config_cuda//cuda:cuda_headers" ,
110
115
"//tensorflow/stream_executor" ,
111
116
"//tensorflow/stream_executor:stream_executor_internal" ,
117
+ "//tensorflow/stream_executor/gpu:gpu_activation" ,
112
118
"//tensorflow/stream_executor/platform" ,
113
119
]),
114
120
)
@@ -120,6 +126,7 @@ cc_library(
120
126
deps = if_cuda_is_configured ([
121
127
":cuda_kernel" ,
122
128
"//tensorflow/stream_executor:event" ,
129
+ "//tensorflow/stream_executor/gpu:gpu_executor_header" ,
123
130
"//tensorflow/stream_executor/lib" ,
124
131
"//tensorflow/stream_executor/platform" ,
125
132
]),
@@ -230,6 +237,7 @@ cc_library(
230
237
"//tensorflow/stream_executor:event" ,
231
238
"//tensorflow/stream_executor:plugin_registry" ,
232
239
"//tensorflow/stream_executor:rng" ,
240
+ "//tensorflow/stream_executor/gpu:gpu_rng_header" ,
233
241
"//tensorflow/stream_executor/lib" ,
234
242
"//tensorflow/stream_executor/platform" ,
235
243
"//tensorflow/stream_executor/platform:dso_loader" ,
@@ -239,12 +247,14 @@ cc_library(
239
247
240
248
cc_library (
241
249
name = "cuda_kernel" ,
250
+ srcs = if_cuda_is_configured (["cuda_kernel.cc" ]),
242
251
hdrs = if_cuda_is_configured (["cuda_kernel.h" ]),
243
252
deps = if_cuda_is_configured ([
244
253
":cuda_driver" ,
245
254
"@local_config_cuda//cuda:cuda_headers" ,
246
255
"//tensorflow/stream_executor:event" ,
247
256
"//tensorflow/stream_executor:stream_executor_pimpl_header" ,
257
+ "//tensorflow/stream_executor/gpu:gpu_kernel_header" ,
248
258
"//tensorflow/stream_executor/lib" ,
249
259
"//tensorflow/stream_executor/platform" ,
250
260
]),
@@ -265,38 +275,41 @@ cc_library(
265
275
":cuda_gpu_executor_header" ,
266
276
":cuda_stream" ,
267
277
"//tensorflow/stream_executor:stream_executor_headers" ,
278
+ "//tensorflow/stream_executor/gpu:gpu_event" ,
279
+ "//tensorflow/stream_executor/gpu:gpu_stream_header" ,
268
280
"//tensorflow/stream_executor/lib" ,
269
281
]),
270
282
)
271
283
272
284
cc_library (
273
285
name = "cuda_stream" ,
274
- srcs = if_cuda_is_configured ([ "cuda_stream.cc" ]) ,
286
+ srcs = [] ,
275
287
hdrs = if_cuda_is_configured (["cuda_stream.h" ]),
276
288
deps = if_cuda_is_configured ([
277
289
":cuda_driver" ,
278
290
":cuda_gpu_executor_header" ,
279
291
"//tensorflow/stream_executor:stream_executor_headers" ,
280
292
"//tensorflow/stream_executor:stream_header" ,
293
+ "//tensorflow/stream_executor/gpu:gpu_stream" ,
281
294
"//tensorflow/stream_executor/lib" ,
282
295
"//tensorflow/stream_executor/platform" ,
283
296
]),
284
297
)
285
298
286
299
cc_library (
287
300
name = "cuda_timer" ,
288
- srcs = if_cuda_is_configured ([ "cuda_timer.cc" ]) ,
301
+ srcs = [] ,
289
302
hdrs = if_cuda_is_configured (["cuda_timer.h" ]),
290
303
deps = if_cuda_is_configured ([
291
304
":cuda_driver" ,
292
305
":cuda_gpu_executor_header" ,
293
306
":cuda_stream" ,
294
307
"//tensorflow/stream_executor:stream_executor_headers" ,
308
+ "//tensorflow/stream_executor/gpu:gpu_timer" ,
295
309
"//tensorflow/stream_executor/lib" ,
296
310
]),
297
311
)
298
312
299
- # It implements :cuda_gpu_executor_header
300
313
cc_library (
301
314
name = "cuda_gpu_executor" ,
302
315
srcs = if_cuda_is_configured (["cuda_gpu_executor.cc" ]),
@@ -316,6 +329,7 @@ cc_library(
316
329
"//tensorflow/stream_executor:stream_executor_internal" ,
317
330
"//tensorflow/stream_executor:stream_executor_pimpl_header" ,
318
331
"//tensorflow/stream_executor:timer" ,
332
+ "//tensorflow/stream_executor/gpu:gpu_executor_header" ,
319
333
"//tensorflow/stream_executor/lib" ,
320
334
"//tensorflow/stream_executor/platform" ,
321
335
"//tensorflow/stream_executor/platform:dso_loader" ,
0 commit comments