Change *.cpp to *.cxx
Merge branch 'barry/2026-02-14/fix-defined-missing-braces' into 'main'Fix the inconsistent usage of #if defined XXX compared to defined(XXX)See merge request petsc/petsc!9040
Fix the inconsistent usage of #if [!]defined XXX compared to defined(XXX)Thanks-to: Pierre JolivetAn LLM Claude detected the incosnsitency it was not used to remove the inconsistency
Fix style of 6497c311e7b976d467be1503c1effce92a60525c
MPI: update the GPU-awareness check
Improve the propagation of function domain error handling in SNES, especially in the line search routines.Due to the object layering of SNESLineSearch under SNES there is some code duplication incl
Improve the propagation of function domain error handling in SNES, especially in the line search routines.Due to the object layering of SNESLineSearch under SNES there is some code duplication include both SNESLineSearchReason and SNESConvergedReason and SNESCheckFunctionNorm() and SNESLineSearchCheckFunctionNorm() and Jacobian friendsReported-by: david.knezevic@akselos.com
show more ...
Fix missing initializer
Add the logging of gpu energy- Remove unneeded PETSC_HAVE_DEVICE macro- -log_view_gpu_energy requires CUDA version >= 12.2- Use PetscDefined instead of macro
SYCL: remove the dependence on Kokkos
PetscDevice: remove C++ dependency when using --with-devicelanguage=C
checkbadSource: enforce proper style in makefiles
Fix CUDA 13 API incompatibilitiesCo-authored-by: Satish Balay <balay@mcs.anl.gov>
missing "s" for isascii and issundials
Merge remote-tracking branch 'origin/release'
sycl: use sycl::cpu_selector_v as sycl::host_selector() is removed
petscerror.h: iwyu export semi-private headerpetscerror.h cannot be included directly unless petscsys.h has alreadybeen included (and that unconditionally includes petscerror.h). Thisupdates docs
petscerror.h: iwyu export semi-private headerpetscerror.h cannot be included directly unless petscsys.h has alreadybeen included (and that unconditionally includes petscerror.h). Thisupdates docs and uses IWYU pragma export so IDEs (clangd) willautomatically include the correct header when you use things likeSETERRQ that appear petscerror.h.Fix #1254
CUPM: Fix some mult routines and make some small performance improvementsVecSeq_CUPM: Fix ::Dot, ::TDot, ::WAXPYAsync, and ::AXPBYAsync to work with non-device vectorsMat_SeqDenseCUPM: fix ::SetR
CUPM: Fix some mult routines and make some small performance improvementsVecSeq_CUPM: Fix ::Dot, ::TDot, ::WAXPYAsync, and ::AXPBYAsync to work with non-device vectorsMat_SeqDenseCUPM: fix ::SetRandom for hipMat_SeqDenseCUPM: implement conjugate on the deviceMat_SeqDenseCUPM: Fix MatMult() (and friends) when the vector is not on the deviceThis implementation assumes that the cost of moving the matrix to thehost is more expensive that moving the vector to the device, so temporarydevice copies of the host vectors are used.VecCUPM: Avoid device synchronization in some cases of ResetArray()The documentation says that the PetscDeviceSynchronization() isonly needed if CopyToDevice_() resulted in a HtoD memcpy,which would only happen if v->offloadmask == PETSC_OFFLOAD_CPU.If we test this condition, we can avoid the synchronization.This improves the peformance of MatDenseRestoreColumnVecWrite() inperformance critical loops.CUPM: use thrust::hip::par_nosync
Fix wrong case for PETSc
Fortran 90: fully embrace After 34 years!- deprecate use of 'F90' in Fortran function names- use Fortran pointers when appropriate- the new Fortran API is not backward compatible with previous ve
Fortran 90: fully embrace After 34 years!- deprecate use of 'F90' in Fortran function names- use Fortran pointers when appropriate- the new Fortran API is not backward compatible with previous versions!- also clean up inconsistent PETSc code detected by new Fortran generation tools- drop use of bfort- automatically generate all the Fortran PETSc objects, enums etc from the include files- generate most of the Fortran interface definitions and functions from the source code- simplify the number and organization of Fortran modulesCo-authored-by: Jose E. Roman <jroman@dsic.upv.es>
CUPM: remove const to fix error: expression must be a modifiable lvalueSuggested-by: Jacob Faibussowitsch <jacob.fai@gmail.com>
Check for env variable TORCHELASTIC_RUN_ID to "ensure" LOCAL_RANK env variable is truly associted with PyTorch.Reported-by: Stefano Zampini
Set proper defaults for GPU devices when running under PytTorch/niccl.Use getenv("LOCAL_RANK")Reported-by: Hong Zhang
SYCL: use sycl/sycl.hpp since CL/sycl.hpp is deprecated
Add to CI compilers flags '-Wconversion', '-Wno-sign-conversion', '-Wno-float-conversion', '-Wno-implicit-float-conversion']Also fix the code to repository to compile cleanly with these flags in th
Add to CI compilers flags '-Wconversion', '-Wno-sign-conversion', '-Wno-float-conversion', '-Wno-implicit-float-conversion']Also fix the code to repository to compile cleanly with these flags in the CI
123456