Skip to content

Commit

Permalink
widen timing
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Nov 14, 2023
1 parent 36b89e7 commit 1bc0fb6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/rtc_repro/src/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,18 @@ FLAMEGPU_AGENT_FUNCTION(outputdata, flamegpu::MessageNone, flamegpu::MessageBrut
return flamegpu::ALIVE;
}
)###";
flamegpu::detail::SteadyClockTimer timer;
timer.start();
auto program = jitify::experimental::Program(kernel_src, headers, options);
timer.stop();
printf("Jitify Program took %fms\n", timer.getElapsedMilliseconds());
timer = flamegpu::detail::SteadyClockTimer(); // reset
timer.start();
auto kernel = program.kernel("flamegpu::agent_function_wrapper");
timer.stop();
printf("Jitify Kernel took %fms\n", timer.getElapsedMilliseconds());
timer = flamegpu::detail::SteadyClockTimer(); // reset
const std::vector<std::string> template_args = { "outputdata_impl", "flamegpu::MessageNone", "flamegpu::MessageBruteForce" };
flamegpu::detail::SteadyClockTimer timer;
timer.start();
// Actually compile the kernel
jitify::experimental::KernelInstantiation(kernel, template_args);
Expand Down

0 comments on commit 1bc0fb6

Please sign in to comment.