Skip to content

Commit

Permalink
Fix using incorrect macro RAFT_CHECK_CUDA in place of RAFT_CUDA_TRY (#…
Browse files Browse the repository at this point in the history
…415)

Fix the incorrect macro slipped in during refactoring in 2ecdd34 (build fails when in debug mode).

Authors:
  - Artem M. Chirkin (https://github.com/achirkin)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #415
  • Loading branch information
achirkin authored Dec 10, 2021
1 parent 36e2efc commit fd54f29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/test/sparse/csr_row_slice.cu
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class CSRRowSliceTest : public ::testing::TestWithParam<CSRRowSliceInputs<value_
out_data.data(),
stream);

RAFT_CHECK_CUDA(cudaStreamSynchronize(stream));
RAFT_CUDA_TRY(cudaStreamSynchronize(stream));
}

void compare()
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/sparse/csr_to_dense.cu
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class CSRToDenseTest : public ::testing::TestWithParam<CSRToDenseInputs<value_id
std::vector<value_t> out_ref_h = params.out_ref_h;

update_device(out_ref.data(), out_ref_h.data(), out_ref_h.size(), stream);
RAFT_CHECK_CUDA(cudaStreamSynchronize(stream));
RAFT_CUDA_TRY(cudaStreamSynchronize(stream));
}

void SetUp() override
Expand Down

0 comments on commit fd54f29

Please sign in to comment.