-
Notifications
You must be signed in to change notification settings - Fork 75k
[PluggableDevice] PluggableDevice mechanism implementation #45784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
43dc586
763c969
fbe1a26
71ddb83
ed860df
9a612ef
08410cb
fa2e439
9762a3c
f41a42f
2c31420
01de704
a2757e4
40379a4
881961a
75635a5
463cad1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,10 @@ load( | |
| "//tensorflow/core/platform:rules_cc.bzl", | ||
| "cc_library", | ||
| ) | ||
| load( | ||
| "//tensorflow/core/platform:build_config_root.bzl", | ||
| "if_static", | ||
| ) | ||
|
|
||
| package( | ||
| default_visibility = [ | ||
|
|
@@ -43,6 +47,7 @@ cc_library( | |
| deps = [ | ||
| ":pluggable_device_bfc_allocator", | ||
| ":pluggable_device_init_impl", | ||
| "//tensorflow/core:core_cpu", | ||
| "//tensorflow/core:core_cpu_lib", | ||
| "//tensorflow/core:framework", | ||
| "//tensorflow/core:framework_internal", | ||
|
|
@@ -53,6 +58,8 @@ cc_library( | |
| "//tensorflow/core/common_runtime/device:device_event_mgr", | ||
| "//tensorflow/core/platform:stream_executor", | ||
| "//tensorflow/core/platform:tensor_float_32_utils", | ||
| "//tensorflow/stream_executor:event", | ||
| "//tensorflow/stream_executor:kernel", | ||
| ], | ||
| alwayslink = 1, | ||
| ) | ||
|
|
@@ -69,18 +76,50 @@ cc_library( | |
| copts = tf_copts(), | ||
| visibility = ["//visibility:public"], | ||
| deps = [ | ||
| ":pluggable_device_runtime_impl", | ||
| "//tensorflow/c/experimental/stream_executor", | ||
| ], | ||
| "//tensorflow/c/experimental/stream_executor:stream_executor_internal", | ||
| "//tensorflow/core:core_cpu", | ||
| "//tensorflow/core:framework", | ||
| "//tensorflow/core:lib", | ||
| "//tensorflow/core:lib_internal", | ||
| "//tensorflow/core:protos_all_cc", | ||
| "//tensorflow/core/common_runtime:bfc_allocator", | ||
| "//tensorflow/core/common_runtime:dma_helper", | ||
| "//tensorflow/core/common_runtime:local_device", | ||
| "//tensorflow/core/common_runtime:process_state", | ||
| "//tensorflow/core/common_runtime:shared_counter", | ||
| "//tensorflow/core/platform:stream_executor", | ||
| "//tensorflow/stream_executor:event", | ||
| "//tensorflow/stream_executor:kernel", | ||
| ] + if_static([ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jzhoulon and @penpornk Reverting this locally workarounds it. Will create a PR with proper fix. |
||
| ":pluggable_device_runtime_impl", | ||
| "//tensorflow/core/common_runtime:copy_tensor", | ||
| ]), | ||
| ) | ||
|
|
||
| cc_library( | ||
| name = "pluggable_device_runtime", | ||
| hdrs = [":pluggable_device_runtime_headers"], | ||
| linkstatic = 1, | ||
| deps = [ | ||
| "//tensorflow/core:core_cpu", | ||
| "//tensorflow/core:framework", | ||
| "//tensorflow/core:lib", | ||
| "//tensorflow/core:lib_internal", | ||
| "//tensorflow/core:protos_all_cc", | ||
| "//tensorflow/core/common_runtime:core_cpu", | ||
| "//tensorflow/core/common_runtime:dma_helper", | ||
| "//tensorflow/core/common_runtime:shared_counter", | ||
| "//tensorflow/core/lib/core:status", | ||
| "//tensorflow/core/platform:stream_executor", | ||
| "//tensorflow/stream_executor:event", | ||
| "//tensorflow/stream_executor:kernel", | ||
| ] + if_static([ | ||
| ":pluggable_device_runtime_impl", | ||
| ], | ||
| "//tensorflow/core/common_runtime:bfc_allocator", | ||
| "//tensorflow/core/common_runtime:process_state", | ||
| "//tensorflow/core/common_runtime:local_device", | ||
| ]), | ||
| ) | ||
|
|
||
| cc_library( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.