Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 39) sorted by relevance

12

/petsc/src/vec/is/sf/tests/output/
H A Dex14_1.out1 VecScatter(bs=1) has sent out 80 messages, total 640 bytes, with average length 8 bytes
2 VecScatter(bs=4) has sent out 80 messages, total 2560 bytes, with average length 32 bytes
H A Dex14_1_alt.out1 VecScatter(bs=1) has sent out 80 messages, total 1280 bytes, with average length 16 bytes
2 VecScatter(bs=4) has sent out 80 messages, total 5120 bytes, with average length 64 bytes
/petsc/src/dm/impls/swarm/
H A Dswarmpic_view.c7 long int *bytes; in private_PetscViewerCreate_XDMF() local
17 PetscCall(PetscMalloc1(1, &bytes)); in private_PetscViewerCreate_XDMF()
18 bytes[0] = 0; in private_PetscViewerCreate_XDMF()
20 PetscCall(PetscContainerSetPointer(container, (void *)bytes)); in private_PetscViewerCreate_XDMF()
37 long int *bytes; in private_PetscViewerDestroy_XDMF() local
57 PetscCall(PetscContainerGetPointer(container, &bytes)); in private_PetscViewerDestroy_XDMF()
58 PetscCall(PetscFree(bytes)); in private_PetscViewerDestroy_XDMF()
94 long int *bytes = NULL; in private_DMSwarmView_XDMF() local
101 PetscCall(PetscContainerGetPointer(container, &bytes)); in private_DMSwarmView_XDMF()
136 …ian=\"Big\" DataType=\"Int\" Dimensions=\"%" PetscInt_FMT "\" Seek=\"%ld\">\n", ng * 3, bytes[0])); in private_DMSwarmView_XDMF()
[all …]
H A Ddata_bucket.c693 PetscErrorCode DMSwarmDataBucketCreatePackedArray(DMSwarmDataBucket db, size_t *bytes, void **buf) in DMSwarmDataBucketCreatePackedArray() argument
707 if (bytes) *bytes = sizeof_marker_contents; in DMSwarmDataBucketCreatePackedArray()
/petsc/src/vec/is/sf/impls/window/
H A Dsfwindow.c27 MPI_Aint bytes; member
430 MPI_Aint bytes; in PetscSFGetWindow() local
438 PetscCall(PetscSFGetDatatypeSize_Internal(PetscObjectComm((PetscObject)sf), unit, &bytes)); in PetscSFGetWindow()
439 wsize = (MPI_Aint)(bytes * sf->nroots); in PetscSFGetWindow()
472 …PetscCheck(bytes == link->bytes, wcomm, PETSC_ERR_ARG_WRONGSTATE, "Wrong data type for persistent … in PetscSFGetWindow()
483 if (!link->inuse && (!epoch || !link->epoch) && bytes == (MPI_Aint)link->bytes) { in PetscSFGetWindow()
498 link->bytes = bytes; in PetscSFGetWindow()
512 PetscCallMPI(MPI_Win_create(rootdata, wsize, (PetscMPIInt)bytes, w->info, wcomm, &link->win)); in PetscSFGetWindow()
521 …PetscCallMPI(MPI_Win_allocate(wsize, (PetscMPIInt)bytes, w->info, wcomm, &link->addr, &link->win)); in PetscSFGetWindow()
527 …PetscCallMPI(MPI_Win_allocate_shared(wsize, (PetscMPIInt)bytes, w->info, wcomm, &link->addr, &link… in PetscSFGetWindow()
[all …]
/petsc/src/sys/memory/
H A Dmal.c388 size_t bytes[8], sumbytes; in PetscMallocA() local
394 bytes[0] = bytes0; in PetscMallocA()
399 bytes[i] = va_arg(Argp, size_t); in PetscMallocA()
401 sumbytes += (bytes[i] + PETSC_MEMALIGN - 1) & ~(PETSC_MEMALIGN - 1); in PetscMallocA()
411 *ptr[i] = bytes[i] ? p : NULL; in PetscMallocA()
412 p = (char *)PetscAddrAlign(p + bytes[i]); in PetscMallocA()
416 …for (i = 0; i < n; i++) PetscCall((*PetscTrMalloc)(bytes[i], clear, lineno, function, filename, pt… in PetscMallocA()
/petsc/include/petsc/private/
H A Dkokkosimpl.hpp132 size_t bytes = v_dual.extent(0) * sizeof(Type); in KokkosDualViewSyncHost() local
137 …if (!std::is_same_v<DefaultMemorySpace, HostMirrorMemorySpace>) PetscCall(PetscLogGpuToCpu(bytes)); in KokkosDualViewSyncHost()
149 size_t bytes = v_dual.extent(0) * sizeof(Type); in KokkosDualViewSyncDevice() local
154 …if (!std::is_same_v<DefaultMemorySpace, HostMirrorMemorySpace>) PetscCall(PetscLogCpuToGpu(bytes)); in KokkosDualViewSyncDevice()
H A Dcupminterface.hpp638 const auto bytes = n * sizeof(M); in PetscCUPMMallocAsync() local
645 PetscCallCUPM(cupmMallocAsync(reinterpret_cast<void **>(ptr), bytes, stream)); in PetscCUPMMallocAsync()
647 PetscCallCUPM(cupmMalloc(reinterpret_cast<void **>(ptr), bytes)); in PetscCUPMMallocAsync()
753 const auto bytes = n * sizeof(M); in PetscCUPMMemsetAsync() local
757 PetscCallCUPM(cupmMemsetAsync(ptr, value, bytes, stream)); in PetscCUPMMemsetAsync()
759 PetscCallCUPM(cupmMemset(ptr, value, bytes)); in PetscCUPMMemsetAsync()
/petsc/src/benchmarks/streams/
H A DOpenMPVersion.c29 static double bytes = 3 * sizeof(double) * N; variable
67 rate = 1.0E-06 * bytes / mintime; in main()
H A DOpenMPVersionLikeMPI.c31 static double bytes = 3 * sizeof(double) * N; variable
80 rate = 1.0E-06 * bytes * NTIMESINNER / mintime; in main()
H A DMPIVersion.c14 static double bytes = 3 * sizeof(double) * N; variable
52 rate = 1.0E-06 * bytes * NTIMESINNER / mintime; in main()
H A DBasicVersion.c84 static double bytes[4] = {2 * sizeof(double) * N, 2 * sizeof(double) * N, 3 * sizeof(double) * N, 3… variable
135 for (j = 0; j < 4; j++) irate[j] = 1.0E-06 * bytes[j] / mintime[j]; in main()
H A DSSEVersion.c73 …const double bytes[4] = {2 * sizeof(double) * N, 2 * sizeof(double) * N, 3 * sizeof(double) * N,… in main() local
256 …11.4f %11.4f %11.4f %11.4f\n", label[j], 1.0e-06 * bytes[j] / mintime[j], size * 1.0e-06 * byte… in main()
/petsc/src/sys/classes/viewer/impls/vtk/
H A Dvtkv.c303 PetscInt64 bytes; in PetscViewerVTKFWrite() local
316 bytes = (PetscInt64)dsize * n; in PetscViewerVTKFWrite()
318 count = fwrite(&bytes, sizeof(bytes), 1, fp); in PetscViewerVTKFWrite()
/petsc/src/ksp/ksp/tests/output/
H A Dex32_cholmod.out50 Common.memory_usage 270692. (peak memory usage in bytes)
51 Common.memory_inuse 219312. (current memory usage in bytes)
H A Dex32_cholmod_sbaij.out50 Common.memory_usage 270692. (peak memory usage in bytes)
51 Common.memory_inuse 219312. (current memory usage in bytes)
/petsc/src/vec/vec/tests/
H A Dex2k.c105 PetscLogDouble bytes = (M * (N + 1.0) + N) * sizeof(PetscScalar); in main() local
106 fom = (bytes / times[j]) * 1e-3; in main()
/petsc/src/snes/tutorials/output/
H A Dex19_tut_6.out18 MPI Msg Len (bytes): 2.266e+06 1.021 1.544e+03 8.972e+06
36 AvgLen: average message length (bytes)
91 Memory usage is given in bytes:
H A Dex19_tut_4.out18 MPI Msg Len (bytes): 0.000e+00 0.000 0.000e+00 0.000e+00
36 AvgLen: average message length (bytes)
88 Memory usage is given in bytes:
H A Dex19_tut_5.out18 MPI Msg Len (bytes): 0.000e+00 0.000 0.000e+00 0.000e+00
36 AvgLen: average message length (bytes)
96 Memory usage is given in bytes:
H A Dex19_tut_7.out18 MPI Msg Len (bytes): 1.664e+06 1.054 5.490e+02 6.478e+06
36 AvgLen: average message length (bytes)
103 Memory usage is given in bytes:
/petsc/share/petsc/matlab/
H A Dlaplacian.m476 disp(['The eigenvectors take ' num2str(a.bytes) ' bytes'])
480 disp(['The Laplacian matrix takes ' num2str(a.bytes) ' bytes'])
/petsc/doc/developers/
H A Dkernel.md202 support requests for zero bytes of memory correctly. Freeing memory
207 in bytes what alignment all allocations have. This can be controlled at
263 number of data items requested, not in bytes. This decreases the number
/petsc/doc/changes/
H A D324.md34 …tscBool` to be a C bool. It now has a size of one byte, when previously it had a size of four bytes
215 …. It now has a size of one byte, previously it was a `logical(kind=4)` and had a size of four bytes
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DPETSc.pyx34 cdef bytes s = <char*>p
44 if not isinstance(s, bytes):

12