Skip to content

Commit

Permalink
Consistency in output.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed May 14, 2024
1 parent fbbdc38 commit 5618e9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rts/c/backends/cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,10 @@ static int gpu_launch_kernel(struct futhark_context* ctx,
CUDA_SUCCEED_FATAL(cuCtxSynchronize());
time_end = get_wall_time();
long int time_diff = time_end - time_start;
fprintf(ctx->log, " runtime: %ldus\n\n", time_diff);
fprintf(ctx->log, " runtime: %ldus\n", time_diff);
}
if (ctx->logging) {
fprintf(ctx->log, "\n");
}

return FUTHARK_SUCCESS;
Expand Down
5 changes: 4 additions & 1 deletion rts/c/backends/hip.h
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,10 @@ static int gpu_launch_kernel(struct futhark_context* ctx,
HIP_SUCCEED_FATAL(hipStreamSynchronize(ctx->stream));
time_end = get_wall_time();
long int time_diff = time_end - time_start;
fprintf(ctx->log, " runtime: %ldus\n\n", time_diff);
fprintf(ctx->log, " runtime: %ldus\n", time_diff);
}
if (ctx->logging) {
fprintf(ctx->log, "\n");
}

return FUTHARK_SUCCESS;
Expand Down

0 comments on commit 5618e9b

Please sign in to comment.