Home
last modified time | relevance | path

Searched refs:stage (Results 1 – 25 of 97) sorted by relevance

1234

/petsc/src/sys/logging/state/
H A Dlogstate.c88 PetscErrorCode PetscLogStateStagePush(PetscLogState state, PetscLogStage stage) in PetscLogStateStagePush() argument
94 …PetscCheck(stage >= 0 && stage < num_stages, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Invalid s… in PetscLogStateStagePush()
96 PetscCall(PetscIntStackPush(state->stage_stack, stage)); in PetscLogStateStagePush()
97 state->current_stage = stage; in PetscLogStateStagePush()
205 …ErrorCode PetscLogStateStageRegister(PetscLogState state, const char sname[], PetscLogStage *stage) in PetscLogStateStageRegister() argument
210 PetscCall(PetscLogRegistryStageRegister(state->registry, sname, stage)); in PetscLogStateStageRegister()
212 s = *stage; in PetscLogStateStageRegister()
301 PetscErrorCode PetscLogStateStageSetActive(PetscLogState state, PetscLogStage stage, PetscBool isAc… in PetscLogStateStageSetActive() argument
304 …etscCheck(stage >= 0 && stage < state->bt_num_stages, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "… in PetscLogStateStageSetActive()
306 …for (PetscInt e = 0; e < state->bt_num_events; e++) PetscCall(PetscBTSet(state->active, stage + e … in PetscLogStateStageSetActive()
[all …]
/petsc/lib/petsc/bin/
H A Dpetsclogformat.py274 for stage in sumStages:
279 print("Stage: "+stage)
280 L = sumStages[stage].keys()
304 …ges[stage][event]["time"]/time,100*sumStages[stage][event]["flops"]/flops,100*sumStages[stage][eve…
307stage][event]["count"],"&",'%5.0f' % values[0],"&",'%5.0f' % values[1],"&",'%5.0f' % values[2],"&"…
309stage][event]["count"]," ",'%5.0f' % values[0],'%5.0f' % values[1],'%5.0f' % values[2],'%5.0f' %…
311 … values = [100*sumStages[stage][event]["time"]/time,100*sumStages[stage][event]["flops"]/flops]
314 …umStages[stage][event]["count"],"&",'%5.0f' % values[0],"&",'%5.0f' % values[1],"&",'%8.0f' % ((su…
316 …umStages[stage][event]["count"]," ",'%5.0f' % values[0],'%5.0f' % values[1]," ",'%8.0f' % ((su…
H A DtasClasses.py36 for stage in range(numStages):
40 row[item]=stage
42 row[item] = '{:.3g}'.format((self.fileData['Times'][stage]))
44 row[item] = '{:.3g}'.format((self.fileData['Flops'][stage])/1000000000)
46 … row[item] = '{:.3g}'.format((self.fileData['Mean Flops'][stage])/1000000000)
48 row[item]='{:.3g}'.format((self.fileData[item][stage]))
55 for stage in range(numStages):
59 row[item] = stage
67 row[item] = '{:.3g}'.format((field.fieldData[item][stage]))
/petsc/src/binding/petsc4py/test/
H A Dtest_log.py67 for stage in self._get_stages():
68 active = stage.getActive()
70 self.assertTrue(stage.active)
71 stage.setActive(False)
72 active = stage.getActive()
74 self.assertFalse(stage.active)
76 for stage in self._get_stages():
77 stage.setActive(True)
78 stage.active = True
79 active = stage.getActive()
[all …]
/petsc/src/ts/tutorials/output/
H A Dex20adj_6.out13 Store in checkpoint number 10 with stage values (located in RAM)
17 Store in checkpoint number 13 with stage values (located in RAM)
22 Restore in checkpoint number 13 with stage values (located in RAM)
24 Restore in checkpoint number 13 with stage values (located in RAM)
26 Restore in checkpoint number 10 with stage values (located in RAM)
27 Store in checkpoint number 11 with stage values (located in RAM)
29 Restore in checkpoint number 11 with stage values (located in RAM)
31 Restore in checkpoint number 10 with stage values (located in RAM)
34 Store in checkpoint number 4 with stage values (located in RAM)
35 Store in checkpoint number 7 with stage values (located in RAM)
[all …]
H A Dex20adj_4.out32 Skip the step from 12 to 13 (stage values already checkpointed)
37 Skip the step from 12 to 13 (stage values already checkpointed)
41 Skip the step from 10 to 11 (stage values already checkpointed)
46 Skip the step from 10 to 11 (stage values already checkpointed)
50 Skip the step from 8 to 9 (stage values already checkpointed)
55 Skip the step from 8 to 9 (stage values already checkpointed)
59 Skip the step from 6 to 7 (stage values already checkpointed)
64 Skip the step from 6 to 7 (stage values already checkpointed)
68 Skip the step from 0 to 1 (stage values already checkpointed)
81 Skip the step from 4 to 5 (stage values already checkpointed)
[all …]
H A Dex30_0_dirk_fieldsplit.out23 step 0 stage 0 nonlinear its 0, linear its 0
26 step 0 stage 1 nonlinear its 1, linear its 1
29 step 0 stage 2 nonlinear its 1, linear its 1
H A Dex30_0_dirk.out23 step 0 stage 0 nonlinear its 0, linear its 0
26 step 0 stage 1 nonlinear its 1, linear its 1
29 step 0 stage 2 nonlinear its 1, linear its 1
H A Dex30_annulus.out17 step 0 stage 0 nonlinear its 1, linear its 1
19 step 1 stage 0 nonlinear its 1, linear its 1
H A Dex30_hdf5_diagnostic.out17 step 0 stage 0 nonlinear its 1, linear its 1
19 step 1 stage 0 nonlinear its 1, linear its 1
H A Dex30_vtk_diagnostic.out17 step 0 stage 0 nonlinear its 1, linear its 1
19 step 1 stage 0 nonlinear its 1, linear its 1
/petsc/src/sys/logging/handler/impls/default/
H A Dlogdefault.c327 …PetscLogHandlerDefaultGetStageInfo(PetscLogHandler handler, PetscLogStage stage, PetscStagePerf **… in PetscLogHandlerDefaultGetStageInfo() argument
333 PetscCall(PetscLogStageInfoArrayResize(def->stages, stage + 1)); in PetscLogHandlerDefaultGetStageInfo()
334 PetscCall(PetscLogStageInfoArrayGetRef(def->stages, stage, &stage_info)); in PetscLogHandlerDefaultGetStageInfo()
339 …LogHandlerGetEventPerfInfo_Default(PetscLogHandler handler, PetscLogStage stage, PetscLogEvent eve… in PetscLogHandlerGetEventPerfInfo_Default() argument
346 if (stage < 0) PetscCall(PetscLogStateGetCurrentStage(handler->state, &stage)); in PetscLogHandlerGetEventPerfInfo_Default()
347 PetscCall(PetscLogHandlerDefaultGetStageInfo(handler, stage, &stage_info)); in PetscLogHandlerGetEventPerfInfo_Default()
356 …LogHandlerGetStagePerfInfo_Default(PetscLogHandler handler, PetscLogStage stage, PetscEventPerfInf… in PetscLogHandlerGetStagePerfInfo_Default() argument
361 if (stage < 0) PetscCall(PetscLogStateGetCurrentStage(handler->state, &stage)); in PetscLogHandlerGetStagePerfInfo_Default()
362 PetscCall(PetscLogHandlerDefaultGetStageInfo(handler, stage, &stage_perf_info)); in PetscLogHandlerGetStagePerfInfo_Default()
367 …PetscLogHandlerDefaultGetClassPerf(PetscLogHandler handler, PetscLogStage stage, PetscLogClass cls… in PetscLogHandlerDefaultGetClassPerf() argument
[all …]
/petsc/src/sys/logging/handler/interface/
H A Dloghandler.c289 PetscErrorCode PetscLogHandlerStagePush(PetscLogHandler h, PetscLogStage stage) in PetscLogHandlerStagePush() argument
293 PetscTryTypeMethod(h, stagepush, stage); in PetscLogHandlerStagePush()
316 PetscErrorCode PetscLogHandlerStagePop(PetscLogHandler h, PetscLogStage stage) in PetscLogHandlerStagePop() argument
320 PetscTryTypeMethod(h, stagepop, stage); in PetscLogHandlerStagePop()
365 PetscErrorCode PetscLogHandlerGetEventPerfInfo(PetscLogHandler handler, PetscLogStage stage, PetscL… in PetscLogHandlerGetEventPerfInfo() argument
371 …gHandler, PetscLogStage, PetscLogEvent, PetscEventPerfInfo **), (handler, stage, event, event_info… in PetscLogHandlerGetEventPerfInfo()
392 PetscErrorCode PetscLogHandlerGetStagePerfInfo(PetscLogHandler handler, PetscLogStage stage, PetscE… in PetscLogHandlerGetStagePerfInfo() argument
398 …erfInfo_C", (PetscLogHandler, PetscLogStage, PetscEventPerfInfo **), (handler, stage, stage_info)); in PetscLogHandlerGetStagePerfInfo()
549 PetscErrorCode PetscLogHandlerEventDeactivatePush(PetscLogHandler handler, PetscLogStage stage, Pet… in PetscLogHandlerEventDeactivatePush() argument
553 …rEventDeactivatePush_C", (PetscLogHandler, PetscLogStage, PetscLogEvent), (handler, stage, event)); in PetscLogHandlerEventDeactivatePush()
[all …]
/petsc/src/sys/logging/
H A Dplog.c287 PetscLogStage stage = orig_stack->stack[s]; in PetscLogHandlerStart() local
288 PetscCall(PetscLogHandlerStagePush(h, stage)); in PetscLogHandlerStart()
289 PetscCall(PetscIntStackPush(temp_stack, stage)); in PetscLogHandlerStart()
290 petsc_log_state->current_stage = stage; in PetscLogHandlerStart()
339 PetscLogStage stage = orig_stack->stack[s]; in PetscLogHandlerStop() local
341 PetscCall(PetscIntStackPush(temp_stack, stage)); in PetscLogHandlerStop()
344 PetscLogStage stage; in PetscLogHandlerStop() local
347 PetscCall(PetscIntStackPop(temp_stack, &stage)); in PetscLogHandlerStop()
351 PetscCall(PetscLogHandlerStagePop(h, stage)); in PetscLogHandlerStop()
749 PetscErrorCode PetscLogStageRegister(const char sname[], PetscLogStage *stage) in PetscLogStageRegister() argument
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DLog.pyx13 """Create a log stage.
24 stage : LogStage
25 The log stage. If a stage already exists with name ``name`` then
37 cdef LogStage stage = get_LogStage(name)
38 if stage is not None: return stage
42 stage = reg_LogStage(name, stageid)
43 return stage
278 """The log stage identifier."""
298 """Push a stage on the logging stack.
310 """Pop a stage from the logging stack.
[all …]
/petsc/src/sys/tutorials/output/
H A Dex7_0.out2 [0:time_removed:PetscLogHandlerStagePush_Ex7 ] Pushing initial stage "Main Stage"
4 [0:time_removed:PetscLogHandlerStagePush_Ex7 ] Pushing stage stage "Stage 1" (replacing "Main S…
11 [0:time_removed:PetscLogHandlerStagePop_Ex7 ] Popping stage "Stage 1" (back to "Main Stage")
13 [0:time_removed:PetscLogHandlerStagePop_Ex7 ] Popping initial stage "Main Stage"
/petsc/src/ksp/ksp/tutorials/output/
H A Dex39_1.out1 Initialization stage
4 Initialization stage: creating level 2
11 General setup stage
17 General setup stage
23 General setup stage
H A Dex40_1.out2 Initialization stage
5 Initialization stage: creating level 2
12 General setup stage
18 General setup stage
24 General setup stage
H A Dex38_1.out1 Initialization stage
4 Initialization stage: creating level 2
15 General setup stage
/petsc/src/sys/logging/handler/impls/perfstubs/
H A Dlogperfstubs.c49 PetscEventPS stage = {NULL, 0}; in PetscLogHandlerDestroy_Perfstubs() local
51 PetscCall(PetscLogPSArrayGet(ps->stages, i, &stage)); in PetscLogHandlerDestroy_Perfstubs()
52 PetscStackCallExternalVoid("ps_timer_destroy_", ps_timer_destroy_(stage.timer)); in PetscLogHandlerDestroy_Perfstubs()
137 …tic PetscErrorCode PetscLogHandlerStagePush_Perfstubs(PetscLogHandler handler, PetscLogStage stage) in PetscLogHandlerStagePush_Perfstubs() argument
143 if (stage >= ps->stages->num_entries) PetscCall(PetscLogHandlerPSUpdateStages(handler)); in PetscLogHandlerStagePush_Perfstubs()
144 PetscCall(PetscLogPSArrayGet(ps->stages, stage, &ps_event)); in PetscLogHandlerStagePush_Perfstubs()
149 …atic PetscErrorCode PetscLogHandlerStagePop_Perfstubs(PetscLogHandler handler, PetscLogStage stage) in PetscLogHandlerStagePop_Perfstubs() argument
155 if (stage >= ps->stages->num_entries) PetscCall(PetscLogHandlerPSUpdateStages(handler)); in PetscLogHandlerStagePop_Perfstubs()
156 PetscCall(PetscLogPSArrayGet(ps->stages, stage, &ps_event)); in PetscLogHandlerStagePop_Perfstubs()
/petsc/src/ksp/ksp/tutorials/
H A Dex56.c12 static PetscErrorCode MaybeLogStagePush(PetscLogStage stage) in MaybeLogStagePush() argument
14 return log_stages ? PetscLogStagePush(stage) : PETSC_SUCCESS; in MaybeLogStagePush()
35 PetscLogStage stage[6]; in main() local
60 PetscCall(PetscLogStageRegister("Setup", &stage[0])); in main()
61 PetscCall(PetscLogStageRegister("Solve", &stage[1])); in main()
62 PetscCall(PetscLogStageRegister("2nd Setup", &stage[2])); in main()
63 PetscCall(PetscLogStageRegister("2nd Solve", &stage[3])); in main()
64 PetscCall(PetscLogStageRegister("3rd Setup", &stage[4])); in main()
65 PetscCall(PetscLogStageRegister("3rd Solve", &stage[5])); in main()
67 for (i = 0; i < (PetscInt)PETSC_STATIC_ARRAY_LENGTH(stage); i++) stage[i] = -1; in main()
[all …]
/petsc/src/dm/impls/plex/tests/
H A Dex2.c8 PetscLogStage stage; in main() local
12 PetscCall(PetscLogStageRegister("Interpolate", &stage)); in main()
24 PetscCall(PetscLogStagePush(stage)); in main()
H A Dex9.c223 PetscLogStage stage; in TestCone() local
232 PetscCall(PetscLogStageRegister("DMPlex Cone Test", &stage)); in TestCone()
234 PetscCall(PetscLogStagePush(stage)); in TestCone()
247 PetscCall(PetscLogEventGetPerfInfo(stage, event, &eventInfo)); in TestCone()
266 PetscLogStage stage; in TestTransitiveClosure() local
275 PetscCall(PetscLogStageRegister("DMPlex Transitive Closure Test", &stage)); in TestTransitiveClosure()
277 PetscCall(PetscLogStagePush(stage)); in TestTransitiveClosure()
292 PetscCall(PetscLogEventGetPerfInfo(stage, event, &eventInfo)); in TestTransitiveClosure()
315 PetscLogStage stage; in TestVecClosure() local
326 PetscCall(PetscLogStageRegister("DMPlex Vector Closure with Index Test", &stage)); in TestVecClosure()
[all …]
/petsc/src/dm/partitioner/impls/multistage/
H A Dmspart.c24 PetscInt stage; member
66 …if (!p->stagedm || p->stage == 0) PetscCall(PetscViewerASCIIPrintf(viewer, "Multistage graph parti… in PetscPartitionerView_Multistage()
96 …if (!p->stagedm || l == p->stage) PetscCall(PetscViewerASCIIPrintf(viewer, "Stage %" PetscInt_FMT … in PetscPartitionerView_Multistage()
100 …if (!p->stagedm || l == p->stage) PetscCall(PetscViewerASCIIPrintf(viewer, "Stage %" PetscInt_FMT … in PetscPartitionerView_Multistage()
103 if (format == PETSC_VIEWER_ASCII_INFO_DETAIL && (!p->stagedm || l == p->stage)) { in PetscPartitionerView_Multistage()
540 PetscErrorCode PetscPartitionerMultistageSetStage_Multistage(PetscPartitioner part, PetscInt stage,… in PetscPartitionerMultistageSetStage_Multistage() argument
548stage >= 0 && stage < p->levels, PetscObjectComm((PetscObject)part), PETSC_ERR_ARG_OUTOFRANGE, "In… in PetscPartitionerMultistageSetStage_Multistage()
550 p->stage = stage; in PetscPartitionerMultistageSetStage_Multistage()
557 PetscErrorCode PetscPartitionerMultistageGetStage_Multistage(PetscPartitioner part, PetscInt *stage in PetscPartitionerMultistageGetStage_Multistage() argument
563 if (stage) *stage = p->stage; in PetscPartitionerMultistageGetStage_Multistage()
[all …]
/petsc/src/vec/vec/tutorials/
H A Dperformance.c15 PetscLogStage stage; in main() local
40 PetscCall(PetscLogStageRegister("Work on GPU", &stage)); in main()
41 PetscCall(PetscLogStagePush(stage)); in main()

1234