mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
deserialization assumed benchmarks in same order, but we shuffle them.
This commit is contained in:
parent
a4f956b1da
commit
39228cb224
@ -511,18 +511,7 @@ void run_benchmarks(vector<benchmark_t>& benchmarks)
|
||||
first_benchmark_to_run > 0 &&
|
||||
first_benchmark_to_run < benchmarks.size())
|
||||
{
|
||||
bool found_mismatch = false;
|
||||
for (size_t i = 0; i < benchmarks.size(); i++) {
|
||||
if (deserialized_benchmarks[i].compact_product_size != benchmarks[i].compact_product_size ||
|
||||
deserialized_benchmarks[i].compact_block_size != benchmarks[i].compact_block_size ||
|
||||
deserialized_benchmarks[i].use_default_block_size != benchmarks[i].use_default_block_size)
|
||||
{
|
||||
cerr << "Mismatch in serialized session. Ignoring it." << endl;
|
||||
found_mismatch = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
use_deserialized_benchmarks = !found_mismatch;
|
||||
use_deserialized_benchmarks = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user