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

Commit cef90dfd authored by Noric Couderc's avatar Noric Couderc

Removed unnecessary file

The class was not used.
parent b39329f5
package se.lth.cs
import papi.EventSet
/**
* Runs functions and gathers the performance counters, in Interleaved mode
* (For each counter, run the full benchmark)
*/
@Deprecated("Use PapiRunner instead")
class PapiInterleavedRunner(counterSpecification: CounterSpecification) : PapiRunner(counterSpecification) {
/**
* Runs a list of applications in "interleaved mode"
* (that is, choose the counter first and run all application with this counter,
* then pick another counter)
*/
override fun runApplications(numRuns: Int, applications: Sequence<Application<*>>)
: List<MutableMap<String, List<Long>>> {
var data : MutableList<MutableMap<String, List<Long>>> = mutableListOf()
for (app in applications) {
data.add(mutableMapOf())
}
for (kvp in counterSpec.currentSpec) {
val evset = EventSet.create(kvp.value)
println("Interleaved mode: " + "'" + kvp.key + "'")
// For each run-number
for (run in 0..numRuns) {
// We run each program
var appIndex = 0
for (app in applications) {
// We do the measurements
evset.start()
while (app.hasNext()) {
val r = app.invokeCurrentMethod();
app.tick();
}
evset.stop()
val result = app.getDataStructure()
//println(result)
// We record the data
val counterdata = evset.counters
data.get(appIndex).put(kvp.key, counterdata.toList())
appIndex++
}
}
}
return data
}
}
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