@@ -234,7 +234,7 @@ PetscErrorCode SGS_DD_TrainingSetup(Ceed ceed, User user, CeedData ceed_data, Pr
234234 PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
235235 PetscSmartRedisCall (put_tensor (smartsim -> client , "sizeInfo" , 8 , array_info , & array_info_dim , 1 , SRTensorTypeInt64 , SRMemLayoutContiguous ));
236236 PetscCall (SmartRedisVerifyPutTensor (smartsim -> client , "sizeInfo" , 8 ));
237- PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
237+ PetscCall (PetscLogEventEnd (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
238238
239239 // -- Send array that communicates if tensors are overwritten in database
240240 PetscInt tensor_overwrite [2 ] = {sgs_dd_train -> overwrite_training_data };
@@ -243,7 +243,7 @@ PetscErrorCode SGS_DD_TrainingSetup(Ceed ceed, User user, CeedData ceed_data, Pr
243243 PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
244244 PetscSmartRedisCall (put_tensor (smartsim -> client , "tensor-ow" , 9 , tensor_overwrite , dim_2 , 1 , SRTensorTypeInt64 , SRMemLayoutContiguous ));
245245 PetscCall (SmartRedisVerifyPutTensor (smartsim -> client , "tensor-ow" , 9 ));
246- PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
246+ PetscCall (PetscLogEventEnd (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
247247 }
248248 }
249249
@@ -319,7 +319,7 @@ PetscErrorCode TSMonitor_SGS_DD_Training(TS ts, PetscInt step_num, PetscReal sol
319319 PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Train , 0 , 0 , 0 , 0 ));
320320 PetscSmartRedisCall (put_tensor (smartsim -> client , array_key , array_key_len , (void * )training_data , sgs_dd_train -> training_data_array_dims , 2 ,
321321 SRTensorTypeDouble , SRMemLayoutContiguous ));
322- PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Train , 0 , 0 , 0 , 0 ));
322+ PetscCall (PetscLogEventEnd (FLUIDS_SmartRedis_Train , 0 , 0 , 0 , 0 ));
323323 PetscCall (VecRestoreArrayRead (TrainingData , & training_data ));
324324 }
325325 PetscCall (SmartRedisVerifyPutTensor (smartsim -> client , array_key , array_key_len ));
@@ -330,7 +330,7 @@ PetscErrorCode TSMonitor_SGS_DD_Training(TS ts, PetscInt step_num, PetscReal sol
330330
331331 PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
332332 PetscSmartRedisCall (put_tensor (smartsim -> client , "step" , 4 , step_array , dim_2 , 1 , SRTensorTypeInt64 , SRMemLayoutContiguous ));
333- PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
333+ PetscCall (PetscLogEventEnd (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
334334 }
335335 }
336336
@@ -353,7 +353,7 @@ PetscErrorCode TSPostStep_SGS_DD_Training(TS ts) {
353353 PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
354354 PetscSmartRedisCall (
355355 unpack_tensor (smartsim -> client , check_run_key , check_run_key_size , check_run , check_run_dims , 1 , SRTensorTypeDouble , SRMemLayoutContiguous ));
356- PetscCall (PetscLogEventBegin (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
356+ PetscCall (PetscLogEventEnd (FLUIDS_SmartRedis_Meta , 0 , 0 , 0 , 0 ));
357357 if (check_run [0 ] == 0 ) {
358358 PetscCall (PetscPrintf (user -> comm , "-- Simulation stopped by 'check-run' tensor in Redis database\n" ));
359359 PetscCall (TSSetConvergedReason (ts , TS_CONVERGED_USER ));
0 commit comments