| /petsc/config/ |
| H A D | install.py | 133 def copyfile(self, src, dst, symlinks = False, copyFunc = shutil.copy2): argument 137 if not os.path.exists(dst): 138 os.makedirs(dst) 139 elif not os.path.isdir(dst): 142 dstname = os.path.join(dst, os.path.basename(src)) 182 def copyConfig(self, src, dst): argument 185 if not os.path.isdir(dst): 188 self.copies.extend(self.copyfile('gmakefile.test',dst)) 189 newConfigDir=os.path.join(dst,'config') # Am not renaming at present 197 def copyExamples(self, src, dst): argument [all …]
|
| /petsc/src/vec/is/sf/impls/basic/nvshmem/ |
| H A D | sfnvshmem.cu | 327 …srcranks, PetscMPIInt *srcranks, const char *src, PetscInt *srcdisp, char *dst, PetscInt *dstdisp,… in GetDataFromRemotelyAccessible() argument 334 …nvshmem_getmem_nbi(dst + (dstdisp[bid] - dstdisp[0]) * unitbytes, src + srcdisp[bid] * unitbytes, … in GetDataFromRemotelyAccessible() 346 char *src, *dst; in PetscSFLinkGetDataBegin_NVSHMEM() local 366 …dst = link->leafbuf[PETSCSF_REMOTE][PETSC_MEMTYPE_DEVICE]; /* recv buf is the local leaf buf… in PetscSFLinkGetDataBegin_NVSHMEM() 384 …dst = link->rootbuf[PETSCSF_REMOTE][PETSC_MEMTYPE_DEVICE]; /* the local root buf is the recv… in PetscSFLinkGetDataBegin_NVSHMEM() 415 …ks, 1, 0, link->remoteCommStream>>>(nsrcranks, srcranks_d, src, srcdisp_d, dst, dstdisp_d, link->u… in PetscSFLinkGetDataBegin_NVSHMEM() 425 …nvshmemx_getmem_nbi_on_stream(dst + (dstdisp_h[i] - dstdisp_h[0]) * link->unitbytes, src + srcdisp… in PetscSFLinkGetDataBegin_NVSHMEM() 488 …tDataToRemotelyAccessible(PetscInt ndstranks, PetscMPIInt *dstranks, char *dst, PetscInt *dstdisp,… in WaitAndPutDataToRemotelyAccessible() argument 493 if (!nvshmem_ptr(dst, pe)) { in WaitAndPutDataToRemotelyAccessible() 497 …nvshmem_putmem_nbi(dst + dstdisp[bid] * unitbytes, src + (srcdisp[bid] - srcdisp[0]) * unitbytes, … in WaitAndPutDataToRemotelyAccessible() [all …]
|
| /petsc/src/dm/impls/stag/ |
| H A D | stagmulti.c | 241 const PetscInt dst = m / 2; in MergeRestrictionWeightToLeft1d_Private() local 246 weight[dst] += weight[i]; in MergeRestrictionWeightToLeft1d_Private() 255 const PetscInt dst = m / 2; in MergeRestrictionWeightToRight1d_Private() local 260 weight[dst] += weight[i]; in MergeRestrictionWeightToRight1d_Private() 268 PetscInt i, j, src, dst; in MergeRestrictionWeightToLeft2d_Private() local 275 dst = m * j + m / 2; in MergeRestrictionWeightToLeft2d_Private() 276 weight[dst] += weight[src]; in MergeRestrictionWeightToLeft2d_Private() 284 PetscInt i, j, src, dst; in MergeRestrictionWeightToRight2d_Private() local 291 dst = m * j + m / 2; in MergeRestrictionWeightToRight2d_Private() 292 weight[dst] += weight[src]; in MergeRestrictionWeightToRight2d_Private() [all …]
|
| /petsc/src/vec/is/sf/impls/basic/kokkos/ |
| H A D | sfkok.kokkos.cxx | 298 Type *dst = static_cast<Type *>(dst_); in ScatterAndOp() local 351 for (i = 0; i < MBS; i++) op(dst[t + i], src[s + i]); in ScatterAndOp() 361 Type *dst = static_cast<Type *>(dst_); in ScatterAndInsert() local 367 if ((!srcOpt && !srcIdx) && (!dstOpt && !dstIdx) && src != dst) { in ScatterAndInsert() 369 deviceBuffer_t dbuf(reinterpret_cast<char *>(dst + dstStart * link->bs), sz); in ScatterAndInsert() 373 … Insert<Type>, BS, EQ>(link, count, srcStart, srcOpt, srcIdx, src, dstStart, dstOpt, dstIdx, dst)); in ScatterAndInsert() 575 …kMemcpy_Kokkos(PetscSFLink PETSC_UNUSED link, PetscMemType dstmtype, void *dst, PetscMemType srcmt… in PetscSFLinkMemcpy_Kokkos() argument 583 PetscCall(PetscMemcpy(dst, src, n)); in PetscSFLinkMemcpy_Kokkos() 586 deviceBuffer_t dbuf(static_cast<char *>(dst), n); in PetscSFLinkMemcpy_Kokkos() 591 HostBuffer_t dbuf(static_cast<char *>(dst), n); in PetscSFLinkMemcpy_Kokkos() [all …]
|
| /petsc/src/vec/is/sf/impls/basic/cupm/ |
| H A D | sfcupm_impl.hpp | 96 … PetscInt dsty, PetscInt dstX, PetscInt dstY, PetscInt dstStart, const PetscInt *dstIdx, Type *dst) in d_ScatterAndOp() argument 126 for (PetscInt i = 0; i < MBS; i++) op(dst[t + i], src[s + i]); in d_ScatterAndOp() 320 …st void *src, PetscInt dstStart, PetscSFPackOpt dstOpt, const PetscInt *dstIdx, void *dst) noexcept in ScatterAndOp() argument 355 …srcY, srcStart, srcIdx, (const Type *)src, dstx, dsty, dstX, dstY, dstStart, dstIdx, (Type *)dst)); in ScatterAndOp() 362 …st void *src, PetscInt dstStart, PetscSFPackOpt dstOpt, const PetscInt *dstIdx, void *dst) noexcept in ScatterAndInsert() argument 367 if ((!srcOpt && !srcIdx) && (!dstOpt && !dstIdx) && src != dst) { in ScatterAndInsert() 368 …PetscCallCUPM(cupmMemcpyAsync((Type *)dst + dstStart * link->bs, (const Type *)src + srcStart * li… in ScatterAndInsert() 370 …:Insert<Type>, BS, EQ>(link, count, srcStart, srcOpt, srcIdx, src, dstStart, dstOpt, dstIdx, dst)); in ScatterAndInsert() 582 inline PetscErrorCode SfInterface<T>::LinkMemcpy(PetscSFLink link, PetscMemType dstmtype, void *dst… in LinkMemcpy() argument 592 PetscCall(PetscMemcpy(dst, src, n)); in LinkMemcpy() [all …]
|
| /petsc/src/sys/mpiuni/ |
| H A D | mpi.c | 57 int MPIUNI_Memcpy(void *dst, const void *src, MPI_Count n) in MPIUNI_Memcpy() argument 59 if (dst == MPI_IN_PLACE || dst == MPIUNIF_mpi_in_place) return MPI_SUCCESS; in MPIUNI_Memcpy() 66 cudaError_t cerr = cudaMemcpy(dst, src, n, cudaMemcpyDefault); in MPIUNI_Memcpy() 71 hipError_t cerr = hipMemcpy(dst, src, n, hipMemcpyDefault); in MPIUNI_Memcpy() 76 (void)memcpy(dst, src, n); in MPIUNI_Memcpy()
|
| /petsc/src/vec/vec/impls/seq/kokkos/ |
| H A D | veckok.kokkos.cxx | 325 …_INLINE_FUNCTION void join(TransposeDotTag, value_type dst, const value_type src) const { join(dst… in join() 326 …_INLINE_FUNCTION void join(ConjugateDotTag, value_type dst, const value_type src) const { join(dst… in join() 331 KOKKOS_INLINE_FUNCTION void join(value_type dst, const value_type src) const in join() 333 for (size_type j = 0; j < value_count; j++) dst[j] += src[j]; in join() 1196 KOKKOS_INLINE_FUNCTION void join(value_type dst, const value_type src) const in join() 1198 dst[0] += src[0]; in join() 1199 dst[1] += src[1]; in join()
|
| /petsc/src/vec/is/sf/impls/basic/ |
| H A D | sfpack.c | 191 …dx, const void *src, PetscInt dstStart, PetscSFPackOpt dstOpt, const PetscInt *dstIdx, void *dst) \ 194 Type *v = (Type *)dst; \ 201 …scCall(CPPJoin4(UnpackAnd##Opname, Type, BS, EQ)(link, count, dstStart, dstOpt, dstIdx, dst, u)); \ 501 static PetscErrorCode PetscSFLinkMemcpy_Host(PetscSFLink link, PetscMemType dstmtype, void *dst, Pe… in PetscSFLinkMemcpy_Host() argument 504 if (n) PetscCall(PetscMemcpy(dst, src, n)); in PetscSFLinkMemcpy_Host() 882 …PetscInt *srcIdx, const void *src, PetscInt dstStart, const PetscInt *dstIdx, void *dst, MPI_Op op) in PetscSFLinkScatterDataWithMPIReduceLocal() argument 889 …PetscCall(PetscSFLinkUnpackDataWithMPIReduceLocal(sf, link, count, dstStart, dstIdx, dst, (const c… in PetscSFLinkScatterDataWithMPIReduceLocal() 894 …PetscCallMPI(MPIU_Reduce_local((const char *)src + srcIdx[i] * link->unitbytes, (char *)dst + disp… in PetscSFLinkScatterDataWithMPIReduceLocal()
|
| /petsc/src/ksp/ksp/utils/lmvm/dense/ |
| H A D | denseqn.c | 441 static PetscErrorCode MatDestroyThenCopy(Mat src, Mat *dst) in MatDestroyThenCopy() argument 444 PetscCall(MatDestroy(dst)); in MatDestroyThenCopy() 445 if (src) PetscCall(MatDuplicate(src, MAT_COPY_VALUES, dst)); in MatDestroyThenCopy() 449 static PetscErrorCode VecDestroyThenCopy(Vec src, Vec *dst) in VecDestroyThenCopy() argument 452 PetscCall(VecDestroy(dst)); in VecDestroyThenCopy() 454 PetscCall(VecDuplicate(src, dst)); in VecDestroyThenCopy() 455 PetscCall(VecCopy(src, *dst)); in VecDestroyThenCopy()
|
| /petsc/src/mat/impls/aij/mpi/mumps/ |
| H A D | mumps.c | 1899 PetscScalar *dst, *dstbase = mumps->rhs_loc; in MatMumpsSetUpDistRHSInfo() local 1902 dst = dstbase; in MatMumpsSetUpDistRHSInfo() 1904 PetscCall(PetscArraycpy(dst, src, mumps->rhs_nrow[j])); in MatMumpsSetUpDistRHSInfo() 1906 dst += mumps->nloc_rhs; in MatMumpsSetUpDistRHSInfo()
|