Commit d8bafae9 authored by Noric Couderc's avatar Noric Couderc
Browse files

Fixed bug with runApplicationsMedian

It would fail if there are no samples. Now we filter to rule out the
values for which there are zero samples.
parent 179e2c1f
......@@ -176,8 +176,9 @@ open class PapiRunner(private val numRuns: Int, counters: CounterSpecification)
fun runApplicationsMedian(syntheticBenchmarks: List<BCBenchmarkPackage<*>>) :
List<PapiBenchmarkAnalyzer.BenchmarkRunData> {
val samples = runApplications(syntheticBenchmarks)
return samples.map {
BenchmarkRunData(it.first, it.second, medianLong(it.third))
return samples.filter { !it.third.isEmpty()}
.map {
PapiBenchmarkAnalyzer.BenchmarkRunData(it.first, it.second, medianLong(it.third))
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment