aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/nccl
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-12-11 23:35:29 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-12-11 23:38:57 -0800
commit383a3226a9ad08ac507a3fbd6c220c5c1e15a540 (patch)
tree23832854e4d84b9366ef57adfeb15121e525ac13 /tensorflow/contrib/nccl
parentfcca16c5e3d8168ea95616956fdcf777798b164b (diff)
Use BlockHostUntilDoneWithStatus in various places.
PiperOrigin-RevId: 178723711
Diffstat (limited to 'tensorflow/contrib/nccl')
-rw-r--r--tensorflow/contrib/nccl/kernels/nccl_manager_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/nccl/kernels/nccl_manager_test.cc b/tensorflow/contrib/nccl/kernels/nccl_manager_test.cc
index abafe4b407..ef76df6b0d 100644
--- a/tensorflow/contrib/nccl/kernels/nccl_manager_test.cc
+++ b/tensorflow/contrib/nccl/kernels/nccl_manager_test.cc
@@ -175,7 +175,7 @@ class NcclManagerTest : public ::testing::Test {
auto out_gpu_mem = AsDeviceMemory(out_gpu.flat<float>().data());
stream->ThenMemcpy(out_cpu.flat<float>().data(), out_gpu_mem,
out_cpu.TotalBytes());
- stream->BlockHostUntilDone();
+ SE_ASSERT_OK(stream->BlockHostUntilDoneWithStatus());
test::ExpectTensorEqual<float>(test_case->expected, out_cpu);
}
}
@@ -236,7 +236,7 @@ TEST_F(NcclManagerTest, MultipleCallers) {
for (int i = 0; i < num_ranks; ++i) {
auto* device = devices->at(i % devices->size());
auto* stream = device->tensorflow_gpu_device_info()->stream;
- stream->BlockHostUntilDone();
+ SE_ASSERT_OK(stream->BlockHostUntilDoneWithStatus());
}
std::random_shuffle(case_and_device_num.begin(), case_and_device_num.end());