Skip to content

Commit

Permalink
Update sparse_matrix.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasyVR authored Aug 4, 2022
1 parent 13dc40a commit e9e4691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/program/sparse_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void CuSparseMatrix::spmv(Program *prog, const Ndarray &x, Ndarray &y) {

void *dBuffer = NULL;
CUDAContext::get_instance().make_current();
CUDADriver::get_instance().malloc(&dBuffer, 8);
CUDADriver::get_instance().malloc(&dBuffer, bufferSize);
printf("spmv bufferSize: %zu\n", bufferSize);
CUSPARSEDriver::get_instance().cpSpMV(
cusparse_handle, CUSPARSE_OPERATION_NON_TRANSPOSE, &alpha, matrix_, vecX,
Expand Down

0 comments on commit e9e4691

Please sign in to comment.