"tests/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "dc86bd421ed98777112c64f61940321631c11806"
Unverified Commit 19490ac4 authored by Illia Silin's avatar Illia Silin Committed by GitHub
Browse files

Clean up kernel launch output (#569)



* clean up output from kernel_launch

* set RUN_WARMUP to 0 by default

* split the warm-up into a separate issue

---------
Co-authored-by: default avatarzjing14 <zhangjing14@gmail.com>
parent 24c9ee1d
...@@ -20,6 +20,7 @@ float launch_and_time_kernel(const StreamConfig& stream_config, ...@@ -20,6 +20,7 @@ float launch_and_time_kernel(const StreamConfig& stream_config,
#if CK_TIME_KERNEL #if CK_TIME_KERNEL
if(stream_config.time_kernel_) if(stream_config.time_kernel_)
{ {
#if DEBUG_LOG
printf("%s: grid_dim {%d, %d, %d}, block_dim {%d, %d, %d} \n", printf("%s: grid_dim {%d, %d, %d}, block_dim {%d, %d, %d} \n",
__func__, __func__,
grid_dim.x, grid_dim.x,
...@@ -29,15 +30,15 @@ float launch_and_time_kernel(const StreamConfig& stream_config, ...@@ -29,15 +30,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;
printf("Warm up 1 time\n"); printf("Warm up 1 time\n");
#endif
// warm up // warm up
kernel<<<grid_dim, block_dim, lds_byte, stream_config.stream_id_>>>(args...); kernel<<<grid_dim, block_dim, lds_byte, stream_config.stream_id_>>>(args...);
const int nrepeat = 10;
#if DEBUG_LOG
printf("Start running %d times...\n", nrepeat); printf("Start running %d times...\n", nrepeat);
#endif
hipEvent_t start, stop; hipEvent_t start, stop;
hip_check_error(hipEventCreate(&start)); hip_check_error(hipEventCreate(&start));
......
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