File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2241,17 +2241,17 @@ float
2241
2241
ModelInstanceState::GetCudaEventElapsedTime (
2242
2242
const cudaEvent_t& start_event, const cudaEvent_t& end_event)
2243
2243
{
2244
+ float duration = 0 ;
2244
2245
#ifdef TRITON_ENABLE_GPU
2245
2246
// [FIXME] in the case of cudaEventElapsedTime failure, should handle
2246
2247
// stats reporting more gracefully as the durations are inaccurate
2247
- float duration = 0 ;
2248
2248
LOG_IF_ERROR (
2249
2249
ConvertCUDAStatusToTritonError (
2250
2250
cudaEventElapsedTime (&duration, start_event, end_event),
2251
2251
TRITONSERVER_ERROR_INTERNAL, " Failed to capture elapsed time" ),
2252
2252
" Failed to capture elapsed time" );
2253
- return duration;
2254
2253
#endif
2254
+ return duration;
2255
2255
}
2256
2256
2257
2257
// ///////////
You can’t perform that action at this time.
0 commit comments