diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-12-09 10:07:17 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-09 10:11:03 -0800 |
commit | 37641276d8e6ff9617478f78afaefaf1a5c28332 (patch) | |
tree | 8347a0318b73a8730b24f6b644e69fed69d7c20a /tensorflow/stream_executor/host | |
parent | fefa1c222fb883ebf119d35151fd67f91a73a07f (diff) |
Replace StreamExecutorInterface::BlockHostUntilDone with BlockHostUntilDoneWithStatus
All known overrides of StreamExecutorInterface::BlockHostUntilDone are changed
by this CL.
PiperOrigin-RevId: 178492517
Diffstat (limited to 'tensorflow/stream_executor/host')
-rw-r--r-- | tensorflow/stream_executor/host/host_gpu_executor.cc | 4 | ||||
-rw-r--r-- | tensorflow/stream_executor/host/host_gpu_executor.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/stream_executor/host/host_gpu_executor.cc b/tensorflow/stream_executor/host/host_gpu_executor.cc index 0af2c8cc3d..1fd8eeb881 100644 --- a/tensorflow/stream_executor/host/host_gpu_executor.cc +++ b/tensorflow/stream_executor/host/host_gpu_executor.cc @@ -177,9 +177,9 @@ bool HostExecutor::StopTimer(Stream *stream, Timer *timer) { return true; } -bool HostExecutor::BlockHostUntilDone(Stream *stream) { +port::Status HostExecutor::BlockHostUntilDoneWithStatus(Stream *stream) { AsHostStream(stream)->BlockUntilDone(); - return true; + return port::Status::OK(); } DeviceDescription *HostExecutor::PopulateDeviceDescription() const { diff --git a/tensorflow/stream_executor/host/host_gpu_executor.h b/tensorflow/stream_executor/host/host_gpu_executor.h index 77b07e4a57..e884554a15 100644 --- a/tensorflow/stream_executor/host/host_gpu_executor.h +++ b/tensorflow/stream_executor/host/host_gpu_executor.h @@ -139,7 +139,7 @@ class HostExecutor : public internal::StreamExecutorInterface { bool StopTimer(Stream *stream, Timer *timer) override; - bool BlockHostUntilDone(Stream *stream) override; + port::Status BlockHostUntilDoneWithStatus(Stream *stream) override; int PlatformDeviceCount() override { return 1; } |