Skip to content

Commit

Permalink
finalize instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
superwhiskers committed Jul 25, 2024
1 parent 4f516a9 commit c7db2ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 3 additions & 8 deletions examples/r_KLU_KLU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,9 @@ int main(int argc, char* argv[])
rhs_file.close();

// Now convert to CSR.
if (i < 2) {
A->updateFromCoo(A_coo, ReSolve::memory::HOST);
vec_rhs->update(rhs, ReSolve::memory::HOST, ReSolve::memory::HOST);
vec_rhs->setDataUpdated(ReSolve::memory::HOST);
} else {
A->updateFromCoo(A_coo, ReSolve::memory::HOST);
vec_rhs->update(rhs, ReSolve::memory::HOST, ReSolve::memory::HOST);
}
A->updateFromCoo(A_coo, ReSolve::memory::HOST);
vec_rhs->update(rhs, ReSolve::memory::HOST, ReSolve::memory::HOST);
vec_rhs->setDataUpdated(ReSolve::memory::HOST);
std::cout << "COO to CSR completed. Expanded NNZ: " << A->getNnzExpanded() << std::endl;
// Now call direct solver
int status;
Expand Down
3 changes: 0 additions & 3 deletions examples/r_LUSOL_LUSOL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ int main(int argc, char* argv[])
bool output_existed = std::filesystem::exists(std::filesystem::path("./lusol_output.csv"));
std::fstream output("./lusol_output.csv", std::ios::out | std::ios::app);

// TODO: add this to KLU test code
// TODO: remove KLU refactorization for a fair comparison

if (!output_existed) {
output << "matrix_file_path,rhs_file_path,system,total_systems,n_rows,n_columns,initial_nnz,cleaned_nnz,ns_factorization,ns_solving,residual_2_norm,matrix_inf_norm,residual_inf_norm,solution_inf_norm,residual_scaled_norm,l_nnz,l_elements,u_nnz,u_elements\n";
}
Expand Down

0 comments on commit c7db2ee

Please sign in to comment.