| /petsc/src/binding/petsc4py/test/ |
| H A D | test_log.py | 1 # -------------------------------------------------------------------- 7 petsc4py.init(sys.argv + ['-log_view']) 9 # -------------------------------------------------------------------- 14 # -------------------------------------------------------------------- 21 self.stage1 = PETSc.Log.Stage('Stage 1') 22 self.stage2 = PETSc.Log.Stage('Stage 2') 28 self.event2 = PETSc.Log.Event('Event 2') # no class 36 self.assertEqual(self.event2.name, 'Event 2') 39 self.assertEqual(self.stage1.name, 'Stage 1') 40 self.assertEqual(self.stage2.name, 'Stage 2') [all …]
|
| /petsc/lib/petsc/bin/ |
| H A D | petsclogformat.py | 246 return Sorted.index(a) - Sorted.index(b) 249 …Prints a simple table that displays the percent of time, flops, etc for each event in each stage''' 257 print(" & & \multicolumn{4}{c}{--------------- Percent of -------------} & \\\\") 262 print(" --------- Percent of ------") 274 for stage in sumStages: 279 print("Stage: "+stage) 280 L = sumStages[stage].keys() 287 elif event.startswith("SNES"): space = 2 289 elif event.startswith("KSP"): space = 2 295 space = 2 [all …]
|
| /petsc/src/ts/tutorials/output/ |
| H A D | ex20adj_6.out | 4 TSTrajectorySet: stepnum 2, time 0.002 (stages 1) 13 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) [all …]
|
| H A D | ex20adj_4.out | 5 TSTrajectorySet: stepnum 2, time 0.002 (stages 1) 15 Store in checkpoint number 2 (located in RAM) 32 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) 48 Restore in checkpoint number 2 (located in RAM) 50 Skip the step from 8 to 9 (stage values already checkpointed) 53 Restore in checkpoint number 2 (located in RAM) 55 Skip the step from 8 to 9 (stage values already checkpointed) [all …]
|
| H A D | ex30_0_dirk.out | 1 ---------------------------- 3 dim : 2 13 ---------------------------- 14 ---------- Testing Jacobian ------------- 15 …Run with -snes_test_jacobian_view and optionally -snes_test_jacobian <threshold> to show difference 16 of hand-coded and finite difference Jacobian entries greater than <threshold>. 17 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is 18 O(1.e-8), the hand-coded Jacobian is probably correct. 19 ||J - Jfd||_F/||J||_F = 7.63695e-14, ||J - Jfd||_F = 7.42506e-13 20 0 TS: time 0., energy 0.796955, intp -3.07049e-21, ell 0. [all …]
|
| H A D | ex30_0_dirk_fieldsplit.out | 1 ---------------------------- 3 dim : 2 13 ---------------------------- 14 ---------- Testing Jacobian ------------- 15 …Run with -snes_test_jacobian_view and optionally -snes_test_jacobian <threshold> to show difference 16 of hand-coded and finite difference Jacobian entries greater than <threshold>. 17 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is 18 O(1.e-8), the hand-coded Jacobian is probably correct. 19 ||J - Jfd||_F/||J||_F = 7.63695e-14, ||J - Jfd||_F = 7.42506e-13 20 0 TS: time 0., energy 0.796955, intp -3.07049e-21, ell 0. [all …]
|
| /petsc/ |
| H A D | .gitlab-ci.yml | 2 # stage-1 take only a few minutes; they do not run the full test suite or external packages. 4 # stage-2 runs on MCS systems and may take 10 to 15 minutes. They run the full test suite but with … 6 # stage-3 runs on MCS systems and may take an hour or more. They run the full test suite and heavil… 8 # The stage-(n) tests are only started if all of the stage-(n-1) tests run without error 9 # You can limit the testing by using the variable STAGE with value 1 or 2 13 - stage-1 14 - stage-2 15 - stage-3 16 - stage-4 19 GIT_CLEAN_FLAGS: -ffdxq [all …]
|
| /petsc/src/sys/tests/output/ |
| H A D | ex72_0.out | 1 [0] <loghandler:nested> PetscLogHandlerNestedEventEnd(): Log event Event-2 wasn't ended, ending it … 2 [0] <loghandler:nested> PetscLogHandlerNestedEventEnd(): Log event Event-1 wasn't ended, ending it … 3 [0] <loghandler:nested> PetscLogHandlerNestedEventEnd(): Log event Event-2 wasn't ended, ending it … 4 Main Stage time_removed 5 Main Stage;User Stage time_removed 6 Main Stage;User Stage;Event-1 time_removed 7 Main Stage;User Stage;Event-1;Event-2 time_removed 8 Main Stage;Event-1 time_removed 9 Main Stage;Event-1;Event-2 time_removed
|
| /petsc/src/sys/tutorials/output/ |
| H A D | ex7_0.out | 2 [0:time_removed:PetscLogHandlerStagePush_Ex7 ] Pushing initial stage "Main Stage" 4 …me_removed:PetscLogHandlerStagePush_Ex7 ] Pushing stage stage "Stage 1" (replacing "Main Stage… 5 [0:time_removed:PetscLogHandlerEventBegin_Ex7 ] Event "Event 2" started: now running 1 times 6 [0:time_removed:PetscLogHandlerEventSync_Ex7 ] Event "Event 1" synced: took 6.13e-07 seconds 7 [0:time_removed:PetscLogHandlerEventBegin_Ex7 ] Event "Event 1" started: now running 2 times 10 [0:time_removed:PetscLogHandlerEventEnd_Ex7 ] Event "Event 2" stopped: now running 0 times 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" 14 2 events were seen by the handler
|
| /petsc/src/sys/tests/ |
| H A D | ex68.c | 26 …PetscCall(PetscOptionsBool("-main_visible", "The logging visibility of the main stage", NULL, main… in main() 27 …PetscCall(PetscOptionsBool("-unrelated_visible", "The logging visibility of the unrelated stage", … in main() 33 - Pausing events should send the log data for the runtime initialization in main() 34 to the Main Stage in main() 36 - Turning the Main Stage invisible should hide it from -log_view in main() 38 So the runtime initialization should be more or less missing from -log_view. */ in main() 50 PetscCall(PetscLogStageRegister("Unrelated stage 1", &unrelated_stage_1)); in main() 51 PetscCall(PetscLogStageRegister("Unrelated stage 2", &unrelated_stage_2)); in main() 52 PetscCall(PetscLogStageGetId("Main Stage", &main_stage)); in main() 61 …PetscCheck(main_visible == get_main_visible, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Get/Set stage visib… in main() [all …]
|
| /petsc/src/sys/logging/handler/interface/ |
| H A D | loghandler.c | 7 PetscLogHandlerCreate - Create a log handler for profiling events and stages. PETSc 14 . comm - the communicator for synchronizing and viewing events with this handler 17 . handler - the `PetscLogHandler` 43 PetscLogHandlerDestroy - Destroy a `PetscLogHandler` 48 . handler - handler to be destroyed 63 if (--((PetscObject)h)->refct > 0) PetscFunctionReturn(PETSC_SUCCESS); in PetscLogHandlerDestroy() 65 PetscCall(PetscLogStateDestroy(&h->state)); in PetscLogHandlerDestroy() 73 …PetscLogHandlerSetState - Set the logging state that provides the stream of events and stages for … 78 + h - the `PetscLogHandler` 79 - state - the `PetscLogState` [all …]
|
| /petsc/src/ksp/ksp/tutorials/output/ |
| H A D | ex39_1.out | 1 Initialization stage 4 Initialization stage: creating level 2 5 Level 2 can be treated directly. 6 Algorithm will use 2 levels. 9 After 2 iterations residual norm is 0.018130 10 After 2 iterations Rayleigh quotient of residual is 0.040674 11 General setup stage 12 Adding candidate vector 2 17 General setup stage 23 General setup stage [all …]
|
| H A D | ex40_1.out | 2 Initialization stage 5 Initialization stage: creating level 2 6 Level 2 can be treated directly. 7 Algorithm will use 2 levels. 10 After 2 iterations residual norm is 0.010110 11 After 2 iterations Rayleigh quotient of residual is 0.041124 12 General setup stage 13 Adding candidate vector 2 18 General setup stage 24 General setup stage [all …]
|
| H A D | ex38_1.out | 1 Initialization stage 4 Initialization stage: creating level 2 5 Level 2 can be treated directly. 6 Algorithm will use 2 levels. 9 After 2 iterations residual norm is 0.000045 10 After 2 iterations Rayleigh quotient of residual is 0.007357 15 General setup stage 16 Adding candidate vector 2 19 1 KSP Residual norm < 1.e-11
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 10 …" title = {High-order accurate entropy-stable discontinuous collocated Galerkin methods with th… 24 PetscInt stage; member 26 /* Stage partitioners */ 54 PetscPartitioner_MS *p = (PetscPartitioner_MS *)part->data; in PetscPartitionerView_Multistage() 66 …if (!p->stagedm || p->stage == 0) PetscCall(PetscViewerASCIIPrintf(viewer, "Multistage graph parti… in PetscPartitionerView_Multistage() 69 for (PetscInt l = 0; l < p->levels; l++) { in PetscPartitionerView_Multistage() 70 PetscPartitioner ppart = p->ppart[l]; in PetscPartitionerView_Multistage() 78 pgroup = p->lgroup[0]; in PetscPartitionerView_Multistage() 95 if (gem) uniq--; in PetscPartitionerView_Multistage() 96 …if (!p->stagedm || l == p->stage) PetscCall(PetscViewerASCIIPrintf(viewer, "Stage %" PetscInt_FMT … in PetscPartitionerView_Multistage() [all …]
|
| /petsc/src/sys/logging/handler/impls/default/ |
| H A D | logdefault.c | 14 eventInfo->visible = PETSC_TRUE; in PetscEventPerfInfoInit() 15 eventInfo->id = -1; in PetscEventPerfInfoInit() 16 eventInfo->dof[0] = -1.0; in PetscEventPerfInfoInit() 17 eventInfo->dof[1] = -1.0; in PetscEventPerfInfoInit() 18 eventInfo->dof[2] = -1.0; in PetscEventPerfInfoInit() 19 eventInfo->dof[3] = -1.0; in PetscEventPerfInfoInit() 20 eventInfo->dof[4] = -1.0; in PetscEventPerfInfoInit() 21 eventInfo->dof[5] = -1.0; in PetscEventPerfInfoInit() 22 eventInfo->dof[6] = -1.0; in PetscEventPerfInfoInit() 23 eventInfo->dof[7] = -1.0; in PetscEventPerfInfoInit() [all …]
|
| /petsc/src/ts/impls/implicit/glle/ |
| H A D | glle.h | 13 PetscInt q; /* stage-order of the method */ 20 PetscScalar *alpha; /* X_n(t_n) - X_{n-1}(t_n) = - alpha^T h^{p+1} x^{(p+1)}(t_n) */ 21 PetscScalar *beta; /* - beta^T h^{p+2} x^{(p+2)}(t_n) */ 22 PetscScalar *gamma; /* - gamma^T h^{p+2} f' x^{(p+1)}(t_n) + O(h^{p+3}) */ 26 /* h^{p+2}x^{(p+2)}(t_n) ~= phi[1]*h*Ydot + psi[1]*X[1:] */ 27 /* h^{p+2}f' x^{(p+1)}(t_n) ~= phi[2]*h*Ydot + psi[2]*X[1:] */ 29 PetscScalar *psi; /* dim=[3][r-1], [0 psi^T] of B,J,W 2007 */ 34 PetscBool fsal; /* First Same As Last: X[1] = h*Ydot[s-1] (and stiffly accurate) */ 41 …re only stored so that they can be printed in TSView_GLLE() without making these schemes full-blown 57 …Vec *himom; /* len=3, Estimates of h^{p+1}x^{(p+1)}, h^{p+2}x^{(p+2)}, h^{p+2}(df/dx) x^{(p+1… [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Log.pyx | 1 # -------------------------------------------------------------------- 6 # -------------------------------------------------------------------- 12 def Stage(cls, name: str) -> LogStage: member in Log 13 """Create a log stage. 18 ---------- 20 Stage name. 23 ------- 24 stage : LogStage 25 The log stage. If a stage already exists with name ``name`` then 29 -------- [all …]
|
| /petsc/src/sys/logging/ |
| H A D | plog.c | 22 PetscInt petsc_log_gid = -1; /* Global threadId counter */ 23 PETSC_TLS PetscInt petsc_log_tid = -1; /* Local threadId */ 153 PetscAssertPointer(handler, 2); in PetscLogTryGetHandler() 171 PetscLogGetDefaultHandler - Get the default log handler if it is running. 176 . handler - the default `PetscLogHandler`, or `NULL` if it is not running. 182 if the options flags `-log_all` or `-log_view` is given without arguments, 183 or for `-log_view :output:format` if `format` is not `ascii_xml` or `ascii_flamegraph`. 197 PetscAssertPointer(handler, 2); in PetscLogGetHandler() 204 PetscLogGetState - Get the `PetscLogState` for PETSc's global logging, used 212 . state - The `PetscLogState` changed by registrations (such as [all …]
|
| /petsc/src/benchmarks/ |
| H A D | benchmarkExample.py | 61 …pipe = Popen(command, cwd=cwd, stdin=None, stdout=PIPE, stderr=PIPE, bufsize=-1, shell=True, unive… 71 a.append('-'+key) 73 a.append('-'+key+' '+str(value)) 103 cmd += ' -n ' + str(numProcs) + ' ' 105 cmd += ' -hostfile hostfile ' 112 out, err, ret = self.runShellCommand('qsub -q gpu '+filename, log = log) 131 stageName = row["Stage Name"] 162 stage = m.Stages[stageName] 163 if name in stage: 166 event = stage[name][0] [all …]
|
| /petsc/src/ts/impls/explicit/rk/ |
| H A D | rk.h | 10 PetscReal *bembed; /* Embedded formula of order one less (order-1) */ 25 …Vec *YdotRHS; /* Function evaluations for the non-stiff part and contains all compone… 26 …Vec *YdotRHS_fast; /* Function evaluations for the non-stiff part and contains fast compon… 27 …Vec *YdotRHS_slow; /* Function evaluations for the non-stiff part and contains slow compon… 28 …Vec *VecsDeltaLam; /* Increment of the adjoint sensitivity w.r.t IC at stage … 30 …Vec VecDeltaMu; /* Increment of the adjoint sensitivity w.r.t P at stage … 31 Vec *VecsDeltaLam2; /* Increment of the 2nd-order adjoint sensitivity w.r.t IC at stage */ 32 Vec VecDeltaMu2; /* Increment of the 2nd-order adjoint sensitivity w.r.t P at stage */
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex9.c | 30 options->dim = 2; in ProcessOptions() 31 options->cellSimplex = PETSC_TRUE; in ProcessOptions() 32 options->spectral = PETSC_FALSE; in ProcessOptions() 33 options->interpolate = PETSC_FALSE; in ProcessOptions() 34 options->refinementLimit = 0.0; in ProcessOptions() 35 options->numFields = 0; in ProcessOptions() 36 options->numComponents = NULL; in ProcessOptions() 37 options->numDof = NULL; in ProcessOptions() 38 options->reuseArray = PETSC_FALSE; in ProcessOptions() 39 options->errors = PETSC_FALSE; in ProcessOptions() [all …]
|
| /petsc/src/snes/impls/ms/ |
| H A D | ms.c | 15 PetscReal *betasub; /* Subdiagonal of beta in Shu-Osher form */ 26 SNESMSTableau tableau; /* Tableau in low-storage form */ 31 SNESMSRegisterAll - Registers all of the multi-stage methods in `SNESMS` 52 …0000000000E+00, -7.0304722367110606E-01, -1.9836719667506464E-01, -1.6023843981863788E+00, 9.44838… in SNESMSRegisterAll() 53 …025767083920E+00, 5.6150921583923230E-01, 7.4151723494934041E-01, 3.1714538168600587E-01, 4.64… in SNESMSRegisterAll() 54 …+00, 0.0000000000000000E+00, 6.7968174970583317E-01, -4.1755042846051737E-03, -1.91156681299238… in SNESMSRegisterAll() 56 …000000000000000E+00, 5.3275427433201750E-01, 6.0143544663985238E-01, 4.5874077053842177E-01, 2.754… in SNESMSRegisterAll() 57 …753115429481929E-01, 7.4018896368655618E-01, 6.5963574086583309E-03, 4.6747795645517759E-01, 1.331… in SNESMSRegisterAll() 66 { /* Van Leer, Tai, and Powell (1989) 1 stage, order 1 */ in SNESMSRegisterAll() 70 { /* Van Leer, Tai, and Powell (1989) 2 stage, order 1 */ in SNESMSRegisterAll() [all …]
|
| /petsc/src/sys/logging/handler/impls/trace/ |
| H A D | logtrace.c | 14 PetscLogHandler_Trace tr = (PetscLogHandler_Trace)h->data; in PetscLogHandlerEventBegin_Trace() 19 PetscLogStage stage; in PetscLogHandlerEventBegin_Trace() local 22 if (!tr->petsc_tracetime) PetscCall(PetscTime(&tr->petsc_tracetime)); in PetscLogHandlerEventBegin_Trace() 23 tr->petsc_tracelevel++; in PetscLogHandlerEventBegin_Trace() 26 PetscCall(PetscLogStateGetCurrentStage(state, &stage)); in PetscLogHandlerEventBegin_Trace() 30 …tscFPrintf(PETSC_COMM_SELF, tr->petsc_tracefile, "%s[%d] %g Event begin: %s\n", tr->petsc_tracespa… in PetscLogHandlerEventBegin_Trace() 31 …for (size_t i = 0; i < PetscMin(sizeof(tr->petsc_tracespace), 2 * tr->petsc_tracelevel); i++) tr->… in PetscLogHandlerEventBegin_Trace() 32 tr->petsc_tracespace[PetscMin(127, 2 * tr->petsc_tracelevel)] = '\0'; in PetscLogHandlerEventBegin_Trace() 33 PetscCall(PetscFFlush(tr->petsc_tracefile)); in PetscLogHandlerEventBegin_Trace() 39 PetscLogHandler_Trace tr = (PetscLogHandler_Trace)h->data; in PetscLogHandlerEventEnd_Trace() [all …]
|
| /petsc/src/vec/vec/tutorials/ |
| H A D | performance.c | 2 /* This program produces the results for Argonne Technical Report ANL-19/41. 4 repository: https://gitlab.com/hannah_mairs/summit-performance */ 15 PetscLogStage stage; in main() local 19 PetscCall(PetscOptionsGetInt(NULL, NULL, "-n", &n, NULL)); in main() 39 /* register a stage work on GPU */ in main() 40 PetscCall(PetscLogStageRegister("Work on GPU", &stage)); in main() 41 PetscCall(PetscLogStagePush(stage)); in main() 69 nsize: 2 74 args: -vec_type mpicuda 79 args: -vec_type mpihip
|