aboutsummaryrefslogtreecommitdiff
path: root/MicroBenchmarks/ImageProcessing/Dilate/main.cpp
diff options
context:
space:
mode:
authorPankaj Kukreja <cs15btech11029@iith.ac.in>2018-08-13 13:56:46 +0000
committerPankaj Kukreja <cs15btech11029@iith.ac.in>2018-08-13 13:56:46 +0000
commit70b360067d0f74bcce1a17dbbbaf4b09123fa7fa (patch)
tree1f6abc3b56cfa9962a5aa162cdb5aa029c0b806e /MicroBenchmarks/ImageProcessing/Dilate/main.cpp
parentc2298f7635f6cc7e4ea52b00ac7842cccc0f9102 (diff)
Removed std=c++11 flag from MicroBenchmarks/ImageProcessing/Dilate/CMakeLists.txt
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@339565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'MicroBenchmarks/ImageProcessing/Dilate/main.cpp')
-rw-r--r--MicroBenchmarks/ImageProcessing/Dilate/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/MicroBenchmarks/ImageProcessing/Dilate/main.cpp b/MicroBenchmarks/ImageProcessing/Dilate/main.cpp
index 33416fe1..834f2d76 100644
--- a/MicroBenchmarks/ImageProcessing/Dilate/main.cpp
+++ b/MicroBenchmarks/ImageProcessing/Dilate/main.cpp
@@ -6,6 +6,7 @@
#include "ImageHelper.h"
#include "dilate.h"
#include <iostream>
+#include <cstdlib>
#define BENCHMARK_LIB
#ifdef BENCHMARK_LIB
@@ -78,7 +79,7 @@ void BENCHMARK_DILATE(benchmark::State &state) {
/* This call is to warm up the cache */
dilateKernel(height, width, inputImage, outputImage, temp);
- for (auto _ : state) {
+ while (state.KeepRunning()) {
dilateKernel(height, width, inputImage, outputImage, temp);
}