diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-12-13 13:39:02 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-13 13:42:40 -0800 |
commit | 553e8f14c8c025a8c09e0a6cb824c786bc258f56 (patch) | |
tree | e760554e479fc684473c6d09850c7ffc00b2fa5a /tensorflow/stream_executor/blas.h | |
parent | 3d74c715a2ed66ced2bd87c90befb9e70ba8a3d1 (diff) |
Update Stream::BlockHostUntilDone examples and documentation.
The new Status return value must be explicitly handled or ignored.
PiperOrigin-RevId: 178950527
Diffstat (limited to 'tensorflow/stream_executor/blas.h')
-rw-r--r-- | tensorflow/stream_executor/blas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/stream_executor/blas.h b/tensorflow/stream_executor/blas.h index eb1b19c5d9..072f085546 100644 --- a/tensorflow/stream_executor/blas.h +++ b/tensorflow/stream_executor/blas.h @@ -30,8 +30,8 @@ limitations under the License. // Stream stream{stream_exec}; // stream // .Init() -// .ThenBlasAxpy(1024, 5.5, x, 1, &y, 1) -// .BlockHostUntilDone(); +// .ThenBlasAxpy(1024, 5.5, x, 1, &y, 1); +// SE_CHECK_OK(stream.BlockHostUntilDone()); // // By using stream operations in this manner the user can easily intermix custom // kernel launches (via StreamExecutor::ThenLaunch()) with these pre-canned BLAS |