Skip to content

Commit 4622bcb

Browse files
committed
check_cuda_error
1 parent 70e4dfc commit 4622bcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/turbomind/api/python/linear.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ struct Linear::Impl {
309309

310310
workspace->barriers_size = gemm::Gemm::kBarriersSize;
311311
workspace->partials_size = gemm::Gemm::kPartialsSize;
312-
cudaMallocAsync(&workspace->barriers, workspace->barriers_size, stream);
313-
cudaMallocAsync(&workspace->partials, workspace->partials_size, stream);
314-
cudaMemsetAsync(workspace->barriers, 0, workspace->barriers_size, stream);
312+
check_cuda_error(cudaMallocAsync(&workspace->barriers, workspace->barriers_size, stream));
313+
check_cuda_error(cudaMallocAsync(&workspace->partials, workspace->partials_size, stream));
314+
check_cuda_error(cudaMemsetAsync(workspace->barriers, 0, workspace->barriers_size, stream));
315315

316316
workspace_cache_[key] = workspace;
317317
return *workspace;

0 commit comments

Comments
 (0)