From b891f0bf290b1f5d21a3d48628dc52ed9d51de4a Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Thu, 30 Jul 2015 13:23:31 +0100 Subject: [PATCH] Print out NTIMES --- cuda-stream.cu | 2 ++ ocl-stream.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cuda-stream.cu b/cuda-stream.cu index 14e0aa23..9f2a1d6d 100644 --- a/cuda-stream.cu +++ b/cuda-stream.cu @@ -73,6 +73,8 @@ int main(int argc, char *argv[]) else std::cout << "double"; std::cout << std::endl << std::endl; + std::cout << "Running kernels " << NTIMES << " times" << std::endl; + if (ARRAY_SIZE % 1024 != 0) { unsigned int OLD_ARRAY_SIZE = ARRAY_SIZE; diff --git a/ocl-stream.cpp b/ocl-stream.cpp index 6942ac90..1cd46f45 100644 --- a/ocl-stream.cpp +++ b/ocl-stream.cpp @@ -57,6 +57,8 @@ int main(int argc, char *argv[]) else std::cout << "double"; std::cout << std::endl << std::endl; + std::cout << "Running kernels " << NTIMES << " times" << std::endl; + if (ARRAY_SIZE % 1024 != 0) { unsigned int OLD_ARRAY_SIZE = ARRAY_SIZE;