add block-jacobi partitioner option. Add block-jacobi matrix for use in OpenCL preconditioner

Rebased
This commit is contained in:
Tong Dong Qiu
2022-04-21 17:18:32 +02:00
parent aba4c5f487
commit e360c00b73
23 changed files with 582 additions and 57 deletions

View File

@@ -118,7 +118,7 @@ testOpenclSolver(const boost::property_tree::ptree& prm, Matrix<bz>& matrix, Vec
}
auto mat2 = matrix; // deep copy to make sure nnz values are in contiguous memory
// matrix created by readMatrixMarket() did not have contiguous memory
bridge->solve_system(&mat2, rhs, *wellContribs, result);
bridge->solve_system(&mat2, &mat2, 0, rhs, *wellContribs, result);
bridge->get_result(x);
return x;