Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 15, 2022
1 parent 6aeb29d commit 3c291a5
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 @@ -255,7 +255,7 @@ void CuSparseMatrix::spmv(Program *prog, const Ndarray &x, Ndarray &y) {
&beta, vecY, CUDA_R_32F, CUSPARSE_CSRMV_ALG1, &bufferSize);

void *dBuffer = NULL;
if(bufferSize>0)
if (bufferSize > 0)
CUDADriver::get_instance().malloc(&dBuffer, bufferSize);
CUSPARSEDriver::get_instance().cpSpMV(
cusparse_handle, CUSPARSE_OPERATION_NON_TRANSPOSE, &alpha, matrix_, vecX,
Expand Down

0 comments on commit 3c291a5

Please sign in to comment.