diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-10-10 12:22:58 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-10-10 12:35:21 -0700 |
commit | 35c4177d9e2349e4b5c6875e85220fc3f8ddc17c (patch) | |
tree | af000c28f7d937b8ca60ac62c360360b1f993364 /tensorflow/stream_executor/stream_executor_internal.h | |
parent | 803707b01fdc3048347f6e1b3aca751cf699b1e8 (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_internal.h')
-rw-r--r-- | tensorflow/stream_executor/stream_executor_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/stream_executor_internal.h b/tensorflow/stream_executor/stream_executor_internal.h index 802ef755eb..12593e31d4 100644 --- a/tensorflow/stream_executor/stream_executor_internal.h +++ b/tensorflow/stream_executor/stream_executor_internal.h @@ -225,6 +225,8 @@ class StreamExecutorInterface { virtual port::Status SetDeviceSharedMemoryConfig( SharedMemoryConfig config) = 0; + virtual int64 GetDeviceLoad() { return -1; } + virtual bool DeviceMemoryUsage(int64 *free, int64 *total) const { return false; } |