Skip to content

Commit e88e196

Browse files
committed
Fix compiling warning.
1 parent a328ae3 commit e88e196

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/operators/nccl_op_test.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ TEST_F(NCCLTester, ncclAllReduceOp) {
185185
recv_tensor.numel() * sizeof(float),
186186
static_cast<p::CUDADeviceContext *>(dev_ctxs[i])->stream());
187187

188-
for (size_t j = 0; j < f::product(kDims); ++j) {
188+
for (int64_t j = 0; j < f::product(kDims); ++j) {
189189
ASSERT_NEAR(ct[j], result, 1e-5);
190190
}
191191
}
@@ -234,7 +234,7 @@ TEST_F(NCCLTester, ncclReduceOp) {
234234
recv_tensor.numel() * sizeof(float),
235235
static_cast<p::CUDADeviceContext *>(dev_ctxs[kRoot])->stream());
236236

237-
for (int j = 0; j < f::product(kDims); ++j) {
237+
for (int64_t j = 0; j < f::product(kDims); ++j) {
238238
ASSERT_NEAR(ct[j], result, 1e-5);
239239
}
240240
}
@@ -282,7 +282,7 @@ TEST_F(NCCLTester, ncclBcastOp) {
282282
recv_tensor.numel() * sizeof(float),
283283
static_cast<p::CUDADeviceContext *>(dev_ctxs[idx])->stream());
284284

285-
for (size_t j = 0; j < f::product(kDims); ++j) {
285+
for (int64_t j = 0; j < f::product(kDims); ++j) {
286286
ASSERT_NEAR(ct[j], result, 1e-5);
287287
}
288288
}

0 commit comments

Comments
 (0)