History log of /petsc/include/petscdmda_kokkos.hpp (Results 26 – 33 of 33)
Revision Date Author Comments
# db781477 25-Apr-2022 Patrick Sanan <patrick.sanan@gmail.com>

Docs: bulk add backticks to .seealso man page fields

```python
import os
import re
import fileinput

def _process_word(word):
comma = "," if word.endswith(",") else ""
return "`%s`%s" % (wor

Docs: bulk add backticks to .seealso man page fields

```python
import os
import re
import fileinput

def _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 file

BASE_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()
```

show more ...


# e8eeb4f0 04-Mar-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jczhang/feature-add-kokkos-doc' into 'main'

Add manuals for PETSc/Kokkos APIs and fully implement DMDAVecGetKokkosOffsetView()

See merge request petsc/petsc!4864


# 9dc7b89c 27-Feb-2022 Junchao Zhang <jczhang@mcs.anl.gov>

DMDA: fully implement DMDAVecGetKokkosOffsetView/DOF from 1D to 4D


# 5731e5c6 22-Feb-2022 Junchao Zhang <jczhang@mcs.anl.gov>

DMDA: remove DMDAVecGetKokkosView and friends as they are not clearly defined


# c0f4c536 05-May-2021 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jczhang/fix-kokkos-complex' into 'main'

Use Kokkos::complex when available

See merge request petsc/petsc!3904


# 11d22bbf 21-Apr-2021 Junchao Zhang <jczhang@mcs.anl.gov>

Sys: use Kokkos::complex for .kokkos.cxx files


# b8d20d50 25-Mar-2021 Satish Balay <balay@mcs.anl.gov>

Merge remote-tracking branch 'origin/jczhang/add-DMDAVecGetKokkosOffsetView'

Add DMDAVecGetKokkosOffsetView and friends

See merge request petsc/petsc!3383


# c6583b63 30-Oct-2020 Junchao Zhang <jczhang@mcs.anl.gov>

Add DMDAVecGetKokkosOffsetView and friends


12