Skip to content

Commit

Permalink
add check in cuda file
Browse files Browse the repository at this point in the history
  • Loading branch information
Skeleton003 committed Jun 13, 2024
1 parent 14ac2ef commit 86f8846
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/array/cuda/coo2csr.cu
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ CSRMatrix COOToCSR<kDGLCUDA, int32_t>(COOMatrix coo) {
}

const int64_t nnz = coo.row->shape[0];
CHECK_NO_OVERFLOW(coo.row->dtype, nnz);
// TODO(minjie): Many of our current implementation assumes that CSR must have
// a data array. This is a temporary workaround. Remove this after:
// - The old immutable graph implementation is deprecated.
Expand Down

0 comments on commit 86f8846

Please sign in to comment.