Skip to content

Commit e570513

Browse files
committed
Fix collectives test.
1 parent d2308b3 commit e570513

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/check_collectives.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ extern void teardown_comm(void);
7575
for (j = 0; j < indims[1]; ++j) \
7676
A[i][j] = comm_rank + 2; \
7777
\
78-
err = GpuArray_copy_from_host(&Adev, ctx, A, GA_INT, ND, indims, instrds); \
78+
err = GpuArray_empty(&Adev, ctx, GA_INT, ND, indims, GA_C_ORDER); \
79+
ck_assert_int_eq(err, GA_NO_ERROR); \
80+
err = GpuArray_write(&Adev, A, sizeof(*A) * inrows); \
7981
ck_assert_int_eq(err, GA_NO_ERROR); \
8082
err = GpuArray_empty(&RESdev, ctx, GA_INT, ND, outdims, GA_C_ORDER); \
8183
ck_assert_int_eq(err, GA_NO_ERROR);

0 commit comments

Comments
 (0)