Closed donnaaboise closed 5 years ago
I've added timers, but they still need to be started /stopped from the cudaclaw5 code. This will require updating the arguments lists to step2_wrap and step2.
@MelodyShih added cudaStreams, which are needed for asynchronous calls.
We should add performance timers to time CUDA memory allocation and patch updates.
See
fclaw_timer.h
andfclaw_timer.c
for templates on how to add timers.I suggest timers :
FCLAW2D_TIMER_CUDA_ALLOCATION
,FCLAW2D_TIMER_CUDA_KERNEL1
,FCLAW2D_TIMER_CUDA_KERNEL2
andFCLAW2D_TIMER_CUDA_KERNEL3
.'UNACCOUNTED
, where all non-exclusive timers go. Maybe betweenFCLAW2D_TIMER_COMM
andFCLAW2D_TIMER_EXTRA1
?