Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasyVR committed Dec 13, 2022
1 parent 5a94d49 commit 154d40e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions taichi/program/sparse_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ std::unique_ptr<SparseSolver> make_sparse_solver(DataType dt,
}

CuSparseSolver::~CuSparseSolver() {
#if defined(TI_WITH_CUDA)
if (h_Q != nullptr)
free(h_Q);
if (h_csrRowPtrB != nullptr)
Expand Down Expand Up @@ -606,6 +607,7 @@ CuSparseSolver::~CuSparseSolver() {
CUDADriver::get_instance().mem_free(d_csrColIndB);
if (d_csrValB != nullptr)
CUDADriver::get_instance().mem_free(d_csrValB);
#endif
}
std::unique_ptr<SparseSolver> make_cusparse_solver(
DataType dt,
Expand Down

0 comments on commit 154d40e

Please sign in to comment.