Remove now unneeded SOURCE* variables from makefilesCommit-type: configure, housekeeping
Remove unneeded SOURCEH from makefilesNo longer used by docs or build
Remove empty preprocessor variables
Cleanup of mat manual pagesCommit-type: documentation
Remove unneeded declarations of LOCDIR from all the makefilesCommit-type:documentation
Add support for Mat to allow skipping preallocation by having the first round of MatSetValues use hash* MATPREALLOCATOR can be deprecated as well as possibly some other preallocation macros/routine
Add support for Mat to allow skipping preallocation by having the first round of MatSetValues use hash* MATPREALLOCATOR can be deprecated as well as possibly some other preallocation macros/routines* Optimizations such as direct support for MatSetValuesBlocked() for *BAIJ can be added in the futureCommit-type: feature/spend 25h
show more ...
Make PetscErrorCode a non-discardable enum
Fix -Wunused-parameter for CUDA files
Remove PETSC_SKIP_SPINLOCKI don't see the reason why we needed it in the first placeDisabling the SPINLOCK makes some parts of the PETSc code base not thread-safe
- Replace PetscTable with PetscHMapI.- Rename: - PetscTableCreate() -> PetscHMapICreateWithSize() - PetscTableFind() -> PetscHMapIGetWithDefault() - PetscTableAdd() -> PetscHMapISetWithMode()
Vec CUPM implementation to replace old CUDA and HIP versions
Change the remaining if !defined() header guards that were missed during The Great Formatting 2 to ifndef
source code format changes due to .clang-format changes
Remove parent, parentid, flops, time, mem, and memchildren. Deprecate PetscLogObjectParent(), PetscLogObjectMemory(), and PetscNewLog()
Fix manual pages in src/mat directory, very minor source code changeCommit-type: documentation/spend 22h
Remove braces from one-liners w/o PetscCall()
Remove braces from one-liners
clang-format: convert PETSc sources to comply with clang-format
Convert setfromoptions methods over to PetscTryTypeMethod() approachFlipped the order of the arguments for the function pointers (*setfromoptions)(PetscOptionItem*,obj); and friends to make them co
Convert setfromoptions methods over to PetscTryTypeMethod() approachFlipped the order of the arguments for the function pointers (*setfromoptions)(PetscOptionItem*,obj); and friends to make them consistent with PetscTryTypeMethod() and all the other methodsCommit-type: refactorization/spend 4h
Mat: remove constness of the i/j args in MatSetPreallocationCOO() to save memory
remove garbage from makefilesIncluding * unused FLAGS variables * All: lib that did not work * stray blank lines etcCommit-type: housekeeping/spend 1h
Merge branch 'jczhang/feature-vec-coo' into 'main'Support vector COO assemblySee merge request petsc/petsc!5171
Docs: bulk add backticks to .seealso man page fields```pythonimport osimport reimport fileinputdef _process_word(word): comma = "," if word.endswith(",") else "" return "`%s`%s" % (wor
Docs: bulk add backticks to .seealso man page fields```pythonimport osimport reimport fileinputdef _process_word(word): comma = "," if word.endswith(",") else "" return "`%s`%s" % (word.rstrip(","), comma)def _process_stripped_line(line): return " ".join(map(_process_word, line.split()))start_pattern = re.compile(r"^( *\.seealso:? )(.*$)")def process_file(filename_full): with fileinput.FileInput(filename_full, inplace=True) as f: in_block = False for line in f: line_stripped = line.strip() # end ".seealso blocks" on a blank line or C-style comment close line_modified = None if not line_stripped: in_block = False elif line_stripped.endswith("*/"): in_block = False else: match = re.match(start_pattern, line) # not stripped line if match: indent = " " * len(match.group(1)) in_block = True line_modified = match.group( 1) + _process_stripped_line( match.group(2).strip()) elif in_block: line_modified = indent + _process_stripped_line( line_stripped) if line_modified: print(line_modified) # prints to the file else: print(line, end="") # prints to the fileBASE_DIRS = ["src", "include"]EXT = [".c", ".cxx", ".cpp", ".cu", ".h", ".hpp", ".hxx"]EXCLUDE_DIRS = ["tests", "tutorials", "ftn-auto", "ftn-custom", "benchmarks"]def main(): """ Process everything """ for base in BASE_DIRS: for root, dirs, files in os.walk(base): for filename in files: if os.path.splitext(filename)[1] in EXT: filename_full = os.path.join(root, filename) print("FILE ---", filename_full) process_file(filename_full) for exclude_dir in EXCLUDE_DIRS: if exclude_dir in dirs: dirs.remove(exclude_dir)if __name__ == "__main__": main()```
MatAIJCUSPARSE: make kernel functions static
MATAIJ: use different algorithms for local and remote COO entries
12345678