Skip to content

Commit

Permalink
Merge binary input for benchmark vectors
Browse files Browse the repository at this point in the history
This allows rhs vectors in Ginkgo's binary format to be used in solver benchmarks.
This is necessary to do bitwise reproductions of solver executions, since the MatrixMarket format writer
rounds its numbers by default.

Related PR: #1584
  • Loading branch information
upsj authored Apr 4, 2024
2 parents b6494e8 + 81355a7 commit d3b859b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/solver/solver_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ struct SolverGenerator : DefaultSystemGenerator<> {
{
if (config.contains("rhs")) {
std::ifstream rhs_fd{config["rhs"].get<std::string>()};
return gko::read<Vec>(rhs_fd, std::move(exec));
return gko::read_generic<Vec>(rhs_fd, std::move(exec));
} else {
gko::dim<2> vec_size{system_matrix->get_size()[0], FLAGS_nrhs};
if (FLAGS_rhs_generation == "1") {
Expand Down

0 comments on commit d3b859b

Please sign in to comment.