Adding logging code
Man pages: remove .keywords: fieldsThis field is recognized by doctext from Sowing (http://wgropp.cs.illinois.edu/projects/software/sowing/doctext/node20.htm#Node20),but it doesn't seem to be unif
Man pages: remove .keywords: fieldsThis field is recognized by doctext from Sowing (http://wgropp.cs.illinois.edu/projects/software/sowing/doctext/node20.htm#Node20),but it doesn't seem to be uniformly used or maintained.Thus, remove all .keywords: fields, and a following blank line, if present.This is accomplished with GNU sed (gsed on OS X), with the following commands.*Warning* that this type of command can corrupt a .git directory,so be cautious in reusing or modifying these commands. They first lookfor and delete matching lines with a following line consisting of only whitespace,and then delete any remaining matching lines. find src/ -type f -exec gsed -i '/keywords:/ {N; /\n\s*$/d}' {} + find src/ -type f -exec gsed -i '/keywords:/d' {} + find include/ -type f -exec gsed -i '/keywords:/ {N; /\n\s*$/d}' {} + find include/ -type f -exec gsed -i '/keywords:/d' {} +Hints on the sed command obtained from: https://unix.stackexchange.com/questions/100754/how-to-delete-a-specific-line-and-the-following-blank-line-using-gnu-sed
show more ...
Introduce logging of memory usage to the PETSc event logging infrastructure.The logging can be turned on and viewed with the options -log_view -log_view_memoryThe logging requires the use of the
Introduce logging of memory usage to the PETSc event logging infrastructure.The logging can be turned on and viewed with the options -log_view -log_view_memoryThe logging requires the use of the PETSc malloc so may slow the runs slightly but since it is notdoing error checking of the memory it should not slow down the computations significently.Four pieces of information about memory are logged and display in four additional columns in the table.They are documented in the output above the table. Each column provides a particular "view" of thememory usage in the event and they complement each other.This should make it much easier for developers focusing on memory usage in their implementationsto understand the usage in the code, where the memory is being utilized, how it scales with problem size and number of processes etc.Commit-type: feature
Log: Add PetscLogEventSync()This routine should be called only if there is not a PetscObject availableto pass to PetscLogEventBegin(), but you rather have a MPI_Comm handle.
Merge branch 'master' into arcowie-rem/feature-error-logging* master: (393 commits) Bib: Update reference Mat: Doc fix Bib: Updated ref PetscDS: Doc fixes PC+LU: Do not try to refactor an
Merge branch 'master' into arcowie-rem/feature-error-logging* master: (393 commits) Bib: Update reference Mat: Doc fix Bib: Updated ref PetscDS: Doc fixes PC+LU: Do not try to refactor an already factored matrix Mat: Small fix for checking and docs Mat: Added MatSetFactorType() - Needed it when making a shell matrix look factored PetscDS: Added PetscDSUpdateBoundary() - Lets the user change the boundary condition single precision produces different convergence history p4est: has a dependency on zlib - so handle it correctly Add -mat_mffd_complex to use the Lyness complex number trick to compute J_u * v instead of differencing. Replace VecWAXPY by VecAXPY if needed Revert "Replace VecWAXPY by VecAXPY if needed" Replace VecWAXPY by VecAXPY if needed MatHermitianTransposeGetMat and MatCreateVecs ex19: Updated test filter to avoid false positives. DM: Improved Global-To-Natural docs Suggested-by: Josh L <ysjosh.lo@gmail.com> Do not build shared openblas when doing static build Upgrade OpenBLAS to 0.3.3 test: add alt output file for changes in OSX-10.14 and Xcode-10.0 [perhaps related to ML] ...Conflicts: src/vec/is/utils/vsectionis.c
PetscLogEventEndTrace: fix broken -log_trace
PetscLog: The number of dofs should be set per field
Merge branch 'master' into arcowie-rem/feature-error-logging* master: (353 commits) Configure: Pragmatic now requires Cxx11 fix compile warning mpiuni: build somempifort.o after mpiuni.mod
Merge branch 'master' into arcowie-rem/feature-error-logging* master: (353 commits) Configure: Pragmatic now requires Cxx11 fix compile warning mpiuni: build somempifort.o after mpiuni.mod Remove use of common block from MPIUNI code use was in wrong location Fortran line extends past 72 char Moved the rest of the PETSc common block variables over to petscsys module tests: fix breakage due to cd93b0e13c6da70ee1e038f55989cf888bc1d1c5 Need to use petscsys to get PETSC_COMM_SELF defined in example Mat ex23 and ex40: fix errors reported from nightly tests Put declaration on too lines because otherwise it generates an error for truncated line Move PETSC_COMM_WORLD and PETSC_COMM_SELF from common blocks to petscsys module tests: fix requires - and create out files for seqaijmkl tests KSP ex72: nested dissection is likely to be different between machines cmake: downgrade to version 3.9 - as newer versions require cxx11 compiler [which is not universal]. However stick with version 3.11 on opensolaris Mat ex23: fix memory leaks Bib: Some new refs KSP examples: add missing casts to double in printf updated GAMG KSP tests PetscRound() should be PetscRoundReal() in __fp16 ...Conflicts: include/petsclog.h src/sys/logging/plog.c src/sys/logging/utils/eventlog.c
Event logging synchronization- Remove PetscLogEventBarrierBegin/PetscLogEventBarrierEnd- Option -log_sync enables barrier synchronization for all events- A few non-collective events are disabled
Event logging synchronization- Remove PetscLogEventBarrierBegin/PetscLogEventBarrierEnd- Option -log_sync enables barrier synchronization for all events- A few non-collective events are disabled (eg. {Vec|Mat}SetValues)
Sys: Fixed initialization of EventPerf records
Merge branch 'master' into knepley/feature-error-logging* master: (221 commits) dashboard: count and list example compile failures like: fix fix-pr879-jczhang-optimize-vecscatter-multi-copy a
Merge branch 'master' into knepley/feature-error-logging* master: (221 commits) dashboard: count and list example compile failures like: fix fix-pr879-jczhang-optimize-vecscatter-multi-copy add manual page cross links for SNESLineSearchSetPostCheck() and related routines fix help manual of MatCreateSubmatrices() Reported-by: Tim Steinhoff <kandanovian@gmail.com> Add manual pages for PetscRealPart() and PetscImaginaryPart() fix compile error with missing MPI_C_DOBULE_COMPLEX fix typo Reported-by: Febrian Setianto <febrian.setianto@gmail.com> plex tutorial ex5: updated test requirements DMPlexLoad_HDF5_Xdmf_Internal: fix for complex PetscScalar. DMPlexLoad_HDF5_Xdmf_Internal: fix for 64-bit PetscInt. DMPlexBuildFromCellList_Internal: use DMPlexInvertCell_Internal (with PetscInt* arg) petscviewer.h: removed notice which is no longer relevant DMPlexCreateFromFile: document option check only if PETSC_USE_DEBUG DMPlexBuildFromCellList_Internal optionally inverts cells. ex5: new test 4 with -compare without repartitioning ex5: new test 3 using -compare ex5: HDF5 write+read moved to separate function ex5: option -format processed in ProcessOptions() ex5: added missing hdf5 requirement ...Conflicts: include/petsclog.h
Man pages: add newlines after "Notes:"This allows for proper formatting from sowing.On OS X (using gsed, not the default BSD sed), from the PETSc root directory: find src include -type f \(
Man pages: add newlines after "Notes:"This allows for proper formatting from sowing.On OS X (using gsed, not the default BSD sed), from the PETSc root directory: find src include -type f \( -name "*.c" -or -name "*.h" -or -name "*.cxx" \) | xargs gsed -i 's/Notes\s*:\s*\(\w.*\)/Notes:\n \1/'This adds a newline and 4 spaces whenever "Notes:" is followed by any "word" character, in any .c, .h, or .cxx file in src/ or include/
PetscLog: Added ability to put dog and error information in an event- This allows convergence monitoring along with performance- Report this info in the Python module- Record the data in ConvEst
Fix typos in man pages
replace use/mention of depreciated -log_summary in many placesReported-by: Pierre Jolivet <pierre.jolivet@enseeiht.fr>
Merge branch 'maint'
PetscStageLogGetStage() returned wrong id, not -1, if requested item was not foundReported-by: Glenn E Hammond <gehammo@sandia.gov>
Docs: remove PetscLogEventMPEActivate and PetscLogEventMPEDeactivate references from man pages and FAQ
Remove the use and definition of __FUNCT__ throughout the codeSince all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETScTime: 1.5 hoursThanks-t
Remove the use and definition of __FUNCT__ throughout the codeSince all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETScTime: 1.5 hoursThanks-to: Andreas Mang <andreas@ices.utexas.edu>
Remove unused and incomplete PAPI interfaceThis never provided any useful infrastructure and if was to be done in the future it would bebetter to start from scratch then use this old code.Time: .
Remove unused and incomplete PAPI interfaceThis never provided any useful infrastructure and if was to be done in the future it would bebetter to start from scratch then use this old code.Time: .1 hoursThanks-to: Jed Brown <jed@jedbrown.org>
name space Event* and Class* utility functions with PetscReported-by: nightly tests
Only generate list of all PetscFunctionLists generated in debug modesince in some circumstances where many objects are created searching thislist is very slow.Reported-by: Amneet Pal S Bhalla <am
Only generate list of all PetscFunctionLists generated in debug modesince in some circumstances where many objects are created searching thislist is very slow.Reported-by: Amneet Pal S Bhalla <amneetb@live.unc.edu>
Import capability of nested logging in PETSc using XMLCleanup contributed source to match PETSc coding standards and styleSouce code contributed by Koos Huijssen <koos.huijssen@vortech.nl> and Chr
Import capability of nested logging in PETSc using XMLCleanup contributed source to match PETSc coding standards and styleSouce code contributed by Koos Huijssen <koos.huijssen@vortech.nl> and Christiaan Klaij <C.Klaij@marin.nl>
Generate a very useful error message if PetscLogView(), PetscLogEventGetPerfInfo() or PetscLogEventGetFlops()is called with a preceeding call to PetscLogBegin() and friends (also -log_summary which
Generate a very useful error message if PetscLogView(), PetscLogEventGetPerfInfo() or PetscLogEventGetFlops()is called with a preceeding call to PetscLogBegin() and friends (also -log_summary which triggers a PetscLogBegin())Reported-by: Theler German Guillermo <gtheler@cites-gss.com>
123456