"test/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "b6d147ad101f18ef980d0016c1d2aa7ce5e8105c"
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, ...@@ -29,12 +29,15 @@ float launch_and_time_kernel(const StreamConfig& stream_config,
block_dim.y, block_dim.y,
block_dim.z); 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 // warm up
kernel<<<grid_dim, block_dim, lds_byte, stream_config.stream_id_>>>(args...); 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); 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