| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _patch.py | 17 extent: SourceRange 20 def __init__(self, value: str, extent: SourceRange, ctxlines: int) -> None: 33 self.extent = extent 34 begin = extent.start 36 map(len, extent.raw(num_context=ctxlines).splitlines(True)[:ctxlines]) 65 extent = self.extent 67 begin_offset = extent.start.offset + src_offset 68 end_offset = extent.end.offset + src_offset 88 return self.deleter() and other.extent in self.extent 94 extent: SourceRange [all …]
|
| H A D | _cursor.py | 130 extent: SourceRange 154 self.extent = cursor.extent 162 self.extent = SourceRange.cast(cursor.extent) 357 name = SourceLocation(cursor.extent.start, cursor.translation_unit).raw().strip() 468 return True, SourceRange(child.extent).raw(tight=True), child 519 extent = cursor.extent 522 begin = extent.start 525 extent = SourceRange.from_locations(begin, fnline) 526 return _util.get_formatted_source_from_source_range(extent, **kwargs)
|
| H A D | _linter.py | 225 start = func.extent.start 231 num_before_context=2, num_after_context=startline - seen[combo_tup][0].extent.start.line 629 start = SourceLocation.cast(func.extent.start, tu=func.translation_unit) 691 … tu_cursor, Diagnostic(Diagnostic.Kind.WARNING, parsing_diag, str(pe), tu_cursor.extent.start) 786 tmp[2] = Addline.diff_line_re.sub(Addline(patch.extent.start.line), tmp[2]) 792 patch_extent = patch.extent 795 prev_patch_extent = previous_patch.extent 810 for patch in sorted(patch_list, key=lambda x: x.extent.start.line):
|
| H A D | _util.py | 130 return get_raw_source_from_source_range(cursor.extent, **kwargs) 178 return get_formatted_source_from_source_range(cursor.extent, **kwargs)
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _util.py | 61 func_cursor.extent.start, patch=Patch.from_cursor(call[0], valid_func_name) 63 f'Due to {obj.get_formatted_blurb()}', location=obj.extent.start 150 obj.extent.start 279 Diagnostic.Kind.ERROR, _CodeDiags.diags.incompatible_function, mess, obj.extent.start 330 obj_decl.extent.start 366 Diagnostic.Kind.ERROR, _CodeDiags.diags.incompatible_classid, mess, obj_classid.extent.start, 369 f'For {obj.get_formatted_blurb()}', location=obj.extent.start 576 f"Index value is of unexpected type '{idx_cursor.canonical.kind}'", obj.extent.start 586 'Potential argument mismatch, could not determine integer value', obj.extent.start 613 obj, Diagnostic(Diagnostic.Kind.WARNING, diag_name, mess, obj.extent.start) [all …]
|
| /petsc/src/dm/impls/da/kokkos/ |
| H A D | dagetov.kokkos.cxx | 120 kv = PetscScalarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1)); in DMDAVecRestoreKokkosOffsetView_Private() 152 kv = ConstPetscScalarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1)); in DMDAVecRestoreKokkosOffsetView() 185 …= PetscScalarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1) * ov->extent(2)… in DMDAVecRestoreKokkosOffsetView_Private() 217 …stPetscScalarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1) * ov->extent(2)… in DMDAVecRestoreKokkosOffsetView() 391 kv = PetscScalarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1)); in DMDAVecRestoreKokkosOffsetViewDOF_Private() 423 kv = ConstPetscScalarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1)); in DMDAVecRestoreKokkosOffsetViewDOF() 456 …= PetscScalarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1) * ov->extent(2)… in DMDAVecRestoreKokkosOffsetViewDOF_Private() 488 …stPetscScalarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1) * ov->extent(2)… in DMDAVecRestoreKokkosOffsetViewDOF() 521 …calarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1) * ov->extent(2) * ov->e… in DMDAVecRestoreKokkosOffsetViewDOF_Private() 553 …calarKokkosViewType<MemorySpace>(ov->data(), ov->extent(0) * ov->extent(1) * ov->extent(2) * ov->e… in DMDAVecRestoreKokkosOffsetViewDOF()
|
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex13.c | 8 PetscInt extent[3] = {1, 1, 1}, refine = 0, layers = 0, three; in main() local 17 …rray("-extent", "Number of replicas for each of three dimensions", NULL, extent, (three = 3, &thre… in main() 25 …PetscCall(DMPlexCreateTPSMesh(PETSC_COMM_WORLD, tps_type, extent, periodic, distribute, refine, la… in main()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_section.py | 175 extent = docstring._attr['sowing_char_range'] 176 macro_ident = docstring.make_source_range('M', extent[0], extent.start.line) 181 self.extent, highlight=False 215 docstring.extent.view() 241 header_path = find_header(Path(str(docstring.extent.start.file)).parent) 291 self.extent, highlight=False 394 self.extent, highlight=False 483 location=reason_cursor.extent.start 509 docstring.extent, highlight=False 513 … crange=SourceRange.from_locations(arg_cursors[0].extent.start, arg_cursors[-1].extent.end) [all …]
|
| H A D | _doc_str.py | 466 extent: SourceRange 487 self.raw, self.extent = self._get_sanitized_comment_and_range_from_cursor(self.cursor) 531 if cursor.extent < doc_extent: 578 extent = SourceRange.cast(clx_extent, tu=cursor.translation_unit) 580 if not cls._is_valid_docstring(cursor, raw, extent): 599 extent = extent.resized(lbegin=raw.count('\n', 0, start), cbegin=None, cend=None) 601 return raw, extent 626 start = self.extent.start 716 src_range = self.extent 817 linkage_extent = SourceRange.cast(linkage_cursor.extent) [all …]
|
| H A D | _doc_section_base.py | 216 extent: SourceRange 293 self.extent = None # type: ignore[assignment] 332 self.extent = SourceRange.from_locations(self.lines()[0][0].start, self.lines()[-1][0].end) 443 Diagnostic.Kind.ERROR, diag, mess, docstring.extent, highlight=False 460 Diagnostic.Kind.ERROR, diag, mess, self.extent, highlight=highlight 518 prevline = docstring.extent.start.line - 1 568 Diagnostic(Diagnostic.Kind.ERROR, self.diags.section_header_unique, mess, self.extent.start) 801 Diagnostic.Kind.ERROR, self.diags.verbose_description, mess, self.extent, highlight=False 1103 super()._do_setup(ds, Inspector(self.extent.start.line if self else 0))
|
| /petsc/src/ksp/pc/impls/bjacobi/bjkokkos/ |
| H A D | bjkokkoskernels.kokkos.cxx | 76 const int N = _D.extent(0); in operator ()() 88 ScratchPadIntViewType r(member.team_scratch(1), _r.extent(1)); in operator ()() 89 ScratchPadIntViewType c(member.team_scratch(1), _c.extent(1)); in operator ()() 95 …ScratchPadValuesViewType diag(member.team_scratch(1), last_matrix - first_matrix, _diag.extent(1)); in operator ()() 111 …Kokkos::TeamPolicy<DeviceType> auto_policy(ceil(1. * _D.extent(0) / _N_team), Kokkos::AUTO(), Kokk… in run() 112 …Kokkos::TeamPolicy<DeviceType> tuned_policy(ceil(1. * _D.extent(0) / _N_team), _team_size, _vector… in run() 134 size_t bytes_row_ptr = IntViewType1D::shmem_size(_r.extent(1)); in run() 135 size_t bytes_col_idc = IntViewType1D::shmem_size(_c.extent(1)); in run() 136 size_t bytes_2D_1 = ViewType2D::shmem_size(_N_team, _X.extent(1)); in run()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex7.c | 93 PetscInt *extent; in PrintVertex() local 101 PetscCall(PetscContainerGetPointer(c, &extent)); in PrintVertex() 105 PetscCall(PetscPrintf(comm, " %" PetscInt_FMT, (v / sum) % extent[d])); in PrintVertex() 106 if (d < dim) sum *= extent[d]; in PrintVertex() 407 const PetscInt *extent, Nc = 12; in TestFreeField() local 439 PetscCall(PetscContainerGetPointer(c, &extent)); in TestFreeField() 440 PetscCall(MatCreateFFT(PetscObjectComm((PetscObject)dm), dim, extent, MATFFTW, &FT)); in TestFreeField() 444 coef[d] = 2. * PETSC_PI / extent[d]; in TestFreeField() 445 V *= extent[d]; in TestFreeField() 462 for (PetscInt d = 0, prod = 1; d < dim; prod *= extent[d], ++d) { in TestFreeField() [all …]
|
| /petsc/src/sys/tests/ |
| H A D | ex8.c | 35 MPI_Aint lb, extent; in MakeDatatype() local 36 PetscCallMPI(MPI_Type_get_extent(*dtype, &lb, &extent)); in MakeDatatype() 37 …PetscCheck(extent == sizeof(Unit), PETSC_COMM_WORLD, PETSC_ERR_LIB, "New type has extent %d != siz… in MakeDatatype()
|
| /petsc/src/vec/vec/impls/seq/kokkos/ |
| H A D | veckokkosimpl.hpp | 69 PetscScalarKokkosView v_d(array, v_dual.extent(0)); in UpdateArray() 70 PetscScalarKokkosViewHost v_h(array, v_dual.extent(0)); in UpdateArray() 81 PetscScalarKokkosViewHost v_h(array, v_dual.extent(0)); in UpdateArray() 92 PetscScalarKokkosView v_d(array, v_dual.extent(0)); in UpdateArray()
|
| H A D | veckok.kokkos.cxx | 694 PetscCall(PetscLogGpuToCpu(xkok->v_dual.extent(0) * sizeof(PetscScalar))); in VecCopy_SeqKokkos()
|
| /petsc/src/mat/impls/aij/seq/kokkos/ |
| H A D | aijkok.kokkos.cxx | 98 …} else if (A->rmap->n && aijkok->diag_dual.extent(0) == 0) { // MatProduct might directly produce … in MatAssemblyEnd_SeqAIJKokkos() 746 auto ca = MatScalarKokkosView("a", aa.extent(0) + ba.extent(0)); in MatSeqAIJKokkosMergeMats() 747 auto ci = MatRowMapKokkosView("i", ai.extent(0)); in MatSeqAIJKokkosMergeMats() 748 auto cj = MatColIdxKokkosView("j", aj.extent(0) + bj.extent(0)); in MatSeqAIJKokkosMergeMats() 1029 PetscCall(PetscLogGpuFlops(aijkok->a_dual.extent(0))); in MatScale_SeqAIJKokkos() 1252 PetscCallCXX(akok = new Mat_SeqAIJKokkos(m, n, j_d.extent(0), i_d, j_d, a_d)); in MatCreateSeqAIJKokkosWithKokkosViews() 1339 …PetscCall(PetscLogGpuFlops(xkok->a_dual.extent(0) * 2)); // Because we scaled X and then added it … in MatAXPY_SeqAIJKokkos() 1495 PetscInt nblocks = bs.extent(0) - 1; in MatInvertVariableBlockDiagonal_SeqAIJKokkos() 1679 …const PetscBool has_lower = factors->iL_d.extent(0) ? PETSC_TRUE : PETSC_FALSE; // fal… in MatSeqAIJKokkosSolveCheck() 1680 …const PetscBool has_upper = factors->iU_d.extent(0) ? PETSC_TRUE : PETSC_FALSE; // tru… in MatSeqAIJKokkosSolveCheck() [all …]
|
| H A D | aijkok.hpp | 153 …KokkosView i_d(const_cast<MatRowMapType *>(csr.graph.row_map.data()), csr.graph.row_map.extent(0)); in Mat_SeqAIJKokkos()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexcreate.c | 2414 PetscInt *extent, *lextent; in DMPlexCreateHypercubicMesh_Internal() local 2416 PetscCall(PetscMalloc1(dim, &extent)); in DMPlexCreateHypercubicMesh_Internal() 2419 extent[d] = edges[d]; in DMPlexCreateHypercubicMesh_Internal() 2424 PetscCall(PetscContainerSetPointer(c, extent)); in DMPlexCreateHypercubicMesh_Internal() 3833 …MPlexCreateTPSMesh_Internal(DM dm, DMPlexTPSType tpstype, const PetscInt extent[], const DMBoundar… in DMPlexCreateTPSMesh_Internal() argument 3856 Npipes[0] = (extent[0] + 1) * extent[1] * extent[2]; in DMPlexCreateTPSMesh_Internal() 3857 Npipes[1] = extent[0] * (extent[1] + 1) * extent[2]; in DMPlexCreateTPSMesh_Internal() 3858 Npipes[2] = extent[0] * extent[1] * (extent[2] + 1); in DMPlexCreateTPSMesh_Internal() 3859 Njunctions = extent[0] * extent[1] * extent[2]; in DMPlexCreateTPSMesh_Internal() 3860 Ncuts = 2 * (extent[0] * extent[1] + extent[1] * extent[2] + extent[2] * extent[0]); in DMPlexCreateTPSMesh_Internal() [all …]
|
| H A D | plexsfc.c | 75 static PetscBool IjkActive(Ijk extent, Ijk l) in IjkActive() argument 77 if (l.i < extent.i && l.j < extent.j && l.k < extent.k) return PETSC_TRUE; in IjkActive()
|
| H A D | plexgeometry.c | 767 box->extent[d] = box->upper[d] - box->lower[d]; in PetscGridHashSetGrid() 771 box->n[d] = PetscCeilReal(box->extent[d] / h[d]); in PetscGridHashSetGrid() 774 box->h[d] = box->extent[d] / n[d]; in PetscGridHashSetGrid()
|
| /petsc/include/petsc/private/ |
| H A D | kokkosimpl.hpp | 132 size_t bytes = v_dual.extent(0) * sizeof(Type); in KokkosDualViewSyncHost() 149 size_t bytes = v_dual.extent(0) * sizeof(Type); in KokkosDualViewSyncDevice()
|
| H A D | dmpleximpl.h | 86 PetscReal extent[3]; /* The box size */ member
|
| /petsc/include/petsc/mpiuni/ |
| H A D | mpi.h | 480 …#define MPI_Type_extent(datatype, extent) (*(extent) = MPI_sizeof(datatype), MPI_SUCC… argument 481 …#define MPI_Type_get_extent(datatype, lb, extent) (*(lb) = 0, *(extent) = MPI_sizeof(datatype… argument 482 …#define MPI_Type_get_true_extent(datatype, lb, extent) (*(lb) = 0, *(extent) = MPI_sizeof(datatype… argument 607 …ne MPI_Type_create_resized(oldtype, lb, extent, newtype) (MPIUNI_ARG(oldtype), MPIUNI_ARG(lb), MPI… argument
|
| /petsc/src/mat/impls/aij/mpi/kokkos/ |
| H A D | mpiaijkok.kokkos.cxx | 937 …tMergeGetLaunchParameters<DefaultExecutionSpace>(mm->irootloc.extent(0), mm->rootBuf.extent(0), -1… in MatMPIAIJKokkosBcastBegin() 970 PetscInt workSets = (irootloc.extent(0) + rowsPerTeam - 1) / rowsPerTeam; in MatMPIAIJKokkosBcastBegin() 977 if (r < irootloc.extent(0)) { in MatMPIAIJKokkosBcastBegin() 1113 MatColIdxKokkosView oldj = mm->C2_mid.graph.entries, newj(NoInit("j"), oldj.extent(0)); in MatProductSymbolic_MPIAIJKokkos_AtB() 1115 …rallel_for(Kokkos::RangePolicy<>(PetscGetKokkosExecutionSpace(), 0, oldj.extent(0)), KOKKOS_LAMBDA… in MatProductSymbolic_MPIAIJKokkos_AtB() 1225 MatColIdxKokkosView oldj = mm->C2_mid.graph.entries, newj(NoInit("j"), oldj.extent(0)); in MatProductSymbolic_MPIAIJKokkos_AB() 1227 …rallel_for(Kokkos::RangePolicy<>(PetscGetKokkosExecutionSpace(), 0, oldj.extent(0)), KOKKOS_LAMBDA… in MatProductSymbolic_MPIAIJKokkos_AB() 1628 …Kokkos::parallel_for(Kokkos::RangePolicy<>(exec, 0, vsend.extent(0)), KOKKOS_LAMBDA(const PetscCou… in MatSetValuesCOO_MPIAIJKokkos()
|
| /petsc/include/ |
| H A D | petscmacros.h | 1180 return std::extent<T, std::rank<T>::value - 1>::value; in PETSC_STATIC_ARRAY_LENGTH()
|