I was running the libc benchmark, where the cache size could not be detected. The error suggested specifying the cache size manually using --L1_data_size . This didn't work because the flags were not parsed.
Adding
absl::ParseCommandLine(argc, argv);
after the benchmark::Initialize(&argc, argv) in benchmark_main.cc and adding the necessary headers fixed the problem for me.
I was running the
libc
benchmark, where the cache size could not be detected. The error suggested specifying the cache size manually using--L1_data_size
. This didn't work because the flags were not parsed.Adding
after the
benchmark::Initialize(&argc, argv)
inbenchmark_main.cc
and adding the necessary headers fixed the problem for me.