Add test for rocalutionSolver

This commit is contained in:
Tong Dong Qiu
2022-10-18 16:07:38 +02:00
parent ea73a1bf3c
commit 7e2a6800de
4 changed files with 172 additions and 0 deletions

View File

@@ -49,6 +49,11 @@ rocalutionSolverBackend<block_size>::rocalutionSolverBackend(int verbosity_, int
template <unsigned int block_size>
rocalutionSolverBackend<block_size>::~rocalutionSolverBackend() {
rocalution::stop_rocalution();
// these should be automatically release when rocalutionSolverBackend is destroyed
// however, without these, the test_rocalutionSolver segfaults
roc_solver.release();
roc_prec.release();
}