diff --git a/src/main/java/lancs/dividend/oclBenchMapper/RodiniaRunner.java b/src/main/java/lancs/dividend/oclBenchMapper/RodiniaRunner.java index 23d6b00..32e5db1 100644 --- a/src/main/java/lancs/dividend/oclBenchMapper/RodiniaRunner.java +++ b/src/main/java/lancs/dividend/oclBenchMapper/RodiniaRunner.java @@ -98,6 +98,9 @@ private ResponseMessage executeKmeans(String execPrefix, DataSetSize dsetSize) { String stdout = ShellCmdExecutor.executeCmd(cmdBld.toString(), true); System.out.println(stdout); + if(stdout.contains("ERROR")) + return new ErrorResponseMessage("Benchmark execution failed.\n" + stdout); + return new BenchStatsResponseMessage(stdout); }