aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/stream_executor_pimpl.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-10-10 12:22:58 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-10-10 12:35:21 -0700
commit35c4177d9e2349e4b5c6875e85220fc3f8ddc17c (patch)
treeaf000c28f7d937b8ca60ac62c360360b1f993364 /tensorflow/stream_executor/stream_executor_pimpl.cc
parent803707b01fdc3048347f6e1b3aca751cf699b1e8 (diff)
Allow tensorflow devices to report their load. This may be used to improve batch scheduling.
PiperOrigin-RevId: 171716813
Diffstat (limited to 'tensorflow/stream_executor/stream_executor_pimpl.cc')
-rw-r--r--tensorflow/stream_executor/stream_executor_pimpl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/stream_executor_pimpl.cc b/tensorflow/stream_executor/stream_executor_pimpl.cc
index 9bbfe7f04a..9dc1749327 100644
--- a/tensorflow/stream_executor/stream_executor_pimpl.cc
+++ b/tensorflow/stream_executor/stream_executor_pimpl.cc
@@ -268,6 +268,10 @@ const DeviceDescription &StreamExecutor::GetDeviceDescription() const {
return *device_description_;
}
+int64 StreamExecutor::GetDeviceLoad() const {
+ return implementation_->GetDeviceLoad();
+}
+
int StreamExecutor::PlatformDeviceCount() const {
return implementation_->PlatformDeviceCount();
}