Some objects such as PETSC_VIEWER_STDOUT_WORLD cannot be destroyed by users.Reported-by: maitri ksh <maitri.ksh@gmail.com>
Sys: Introduce -on_error_malloc_dump and PETSC_ERR_MEM_LEAKTo avoid a malloc dump that swamps the error output of another error,this makes calling `PetscMallocDump()` in the error handlers opt-in,
Sys: Introduce -on_error_malloc_dump and PETSC_ERR_MEM_LEAKTo avoid a malloc dump that swamps the error output of another error,this makes calling `PetscMallocDump()` in the error handlers opt-in,with a different flag (`-on_error_malloc_dump`) from the flag forcalling `PetscMallocDump()` in `PetscFinalize()` (just `-malloc_dump`).The addition of `PETSC_ERR_MEM_LEAK` allows for better error messages:`~PoolAllocator()` can detect a memory leak even if the systemis not out of memory, so the error message will not say that for`PETSC_ERR_MEM_LEAK`.
show more ...
Merge branch 'stefanozampini/no-abort' into 'main'Cannot call PETSCABORT in traceback error handlerSee merge request petsc/petsc!6747
Profiling: Add test of PetscLogEventsPause() / PetscLogEventsResume()
Profiling: Add tests of PetscLogHandler to sys/tests/ex30.c- The pattern of events and stages is made more complicated to test the fact that nested logging can represent nested stages now.- T
Profiling: Add tests of PetscLogHandler to sys/tests/ex30.c- The pattern of events and stages is made more complicated to test the fact that nested logging can represent nested stages now.- To test perfstubs without adding TAU as an optional dependency, a dummy perfstubs tool implementation is tested.New tests:- 0: tests the fact that events and stages can be registered in different orders for different processes (at least for the default log handler: this is not true of all external tools like MPE)- 1: Test flamegraph (nested log handler)- 2: Test trace log handler- 3: Test PetscLogDump() output with actions and objects logging Note that this test uses the "temporaries:" test key for the dump file Log.0- 4: Test CSV output- 5: Test MPE log handler MPE logging creates a .clog2 binary file. Without trying to add a dependency to turn it into text, if we use `strings` we can at least see if the names of the events created in the test are in the file- 6: Test perfstubs Because this relies on dlsym(RTLD_DEFAULT, ...) dynamic linking, this test can only be run on linux
Add test of PetscValidPointer generics
Cannot call PETSCABORT in traceback error handler
Need to have test harness remove -options_left to tests that test handling of errors in testsCommit-type: testing
When the user does not properly handle a returned error code and another error is detected, print a very useful message indicating what has happended.Reported-by: Stefano Zampini
test(sys): Add sys/tests/ex17.cTests PetscSynchronized*()
Fix some documentation and typos
Switch PetscFunctionList to store function pointers in a hashmap, improving lookup from O(n) to O(1)
fix "missing output file" error triggered due to merge from releaseChecking for missing output files/scratch/svcpetsc/glci-builds/t7AQTxpb/0/petsc/petsc/src/sys/tests/output/ex61_env_set_all_separ
fix "missing output file" error triggered due to merge from releaseChecking for missing output files/scratch/svcpetsc/glci-builds/t7AQTxpb/0/petsc/petsc/src/sys/tests/output/ex61_env_set_all_separate_lines.out
Sys: Updated tests
Added parallel test for GarbageKeyAllReduceIntersect_Private() implementing the sieve of Eratosthenes
Add serial intersection tests
Add env: keyword to test harness
Do not trap for floating point underflowAdd floating point underflow testcleanup PetscSetFPTrap() codeCommit-type: error-checking, bug-fix, portability-fixReported-by: Marsha Berger/spend 1.5h
Fortran binding for PetscOptionsGetScalarArray and PetscOptionsGetBoolArray
Add PETSc CI mode to allow better handling of errors and system dependent output when running in test harness-petsc_ci - automatically set for all runs in test harness-petsc_ci_portable_error_out
Add PETSc CI mode to allow better handling of errors and system dependent output when running in test harness-petsc_ci - automatically set for all runs in test harness-petsc_ci_portable_error_output - ensures all error messages (when possible are system and compiler information),should be only used in tests that are explicitly testing the error handlingThis allows proper comparisons of runs on different machines and when errors are intentionally triggered to test error handlingCommit-type: error-checking, testing-fix/spend 5h
PETSCSYS: Fix and add test for PetscGlobalMinMax
Stash communicators previously used for external packages so that they may be reused.Previously we used MPI_Comm_dup() and free() but for some MPI implementations including MPI Spectrum the MPI_Com
Stash communicators previously used for external packages so that they may be reused.Previously we used MPI_Comm_dup() and free() but for some MPI implementations including MPI Spectrum the MPI_Comm_free() does not actually return the communicator so eventually they run out.Commit-type: portability-fix\spend 3hReported-by: Elias Karabelas <elias.karabelas@uni-graz.at>
- Replace the current CUPM initialization infrastructure with PetscDevice.- Remove -petsc_use_default_null_stream and -[cuda|hip]_synchronize options- Remove PetscCUDASynchronize and PetscHIPSynchr
- Replace the current CUPM initialization infrastructure with PetscDevice.- Remove -petsc_use_default_null_stream and -[cuda|hip]_synchronize options- Remove PetscCUDASynchronize and PetscHIPSynchronize- Remove PetscCUDAInitialize(), PetscCUDAInitializeCheck(), PetscHIPInitialize(), andPetscHIPInitializeCheck()- Remove PetscCUBLASInitializeHandle(), PetscCUSOLVERDnInitializeHandle(),PetscHIPBLASInitializeHandle(), and PetscHIPSOLVERInitializeHandle().- Remove petsc_gputimer_begin and petsc_gputimer_begin- Add -device_enable, -device_select and -device_view options- Replace -[cuda|hip]_device with split options -device_enable_[cuda|hip] and -device_select_[cuda|hip]- Replace -[cuda|hip]_view with -device_view_[cuda|hip]- Add PetscDeviceInitType- Add PetscDeviceInitialize() and PetscDeviceInitialized()- Add PetscDeviceView()
SYS: fix PetscStackadd testThe alt file is needed because some CI configurations do not run -checkstack and thus produce empty output
PetscStack is on the stack now, removing the need to 'initialize' it so it can always beused. The entire API has also been intern'ed since it is only internally used in selectinstances.
123