Skip to content

Commit 00425e2

Browse files
authored
cuda : add error checking for cudaMemcpyAsync in argsort (#17599)
* cuda : add error checking for cudaMemcpyAsync in argsort (#12836) * fix indentation
1 parent 385c3da commit 00425e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/argsort.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void argsort_f32_i32_cuda_cub(ggml_cuda_pool & pool,
4444
const dim3 offset_grid((nrows + block_size - 1) / block_size);
4545
init_offsets<<<offset_grid, block_size, 0, stream>>>(d_offsets, ncols, nrows);
4646

47-
cudaMemcpyAsync(temp_keys, x, ncols * nrows * sizeof(float), cudaMemcpyDeviceToDevice, stream);
47+
CUDA_CHECK(cudaMemcpyAsync(temp_keys, x, ncols * nrows * sizeof(float), cudaMemcpyDeviceToDevice, stream));
4848

4949
size_t temp_storage_bytes = 0;
5050

0 commit comments

Comments
 (0)