Gitlab service upgraded. Please report any problems to dl_gitadmin@cs.lth.se

Commit 7f434e7f authored by Noric Couderc's avatar Noric Couderc

Added check for PAPI data validity

Checks that the key is not already in the map before adding anything to it.
parent 3ee874c5
......@@ -112,7 +112,10 @@ open class PapiRunner(counters: CounterSpecification) {
// For each program...
var appIndex = 0
for (app in applications) {
list.get(appIndex)!![counterName] = runApplication(numRuns, evset, app)
if (list.get(appIndex).containsKey(counterName)) {
throw Exception(String.format("'%s' key already exists", counterName))
}
list.get(appIndex)[counterName] = runApplication(numRuns, evset, app)
appIndex++
}
......
Markdown is supported
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