Skip to content

Commit

Permalink
Syncronizing on handle.get_stream() stream as uniform is executed in …
Browse files Browse the repository at this point in the history
…that stream
  • Loading branch information
vinaydes committed May 11, 2022
1 parent 3a431f1 commit e1673a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/test/linalg/divide.cu
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class DivideTest : public ::testing::TestWithParam<raft::linalg::UnaryOpInputs<T
int len = params.len;
RAFT_CUDA_TRY(cudaStreamCreate(&stream));
uniform(handle, r, in.data(), len, T(-1.0), T(1.0));
RAFT_CUDA_TRY(cudaStreamSynchronize(handle.get_stream()));
naiveDivide(out_ref.data(), in.data(), params.scalar, len, stream);
divideScalar(out.data(), in.data(), params.scalar, len, stream);
handle.sync_stream(stream);
Expand Down

0 comments on commit e1673a9

Please sign in to comment.