Skip to content

Commit b891f0b

Browse files
committed
Print out NTIMES
1 parent b339e37 commit b891f0b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cuda-stream.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ int main(int argc, char *argv[])
7373
else std::cout << "double";
7474
std::cout << std::endl << std::endl;
7575

76+
std::cout << "Running kernels " << NTIMES << " times" << std::endl;
77+
7678
if (ARRAY_SIZE % 1024 != 0)
7779
{
7880
unsigned int OLD_ARRAY_SIZE = ARRAY_SIZE;

ocl-stream.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ int main(int argc, char *argv[])
5757
else std::cout << "double";
5858
std::cout << std::endl << std::endl;
5959

60+
std::cout << "Running kernels " << NTIMES << " times" << std::endl;
61+
6062
if (ARRAY_SIZE % 1024 != 0)
6163
{
6264
unsigned int OLD_ARRAY_SIZE = ARRAY_SIZE;

0 commit comments

Comments
 (0)