Skip to content

Commit

Permalink
fixed async stream
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalmehta1991 committed Dec 13, 2019
1 parent 0e76d36 commit 8fe7326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/decisiontree/levelalgo/common_helper.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ void convert_scatter_to_gather(const unsigned int *flagsptr,
unsigned int *nodecount, unsigned int *nodestart,
unsigned int *samplelist,
std::shared_ptr<TemporaryMemory<T, L>> tempmem) {
CUDA_CHECK(
cudaMemsetAsync(nodestart, 0, (n_nodes + 1) * sizeof(unsigned int)));
CUDA_CHECK(cudaMemsetAsync(nodestart, 0, (n_nodes + 1) * sizeof(unsigned int),
tempmem->stream));
CUDA_CHECK(cudaMemsetAsync(nodecount, 0, (n_nodes + 1) * sizeof(unsigned int),
tempmem->stream));

Expand Down

0 comments on commit 8fe7326

Please sign in to comment.