fixed error in testutils
This commit is contained in:
@@ -8,7 +8,6 @@ import org.opencv.core.Mat;
|
||||
|
||||
import de.unidue.nes.gpu.testframework.internal.TestPipeline;
|
||||
import de.unidue.nes.gpu.testframework.internal.TimingUtil;
|
||||
import de.unidue.nes.gpu.testframework.internal.tasks.GpuTask;
|
||||
import de.unidue.nes.gpu.testframework.internal.tasks.Task;
|
||||
import de.unidue.nes.gpu.utils.TimeDto;
|
||||
|
||||
@@ -78,16 +77,7 @@ public class TestUtils {// TODO: reduce code duplication
|
||||
throw new RuntimeException();
|
||||
}
|
||||
warmupUploadAndDownload();
|
||||
for (int i = 0; i < iterations; i++) {
|
||||
List<Task> tasks = TestPipeline.INSTANCE.getPipeline();
|
||||
this.originalInput.copyTo(this.input);
|
||||
for (Task t : tasks) {
|
||||
try (GpuTask task = t.toGpuTask()) {
|
||||
task.init();
|
||||
task.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void warmupUploadAndDownload() {
|
||||
|
||||
Reference in New Issue
Block a user