Home
last modified time | relevance | path

Searched refs:sizeof (Results 1 – 25 of 27) sorted by relevance

12

/petsc/src/benchmarks/
H A Dmakefile54 sizeof: sizeof.o target
55 -${CLINKER} -o sizeof sizeof.o ${PETSC_LIB}
56 ${RM} -f sizeof.o
91 -@${MPIEXEC} -n 1 ./sizeof
/petsc/src/snes/tutorials/output/
H A Dex19_tut_6.out124 sizeof(short) 2 sizeof(int) 4 sizeof(long) 8 sizeof(void*) 8 sizeof(PetscScalar) 8 sizeof(PetscInt)…
H A Dex19_tut_4.out119 sizeof(short) 2 sizeof(int) 4 sizeof(long) 8 sizeof(void*) 8 sizeof(PetscScalar) 8 sizeof(PetscInt)…
H A Dex19_tut_5.out128 sizeof(short) 2 sizeof(int) 4 sizeof(long) 8 sizeof(void*) 8 sizeof(PetscScalar) 8 sizeof(PetscInt)…
H A Dex19_tut_7.out137 sizeof(short) 2 sizeof(int) 4 sizeof(long) 8 sizeof(void*) 8 sizeof(PetscScalar) 8 sizeof(PetscInt)…
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdmshell.pxi354 CHKERR(PetscMalloc(len(names)*sizeof(char**), namelist))
360 CHKERR(PetscMalloc(len(ises)*sizeof(PetscIS), islist))
366 CHKERR(PetscMalloc(len(dms)*sizeof(PetscDM), dmlist))
402 CHKERR(PetscMalloc(len(names)*sizeof(char**), namelist))
408 CHKERR(PetscMalloc(len(innerises)*sizeof(PetscIS), innerislist))
414 CHKERR(PetscMalloc(len(outerises)*sizeof(PetscIS), outerislist))
420 CHKERR(PetscMalloc(len(dms)*sizeof(PetscDM), dmlist))
457 CHKERR (PetscMalloc(clen*sizeof(PetscScatter), iscat))
458 CHKERR (PetscMalloc(clen*sizeof(PetscScatter), oscat))
459 CHKERR (PetscMalloc(clen*sizeof(PetscScatter), gscat))
H A Darraynpy.pxi111 memcpy(PyArray_DATA(ary), data, <size_t>size*sizeof(PetscInt))
118 memcpy(PyArray_DATA(ary), data, <size_t>size*sizeof(PetscReal))
125 memcpy(PyArray_DATA(ary), data, <size_t>size*sizeof(PetscBool))
132 memcpy(PyArray_DATA(ary), data, <size_t>size*sizeof(PetscScalar))
H A Dpetscopt.pxi85 memcpy(ivalue, ivaluedeft, <size_t>ndeft*sizeof(PetscBool))
108 memcpy(ivalue, ivaluedeft, <size_t>ndeft*sizeof(PetscInt))
131 memcpy(ivalue, ivaluedeft, <size_t>ndeft*sizeof(PetscReal))
154 memcpy(ivalue, ivaluedeft, <size_t>ndeft*sizeof(PetscScalar))
H A DPETSc.pyx107 cdef int result_len = <int>sizeof(mpi_err_str)
112 <void>PetscSNPrintf(error_str, sizeof(error_str), b"MPI Error %s %d", mpi_err_str, ierr)
386 v = <char**> malloc(<size_t>(c+1)*sizeof(char*))
388 memset(v, 0, <size_t>(c+1)*sizeof(char*))
449 cdef size_t stringlen = sizeof(cstring)
H A Dlibpetsc4py.pyx454 name, sizeof(name), &found))
463 fname, sizeof(fname), &found))
488 b"PetscViewerPythonSetType", defval, name, sizeof(name), &found)); <void>opts
495 b"PetscViewerPythonSetFilename", fdefval, fname, sizeof(fname), &found)); <void>opts
751 b"MatPythonSetType", defval, name, sizeof(name), &found)); <void>opts
871 name, sizeof(name), &found))
1529 name, sizeof(name), &found))
1580 b"PCPythonSetType", defval, name, sizeof(name), &found)); <void>opts
1833 name, sizeof(name), &found))
1876 b"KSPPythonSetType", defval, name, sizeof(name), &found)); <void>opts
[all …]
H A DPC.pyx931 CHKERR(PetscMalloc(<size_t>n*sizeof(PetscIS), &isets))
936 CHKERR(PetscMalloc(<size_t>n*sizeof(PetscIS), &isets_local))
974 CHKERR(PetscMalloc(<size_t>n*sizeof(PetscIS), &isets))
979 CHKERR(PetscMalloc(<size_t>n*sizeof(PetscIS), &isets_local))
1253 PetscMalloc(<size_t>dim*sizeof(PetscMat), &RT_Pi_mat)
1259 PetscMalloc(<size_t>dim*sizeof(PetscMat), &ND_Pi_mat)
2449 CHKERR(PetscMalloc(<size_t>numSubSpaces*sizeof(PetscInt), &nodesPerCell))
2450 CHKERR(PetscMalloc(<size_t>numSubSpaces*sizeof(PetscDM), &cdms))
2451 CHKERR(PetscMalloc(<size_t>numSubSpaces*sizeof(PetscInt*), &ccellNodeMaps))
H A DSys.pyx42 CHKERR(PetscGetVersion(cversion, sizeof(cversion)))
H A Dpetscdmda.pxi239 cdef Py_ssize_t k = <Py_ssize_t>sizeof(PetscScalar)
H A DDevice.pyx469 CHKERR(PetscMalloc(<size_t>(nctxs) * sizeof(PetscDeviceContext *), &np_subctx))
H A DMat.pyx2572 CHKERR(PetscMemcpy(AJ+AI[irow], cols, <size_t>ncols*sizeof(PetscInt)))
2573 CHKERR(PetscMemcpy(AV+AI[irow], vals, <size_t>ncols*sizeof(PetscScalar)))
3401 CHKERR(PetscMalloc(<size_t>(nrows+1)*sizeof(PetscMatStencil), &crows))
4087 CHKERR(PetscMalloc(<size_t>(n+1)*sizeof(PetscMat), &cmats))
5653 cdef int itemsize = <int>sizeof(PetscScalar)
5656 dims[0] = <npy_intp>m; strides[0] = <npy_intp>sizeof(PetscScalar)
5657 dims[1] = <npy_intp>N; strides[1] = <npy_intp>(lda*sizeof(PetscScalar))
6002 cdef DLManagedTensor* dlm_tensor = <DLManagedTensor*>malloc(sizeof(DLManagedTensor))
6038 shape_strides = <int64_t*>malloc(sizeof(int64_t)*2*ndim)
6049 if sizeof(PetscScalar) == 8:
[all …]
H A Dpetscpc.pxi489 CHKERR(PetscMalloc(<size_t>n[0]*sizeof(PetscIS), userIS))
H A DVec.pyx592 if bits != 8*sizeof(PetscScalar):
692 if bits != 8*sizeof(PetscScalar):
759 cdef DLManagedTensor* dlm_tensor = <DLManagedTensor*>malloc(sizeof(DLManagedTensor))
795 shape_strides = <int64_t*>malloc(sizeof(int64_t)*2*ndim)
806 if sizeof(PetscScalar) == 8:
808 elif sizeof(PetscScalar) == 4:
H A DDM.pyx1430 CHKERR(PetscMemcpy(MAXCELL, maxCell, <size_t>dim*sizeof(PetscReal)))
1431 CHKERR(PetscMemcpy(LSTART, Lstart, <size_t>dim*sizeof(PetscReal)))
1432 CHKERR(PetscMemcpy(LPY, L, <size_t>dim*sizeof(PetscReal)))
H A DSNES.pyx569 CHKERR(PetscMalloc(sizeof(MPI_Comm)*<size_t>clevels, &ccomms))
2385 CHKERR(PetscMalloc(<size_t>numSubSpaces*sizeof(PetscInt), &nodesPerCell))
2386 CHKERR(PetscMalloc(<size_t>numSubSpaces*sizeof(PetscDM), &cdms))
2387 CHKERR(PetscMalloc(<size_t>numSubSpaces*sizeof(PetscInt*), &ccellNodeMaps))
H A Dpetscvec.pxi437 CHKERR(PetscMemcpy(vv, va, <size_t>nv*sizeof(PetscScalar)))
/petsc/doc/developers/
H A Dstyle.md109 sizeof(MPI_Count) >= sizeof(PetscCount) >= sizeof(PetscInt)
110 sizeof(PetscInt64) >= sizeof(PetscCount) >= sizeof(PetscInt)
111 sizeof(MPI_Count) may be strictly greater than sizeof(PetscInt64)
H A Dkernel.md266 with `sizeof()`.
/petsc/
H A D.gitignore175 src/benchmarks/sizeof
/petsc/doc/manual/
H A Dstreams.md24 The bandwidth is then computed as `3*n*sizeof(double)/min(time[])`. The timing is done with `MPI_Wt…
/petsc/lib/petsc/bin/maint/
H A Dtoclapack.sh575 char *n = (char*)malloc(sizeof(char)*(len+1));
576 memcpy(n, srname, len*sizeof(char));

12