| /petsc/src/ksp/pc/impls/tfs/ |
| H A D | comm.c | 65 PetscInt type, dest; in PCTFS_giop() local 105 dest = PCTFS_my_id ^ mask; in PCTFS_giop() 106 if (PCTFS_my_id > dest) { in PCTFS_giop() 107 PetscCallMPI(MPI_Send(vals, n, MPIU_INT, dest, MSGTAG2 + PCTFS_my_id, MPI_COMM_WORLD)); in PCTFS_giop() 109 …PetscCallMPI(MPI_Recv(work, n, MPIU_INT, MPI_ANY_SOURCE, MSGTAG2 + dest, MPI_COMM_WORLD, &status)); in PCTFS_giop() 118 dest = PCTFS_my_id ^ mask; in PCTFS_giop() 119 if (PCTFS_my_id < dest) { in PCTFS_giop() 120 PetscCallMPI(MPI_Send(vals, n, MPIU_INT, dest, MSGTAG4 + PCTFS_my_id, MPI_COMM_WORLD)); in PCTFS_giop() 122 …PetscCallMPI(MPI_Recv(vals, n, MPIU_INT, MPI_ANY_SOURCE, MSGTAG4 + dest, MPI_COMM_WORLD, &status)); in PCTFS_giop() 142 PetscInt type, dest; in PCTFS_grop() local [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | check-ci-settings.sh | 8 dest=$(lib/petsc/bin/maint/check-merge-branch.sh) 10 if git diff --exit-code HEAD..."${dest}" -- .gitlab-ci.yml lib/petsc/conf/rules; then 11 printf "Success! Using current CI settings as in gitlab-ci.yml in %s!\n" "$dest" 13 … Using old CI settings in gitlab-ci.yml! Please rebase to %s to use current CI settings.\n" "$dest"
|
| H A D | check-merge-branch.sh | 23 dest=origin/release 25 dest=origin/main 27 echo ${dest}
|
| H A D | testharness_util.py | 96 parser.add_option('-s', '--startdir', dest='startdir', 99 parser.add_option('-d', '--datafilespath', dest='datafilespath', 102 parser.add_option('-a', '--action', dest='action', 105 parser.add_option('-p', '--petsc_dir', dest='petsc_dir',
|
| H A D | check-each-commit.sh | 3 dest=$(lib/petsc/bin/maint/check-merge-branch.sh) 4 for commit in $(git log --reverse --format=format:%H "$dest"..HEAD)
|
| H A D | exampleslog.py | 434 parser.add_option('-f', '--logfile', dest='logfile', 436 parser.add_option('-l', '--logdir', dest='logdir', 438 parser.add_option('-p', '--petsc_dir', dest='petsc_dir', 441 parser.add_option('-o', '--outfile', dest='outfile', 444 parser.add_option('-v', '--verbosity', dest='verbosity', 447 parser.add_option('-b', '--branch', dest='branch',
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | runtests.py | 23 dest='verbose', 32 dest='verbose', 41 dest='include', 51 dest='exclude', 61 dest='patterns', 69 dest='failfast', 76 dest='builddir', 84 dest='path', 93 dest='arch', 102 dest='summary', [all …]
|
| /petsc/src/ksp/ksp/utils/lmvm/dense/ |
| H A D | cd_utils.c | 19 PetscScalar *dest; in VecCyclicShift() local 28 PetscCall(VecGetArrayWriteAndMemType(X, &dest, &dest_memtype)); in VecCyclicShift() 30 PetscCall(VecRestoreArrayWriteAndMemType(X, &dest)); in VecCyclicShift() 36 PetscCall(PetscArraycpy(dest, &src[d], m - d)); in VecCyclicShift() 37 PetscCall(PetscArraycpy(&dest[m - d], src, d)); in VecCyclicShift() 42 PetscCall(PetscDeviceRegisterMemory(dest, dest_memtype, m * sizeof(*dest))); in VecCyclicShift() 44 PetscCall(PetscDeviceArrayCopy(dctx, dest, &src[d], m - d)); in VecCyclicShift() 45 PetscCall(PetscDeviceArrayCopy(dctx, &dest[m - d], src, d)); in VecCyclicShift() 47 PetscCall(VecRestoreArrayWriteAndMemType(X, &dest)); in VecCyclicShift()
|
| /petsc/include/petsc/mpiuni/ |
| H A D | mpi.h | 414 … datatype, dest, tag, comm) (MPIUNI_ARG(buf), MPIUNI_ARG(c… argument 419 … datatype, dest, tag, comm) (MPIUNI_ARG(buf), MPIUNI_ARG(co… argument 420 … datatype, dest, tag, comm) (MPIUNI_ARG(buf), MPIUNI_ARG(co… argument 421 … datatype, dest, tag, comm) (MPIUNI_ARG(buf), MPIUNI_ARG(co… argument 424 …, datatype, dest, tag, comm, request) (MPIUNI_ARG(buf), MPIUNI_ARG(co… argument 425 …, datatype, dest, tag, comm, request) (MPIUNI_ARG(buf), MPIUNI_ARG(co… argument 426 …, datatype, dest, tag, comm, request) (MPIUNI_ARG(buf), MPIUNI_ARG(co… argument 430 … datatype, dest, tag, comm, request) (MPIUNI_ARG(buf), MPIUNI_ARG(co… argument 448 …t, datatype, dest, tag, comm, request) (MPIUNI_ARG(buf), MPIUNI_ARG(coun… argument 449 …nt, datatype, dest, tag, comm, request) (MPIUNI_ARG(buf), MPIUNI_ARG(coun… argument [all …]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | main.py | 396 …', help='number of multiprocessing jobs, -1 means number of processors on machine', dest='workers') 397 …store patches in if they are generated, defaults to SRC_DIR/../petscLintPatches', dest='patch_dir') 398 …'--apply-patches', help='automatically apply patches that are saved to file', dest='apply_patches') 399 …LAGS', nargs='+', default=[], help='extra flags to pass to CXX compiler', dest='extra_compiler_fla… 400 …args='+', default=[], help='extra include flags to pass to CXX compiler', dest='extra_header_inclu… 405 …so|dylib|dll], if not given attempts to automatically detect it via llvm-config', dest='clang_dir') 406 …p='direct location of libclang.[so|dylib|dll], overrides clang directory if set', dest='clang_lib') 409 …dir, help='if this option is unused defaults to environment variable $PETSC_DIR', dest='petsc_dir') 410 …h, help='if this option is unused defaults to environment variable $PETSC_ARCH', dest='petsc_arch') 413 …ect patches must be in the format [path_from_src_dir_to_testFileName].out', dest='test_output_dir') [all …]
|
| /petsc/src/binding/petsc4py/docs/source/ |
| H A D | apidoc.py | 576 def annotate(dest, source): argument 578 dest.__annotations__ = source.__annotations__ 581 if isinstance(dest, type): 582 for name in dest.__dict__.keys(): 584 obj = getattr(dest, name) 586 if isinstance(dest, type(sys)): 587 for name in dir(dest): 589 obj = getattr(dest, name) 591 if dest.__name__ == mod: 594 if not hasattr(dest, name): [all …]
|
| /petsc/src/sys/tests/ |
| H A D | ex55.py | 10 comm.Send([data, MPI.INT], dest=1, tag=77) 18 comm.Send(data, dest=1, tag=13)
|
| /petsc/include/ |
| H A D | petscdevicetypes.h | 382 …ine PetscDeviceCopyMode PetscOffloadMaskToDeviceCopyMode(PetscOffloadMask dest, PetscOffloadMask s… in PetscOffloadMaskToDeviceCopyMode() argument 387 …PetscAssertAbort(dest != PETSC_OFFLOAD_UNALLOCATED, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cannot … in PetscOffloadMaskToDeviceCopyMode() 390 if (PetscOffloadDevice(dest)) { in PetscOffloadMaskToDeviceCopyMode() 398 …_CONSTEXPR_14 PetscDeviceCopyMode PetscMemTypeToDeviceCopyMode(PetscMemType dest, PetscMemType src) in PetscMemTypeToDeviceCopyMode() argument 400 if (PetscMemTypeHost(dest)) { in PetscMemTypeToDeviceCopyMode()
|
| H A D | petscbt.h | 41 static inline PetscErrorCode PetscBTCopy(PetscBT dest, PetscCount m, PetscBT source) in PetscBTCopy() argument 43 return PetscArraycpy(dest, source, PetscBTLength(m)); in PetscBTCopy()
|
| H A D | petscdevice.h | 259 #define PetscDeviceArrayCopy(dctx, dest, src, n) PetscDeviceMemcpy((dctx), (dest), (src), (size_t)(… argument
|
| /petsc/config/ |
| H A D | query_tests.py | 296 parser.add_option('-s', '--startdir', dest='startdir', 299 parser.add_option('-p', '--petsc-dir', dest='petsc_dir', 302 parser.add_option('-a', '--petsc-arch', dest='petsc_arch', 305 parser.add_option('--srcdir', dest='srcdir', 308 parser.add_option('-t', '--testdir', dest='testdir', 312 dest='use_source', 314 parser.add_option('-i', '--searchin', dest='searchin',
|
| H A D | report_tests.py | 310 parser.add_option('-d', '--directory', dest='directory', 314 parser.add_option('-e', '--elapsed_time', dest='elapsed_time', 317 parser.add_option('-m', '--make', dest='make', 320 parser.add_option('-t', '--time', dest='time', 323 parser.add_option('-f', '--fail', dest='show_fail', action="store_true", 325 parser.add_option('-s', '--show', dest='show_results', action="store_true",
|
| /petsc/src/sys/objects/device/impls/cupm/ |
| H A D | cupmallocator.hpp | 67 inline PetscErrorCode HostAllocator<T, P>::uninitialized_copy(value_type *dest, const value_type *s… in uninitialized_copy() argument 70 PetscCall(PetscCUPMMemcpyAsync(dest, src, n, cupmMemcpyHostToHost, stream->get_stream(), true)); in uninitialized_copy() 131 inline PetscErrorCode DeviceAllocator<T, P>::uninitialized_copy(value_type *dest, const value_type … in uninitialized_copy() argument 134 …PetscCall(PetscCUPMMemcpyAsync(dest, src, n, cupmMemcpyDeviceToDevice, stream->get_stream(), true)… in uninitialized_copy()
|
| H A D | cupmcontext.hpp | 485 …x, PetscBool clear, PetscMemType mtype, std::size_t n, std::size_t alignment, void **dest) noexcept in memAlloc() argument 493 …PetscCall(default_pool_<HostAllocator<T>>().allocate(n, reinterpret_cast<char **>(dest), &stream, … in memAlloc() 495 …PetscCall(default_pool_<DeviceAllocator<T>>().allocate(n, reinterpret_cast<char **>(dest), &stream… in memAlloc() 497 if (clear) PetscCallCUPM(cupmMemsetAsync(*dest, 0, n, stream.get_stream())); in memAlloc() 532 inline PetscErrorCode DeviceContext<T>::memCopy(PetscDeviceContext dctx, void *PETSC_RESTRICT dest,… in memCopy() argument 543 PetscCall(PetscMemcpy(dest, src, n)); in memCopy() 553 PetscCallCUPM(cupmMemcpyAsync(dest, src, n, PetscDeviceCopyModeToCUPMMemcpyKind(mode), stream)); in memCopy()
|
| /petsc/src/sys/objects/ |
| H A D | inherit.c | 220 PetscErrorCode PetscObjectCopyFortranFunctionPointers(PetscObject src, PetscObject dest) in PetscObjectCopyFortranFunctionPointers() argument 226 PetscValidHeader(dest, 2); in PetscObjectCopyFortranFunctionPointers() 227 …PetscCheck(src->classid == dest->classid, src->comm, PETSC_ERR_ARG_INCOMP, "Objects must be of the… in PetscObjectCopyFortranFunctionPointers() 229 PetscCall(PetscFree(dest->fortran_func_pointers)); in PetscObjectCopyFortranFunctionPointers() 230 …PetscCall(PetscMalloc(src->num_fortran_func_pointers * sizeof(PetscFortranCallbackFn *), &dest->fo… in PetscObjectCopyFortranFunctionPointers() 231 …PetscCall(PetscArraycpy(dest->fortran_func_pointers, src->fortran_func_pointers, src->num_fortran_… in PetscObjectCopyFortranFunctionPointers() 233 dest->num_fortran_func_pointers = src->num_fortran_func_pointers; in PetscObjectCopyFortranFunctionPointers() 237 PetscCall(PetscFree(dest->fortrancallback[cbtype])); in PetscObjectCopyFortranFunctionPointers() 238 PetscCall(PetscCalloc1(numcb[cbtype], &dest->fortrancallback[cbtype])); in PetscObjectCopyFortranFunctionPointers() 239 …PetscCall(PetscArraycpy(dest->fortrancallback[cbtype], src->fortrancallback[cbtype], src->num_fort… in PetscObjectCopyFortranFunctionPointers() [all …]
|
| /petsc/src/sys/objects/device/interface/ |
| H A D | memory.cxx | 470 PetscErrorCode PetscDeviceMemcpy(PetscDeviceContext dctx, void *PETSC_RESTRICT dest, const void *PE… in PetscDeviceMemcpy() argument 474 PetscCheck(dest, PETSC_COMM_SELF, PETSC_ERR_POINTER, "Trying to copy to a NULL pointer"); in PetscDeviceMemcpy() 476 if (dest == src) PetscFunctionReturn(PETSC_SUCCESS); in PetscDeviceMemcpy() 479 const auto &dest_attr = memory_map.search_for(dest, true)->second; in PetscDeviceMemcpy() 487 PetscUseTypeMethod(dctx, memcopy, dest, src, n, mode); in PetscDeviceMemcpy() 497 PetscCall(PetscMemcpy(dest, src, n)); in PetscDeviceMemcpy()
|
| /petsc/include/petsc/private/ |
| H A D | cupmobject.hpp | 8 inline PetscErrorCode PetscStrFreeAllocpy(const char target[], char **dest) noexcept in PetscStrFreeAllocpy() argument 11 PetscAssertPointer(dest, 2); in PetscStrFreeAllocpy() 12 if (*dest) { in PetscStrFreeAllocpy() 13 PetscAssertPointer(*dest, 2); in PetscStrFreeAllocpy() 14 PetscCall(PetscFree(*dest)); in PetscStrFreeAllocpy() 16 PetscCall(PetscStrallocpy(target, dest)); in PetscStrFreeAllocpy()
|
| H A D | cupminterface.hpp | 674 …static PetscErrorCode PetscCUPMMemcpyAsync(D *dest, const util::type_identity_t<D> *src, std::size… in PetscCUPMMemcpyAsync() 682 PetscCheck(dest, PETSC_COMM_SELF, PETSC_ERR_POINTER, "Trying to copy to a NULL pointer"); in PetscCUPMMemcpyAsync() 685 if (PetscUnlikely(dest == src)) PetscFunctionReturn(PETSC_SUCCESS); in PetscCUPMMemcpyAsync() 691 PetscCall(PetscMemcpy(dest, src, size)); in PetscCUPMMemcpyAsync() 700 PetscCallCUPM(cupmMemcpyAsync(dest, src, size, kind, stream)); in PetscCUPMMemcpyAsync() 702 PetscCallCUPM(cupmMemcpy(dest, src, size, kind)); in PetscCUPMMemcpyAsync() 709 …static PetscErrorCode PetscCUPMMemcpy(D *dest, const util::type_identity_t<D> *src, std::size_t n,… in PetscCUPMMemcpy() 712 PetscCall(PetscCUPMMemcpyAsync(dest, src, n, kind)); in PetscCUPMMemcpy() 717 …static PetscErrorCode PetscCUPMMemcpy2DAsync(D *dest, std::size_t dest_pitch, const util::type_ide… in PetscCUPMMemcpy2DAsync() 727 PetscCheck(dest, PETSC_COMM_SELF, PETSC_ERR_POINTER, "Trying to copy to a NULL pointer"); in PetscCUPMMemcpy2DAsync() [all …]
|
| /petsc/src/ksp/ksp/utils/lmvm/ |
| H A D | lmproducts.c | 259 PETSC_INTERN PetscErrorCode LMProductsCopy(LMProducts src, LMProducts dest) in LMProductsCopy() argument 262 …PetscCheck(dest->m == src->m, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot copy to LMProducts of diffe… in LMProductsCopy() 263 …PetscCheck(dest->m_local == src->m_local, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot copy to LMProdu… in LMProductsCopy() 264 …PetscCheck(dest->block_type == src->block_type, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot copy to L… in LMProductsCopy() 265 dest->k = src->k; in LMProductsCopy() 266 dest->m_local = src->m_local; in LMProductsCopy() 267 if (src->full) PetscCall(MatCopy(src->full, dest->full, DIFFERENT_NONZERO_PATTERN)); in LMProductsCopy() 268 if (src->diagonal_dup) PetscCall(VecCopy(src->diagonal_dup, dest->diagonal_dup)); in LMProductsCopy() 269 if (src->diagonal_global) PetscCall(VecCopy(src->diagonal_global, dest->diagonal_global)); in LMProductsCopy() 270 dest->update_diagonal_global = src->update_diagonal_global; in LMProductsCopy() [all …]
|
| /petsc/src/dm/impls/swarm/ |
| H A D | data_ex.c | 503 void *dest; in DMSwarmDataExPackData() local 516 dest = ((char *)de->send_message) + de->unit_message_size * insert_location; in DMSwarmDataExPackData() 517 PetscCall(PetscMemcpy(dest, data, de->unit_message_size * n)); in DMSwarmDataExPackData() 561 void *dest; in DMSwarmDataExBegin() local 573 dest = ((char *)de->send_message) + de->unit_message_size * de->message_offsets[i]; in DMSwarmDataExBegin() 574 …PetscCallMPI(MPIU_Isend(dest, de->messages_to_be_sent[i] * de->unit_message_size, MPI_CHAR, de->ne… in DMSwarmDataExBegin() 586 void *dest; in DMSwarmDataExEnd() local 602 dest = ((char *)de->recv_message) + de->unit_message_size * message_recv_offsets[i]; in DMSwarmDataExEnd() 603 …PetscCallMPI(MPIU_Irecv(dest, de->messages_to_be_recvieved[i] * de->unit_message_size, MPI_CHAR, d… in DMSwarmDataExEnd()
|