aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/stream_executor_pimpl.h
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.h
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.h')
-rw-r--r--tensorflow/stream_executor/stream_executor_pimpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/stream_executor_pimpl.h b/tensorflow/stream_executor/stream_executor_pimpl.h
index f354317a6e..9c225e5fae 100644
--- a/tensorflow/stream_executor/stream_executor_pimpl.h
+++ b/tensorflow/stream_executor/stream_executor_pimpl.h
@@ -312,6 +312,10 @@ class StreamExecutor {
// The value is cached on first use.
const DeviceDescription &GetDeviceDescription() const;
+ // If implemented, returns device specific measurement of load
+ // (e.g. pending requests).
+ int64 GetDeviceLoad() const;
+
// Returns the underlying device memory usage information, if it is available.
// If it is not available (false is returned), free/total may not be
// initialized.