One-liners from petsc/petsc!5344 and petsc/petsc!5557Slightly reworked regular expressiongit ls-files -z -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | while IFS= read -r -d '' file; do cat
One-liners from petsc/petsc!5344 and petsc/petsc!5557Slightly reworked regular expressiongit ls-files -z -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | while IFS= read -r -d '' file; do cat $file | tr '\n' '\r' | sed -E 's/\r([ ]*)(for|if|while|else) ([^\r]*)\{\r[ ]*Petsc([a-zA-Z]*)\(([^\r]*)\);\r[ ]*\}\r/\r\1\2 \3Petsc\4(\5);\r/g' | tr '\r' '\n' > ${file}.joe; mv ${file}.joe ${file}done
show more ...
Brain dead fixes for useless casts
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
Rename rules.doc and rules.utils because GitLab treats the former as a MS Word document.Thanks-to: Jed Brown
Remove first and last empty lines
Sys: Add ps_timer_destroy_ to perfstubs for memory neutrality.
Fix -Wstrict-prototypes
non-test and tutorial makefiles only need rules.doc not the full rulesCommit-type: documentation
Only makefiles in the test and tutorial directories need lib/petsc/conf/testCommit-type: housekeeping
Remove now unneeded SOURCE* variables from makefilesCommit-type: configure, housekeeping
Remove unneeded SOURCEH from makefilesNo longer used by docs or build
Remove unneeded declarations of LOCDIR from all the makefilesCommit-type:documentation
fix for hip builds with cray env
Add the perfstubs package to petsc.Example usage:Configure PETSc with: ./configure --download-mpich--download-fblaslapackBuild PETScSetup TAU:wget http://tau.uoregon.edu/tau.tgz./configure
Add the perfstubs package to petsc.Example usage:Configure PETSc with: ./configure --download-mpich--download-fblaslapackBuild PETScSetup TAU:wget http://tau.uoregon.edu/tau.tgz./configure -cc=mpicc -c++=mpicxx -mpi -bfd=download -unwind=download &&make installexport PATH=<tau dir>/x86_64/bin:$PATHBuild and run PETSc example with TAU:cd $PETSC_DIR/src/snes/tutorialsmake ex56mpirun -n 4 tau_exec ./ex56 <args>This should produce 4 profile...* files with profile data that can beviewed with paraprof/pprof:Reading Profile files in profile.*NODE 0;CONTEXT 0;THREAD 0:---------------------------------------------------------------------------------------%Time Exclusive Inclusive #Call #Subrs Inclusive Name msec total msec usec/call---------------------------------------------------------------------------------------100.0 26 1,838 1 41322 1838424 .TAUapplication 73.2 1 1,345 2 168 672950SNESSolve 62.2 3 1,142 2 1282 571442SNESJacobianEval 62.0 1,136 1,138 2 76 569494DMPlexJacobianFE 60.1 0.046 1,105 1 32 1105001 Solve1 15.2 87 279 5 11102 55943 MeshSetup 13.2 0.315 241 1 32 241765 Solve0 7.8 80 144 38785 38785 4MPI_Allreduce() 7.0 69 128 6 43386 21491DualSpaceSetUp 6.2 1 114 4 54 28536PCSetUp 6.0 12 110 2 892 55407PCSetUp_GAMG+ 3.9 70 70 1 0 70888MPI_Init_thread() 3.7 68 68 41747 0 2 MPICollective Sync 3.6 8 66 4 3536 16548SNESFunctionEval 2.6 45 48 171 171 281MPI_Bcast() 1.9 34 34 7836 0 4MPI_Barrier() 1.8 0.567 33 2 68 16912 GAMGCoarsen