Skip to content

Commit

Permalink
Print out NTIMES
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdeakin committed Jul 30, 2015
1 parent b339e37 commit b891f0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cuda-stream.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions ocl-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b891f0b

Please sign in to comment.