Commit 16ed1906 authored by Adam Osewski's avatar Adam Osewski
Browse files

More warm-up & kernel iterations

parent c9be15ca
......@@ -29,12 +29,15 @@ float launch_and_time_kernel(const StreamConfig& stream_config,
block_dim.y,
block_dim.z);
const int nrepeat = 10;
const int nrepeat = 100;
printf("Warm up 1 time\n");
printf("Warm up 10 time\n");
// warm up
for(int i = 0; i < 10; ++i)
{
kernel<<<grid_dim, block_dim, lds_byte, stream_config.stream_id_>>>(args...);
}
printf("Start running %d times...\n", nrepeat);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment