| /petsc/src/dm/impls/plex/ |
| H A D | pointqueue.c | 3 PetscErrorCode DMPlexPointQueueCreate(PetscInt size, DMPlexPointQueue *queue) in DMPlexPointQueueCreate() argument 15 *queue = q; in DMPlexPointQueueCreate() 19 PetscErrorCode DMPlexPointQueueDestroy(DMPlexPointQueue *queue) in DMPlexPointQueueDestroy() argument 21 DMPlexPointQueue q = *queue; in DMPlexPointQueueDestroy() 26 *queue = NULL; in DMPlexPointQueueDestroy() 30 PetscErrorCode DMPlexPointQueueEnsureSize(DMPlexPointQueue queue) in DMPlexPointQueueEnsureSize() argument 33 if (queue->num < queue->size) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexPointQueueEnsureSize() 34 queue->size *= 2; in DMPlexPointQueueEnsureSize() 35 PetscCall(PetscRealloc(queue->size * sizeof(PetscInt), &queue->points)); in DMPlexPointQueueEnsureSize() 39 PetscErrorCode DMPlexPointQueueEnqueue(DMPlexPointQueue queue, PetscInt p) in DMPlexPointQueueEnqueue() argument [all …]
|
| H A D | plexsubmesh.c | 1088 static PetscErrorCode DivideCells_Private(DM dm, DMLabel label, DMPlexPointQueue queue) in DivideCells_Private() argument 1096 while (!DMPlexPointQueueEmpty(queue)) { in DivideCells_Private() 1101 PetscCall(DMPlexPointQueueDequeue(queue, &cell)); in DivideCells_Private() 1144 PetscCall(DMPlexPointQueueEnqueue(queue, support[s])); in DivideCells_Private() 1158 DMPlexPointQueue queue; member 1173 PetscCall(DMPlexPointQueueEnqueue(div->queue, support[s])); in divideCell() 1181 DMPlexPointQueue queue = NULL; in DMPlexLabelFaultHalo() local 1191 PetscCall(DMPlexPointQueueCreate(1024, &queue)); in DMPlexLabelFaultHalo() 1193 div.queue = queue; in DMPlexLabelFaultHalo() 1199 for (i = 0; i < n; ++i) PetscCall(DMPlexPointQueueEnqueue(queue, points[i])); in DMPlexLabelFaultHalo() [all …]
|
| /petsc/src/sys/yaml/src/ |
| H A D | yaml_private.h | 456 #define QUEUE_INIT(context,queue,size,type) \ argument 457 (((queue).start = (type)yaml_malloc((size)*sizeof(*(queue).start))) ? \ 458 ((queue).head = (queue).tail = (queue).start, \ 459 (queue).end = (queue).start+(size), \ 464 #define QUEUE_DEL(context,queue) \ argument 465 (yaml_free((queue).start), \ 466 (queue).start = (queue).head = (queue).tail = (queue).end = NULL) 468 #define QUEUE_EMPTY(context,queue) \ argument 469 ((queue).head == (queue).tail) 471 #define ENQUEUE(context,queue,value) \ argument [all …]
|
| /petsc/src/sys/objects/device/impls/sycl/ |
| H A D | syclcontext.sycl.cxx | 26 ::sycl::queue queue; 81 …ic_cast<PetscDeviceContext_SYCL *>(dctx->data)->queue = ::sycl::queue(syclDevice, ::sycl::property… in setUp() 101 if (!idle) PetscCallCXX(dci->queue.wait()); in synchronize() 108 …*reinterpret_cast<::sycl::queue **>(handle) = &(static_cast<PetscDeviceContext_SYCL *>(dctx->data)… in getStreamHandle() 150 PetscCallCXX(dci->queue.wait()); in endTimer()
|
| H A D | sycldevice.sycl.cxx | 114 auto Q = ::sycl::queue(syclDevice_); in isMPISyclAware_()
|
| /petsc/config/BuildSystem/ |
| H A D | graph.py | 167 queue = DirectedGraph.getRoots(graph)[0:1] 168 if not len(queue): return 169 seen = [queue[0]] 171 queue[0].__level = 0 172 yield queue[0] 173 while len(queue): 174 vertex = queue[-1] 179 queue.insert(0, v) 182 vertex = queue.pop()
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex56.c | 43 const cl_command_queue queue = ((const cl_command_queue)clqueueptr); in main() local 54 clEnqueueNDRangeKernel(queue, knl, 1, NULL, &gsize, &lsize, 0, NULL, NULL); in main() 55 clFinish(queue); in main() 65 clReleaseCommandQueue(queue); in main()
|
| /petsc/src/ts/characteristic/interface/ |
| H A D | characteristic.c | 57 PetscCall(PetscFree((*c)->queue)); in CharacteristicDestroy() 116 newC->queue = NULL; in CharacteristicCreate() 405 Qi = c->queue[n]; in CharacteristicSolve() 419 c->queue[n] = Qi; in CharacteristicSolve() 465 Qi = c->queue[n]; in CharacteristicSolve() 475 c->queue[n] = Qi; in CharacteristicSolve() 493 if (c->neighbors[c->queue[n].proc] == rank) { in CharacteristicSolve() 494 interpIndices[0] = c->queue[n].x; in CharacteristicSolve() 495 interpIndices[1] = c->queue[n].y; in CharacteristicSolve() 498 for (comp = 0; comp < c->numFieldComp; comp++) c->queue[n].field[comp] = fieldValues[comp]; in CharacteristicSolve() [all …]
|
| /petsc/src/sys/classes/viewer/impls/vu/ |
| H A D | petscvu.c | 16 PrintfQueue queue, queueBase; member 156 vu->queue = NULL; in PetscViewerCreate_VU() 265 if (vu->queue) { in PetscViewerVUPrintDeferred() 266 vu->queue->next = next; in PetscViewerVUPrintDeferred() 267 vu->queue = next; in PetscViewerVUPrintDeferred() 268 vu->queue->next = NULL; in PetscViewerVUPrintDeferred() 270 vu->queueBase = vu->queue = next; in PetscViewerVUPrintDeferred() 307 vu->queue = NULL; in PetscViewerVUFlushDeferred()
|
| /petsc/src/dm/impls/plex/transform/impls/refine/sbr/ |
| H A D | plexrefsbr.c | 50 static PetscErrorCode SBRSplitLocalEdges_Private(DMPlexTransform tr, DMPlexPointQueue queue) in SBRSplitLocalEdges_Private() argument 57 while (!DMPlexPointQueueEmpty(queue)) { in SBRSplitLocalEdges_Private() 62 PetscCall(DMPlexPointQueueDequeue(queue, &p)); in SBRSplitLocalEdges_Private() 88 PetscCall(DMPlexPointQueueEnqueue(queue, maxedge)); in SBRSplitLocalEdges_Private() 98 DMPlexPointQueue queue = (DMPlexPointQueue)ctx; in splitPoint() local 101 PetscCall(DMPlexPointQueueEnqueue(queue, p)); in splitPoint() 147 DMPlexPointQueue queue = NULL; in DMPlexTransformSetUp_SBR() local 168 PetscCall(DMPlexPointQueueCreate(1024, &queue)); in DMPlexTransformSetUp_SBR() 179 PetscCall(DMPlexPointQueueEnqueue(queue, cell)); in DMPlexTransformSetUp_SBR() 191 PetscCall(DMPlexPointQueueEnqueue(queue, edge)); in DMPlexTransformSetUp_SBR() [all …]
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddcgraph.c | 134 …PetscCall(ISLocalToGlobalMappingApply(graph->l2gmap, graph->cptr[graph->ncc], graph->queue, queue_… in PCBDDCGraphASCIIView() 136 PetscInt node_num = graph->queue[graph->cptr[i]]; in PCBDDCGraphASCIIView() 145 …nchronizedPrintf(viewer, " %" PetscInt_FMT " (%" PetscInt_FMT ")", graph->queue[j], queue_in_globa… in PCBDDCGraphASCIIView() 216 PetscInt repdof = graph->queue[graph->cptr[i]]; in PCBDDCGraphGetCandidatesIS() 240 …PetscCall(ISLocalToGlobalMappingApply(graph->l2gmap, graph->cptr[graph->ncc], graph->queue, queue_… in PCBDDCGraphGetCandidatesIS() 241 …raph->cptr[i + 1] - graph->cptr[i], &queue_global[graph->cptr[i]], &graph->queue[graph->cptr[i]])); in PCBDDCGraphGetCandidatesIS() 249 …eateGeneral(PETSC_COMM_SELF, graph->cptr[i + 1] - graph->cptr[i], &graph->queue[graph->cptr[i]], P… in PCBDDCGraphGetCandidatesIS() 252 …eateGeneral(PETSC_COMM_SELF, graph->cptr[i + 1] - graph->cptr[i], &graph->queue[graph->cptr[i]], P… in PCBDDCGraphGetCandidatesIS() 265 idx[nvc] = graph->queue[j]; in PCBDDCGraphGetCandidatesIS() 446 if (cornerp && PetscBTLookup(cornerp, graph->queue[j])) { in PCBDDCGraphComputeConnectedComponents() [all …]
|
| H A D | bddcprivate.c | 1599 PetscInt *oqueue = graph->queue; in PCBDDCNedelecSupport() 1614 PetscCall(PetscMalloc2(graph->nvtxs + 1, &graph->cptr, ocptr[graph->ncc], &graph->queue)); in PCBDDCNedelecSupport() 1620 graph->queue[graph->cptr[ncc]] = cedges[cum]; in PCBDDCNedelecSupport() 1627 for (j = 0; j < lc; j++) graph->queue[graph->cptr[ncc] + j] = oqueue[ocptr[i] + j]; in PCBDDCNedelecSupport() 2650 PetscInt k, size, *closure = NULL, cell = graph->queue[j]; in PCBDDCDetectDisconnectedComponents() 2700 …reateGeneral(PETSC_COMM_SELF, graph->cptr[i + 1] - graph->cptr[i], graph->queue + graph->cptr[i], … in PCBDDCDetectDisconnectedComponents()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _pool.py | 11 import queue 294 except queue.Empty: 437 except queue.Empty: 473 except queue.Full:
|
| /petsc/src/sys/objects/kokkos/ |
| H A D | kinit.kokkos.cxx | 92 …PetscCallCXX(PetscKokkosExecutionSpacePtr = new Kokkos::DefaultExecutionSpace(*(sycl::queue *)hand… in PetscKokkosInitializeCheck()
|
| /petsc/include/petsc/private/ |
| H A D | characteristicimpl.h | 64 Queue queue; member
|
| H A D | pcbddcstructsimpl.h | 47 PetscInt *queue; member
|
| /petsc/src/ts/characteristic/impls/da/ |
| H A D | slda.c | 56 PetscCall(PetscMalloc1(c->queueMax, &c->queue)); in CharacteristicSetUp_DA()
|
| /petsc/src/vec/vec/interface/ |
| H A D | vector.c | 2321 PETSC_EXTERN PetscErrorCode VecViennaCLGetCLQueue(Vec v, PETSC_UINTPTR_T *queue) in VecViennaCLGetCLQueue() argument 2326 PETSC_EXTERN PetscErrorCode VecViennaCLGetCLMem(Vec v, PETSC_UINTPTR_T *queue) in VecViennaCLGetCLMem() argument 2331 PETSC_EXTERN PetscErrorCode VecViennaCLGetCLMemRead(Vec v, PETSC_UINTPTR_T *queue) in VecViennaCLGetCLMemRead() argument 2336 PETSC_EXTERN PetscErrorCode VecViennaCLGetCLMemWrite(Vec v, PETSC_UINTPTR_T *queue) in VecViennaCLGetCLMemWrite() argument
|
| /petsc/src/vec/vec/impls/seq/seqviennacl/ |
| H A D | vecviennacl.cxx | 1320 PETSC_EXTERN PetscErrorCode VecViennaCLGetCLQueue(Vec v, PETSC_UINTPTR_T *queue) in VecViennaCLGetCLQueue() argument 1334 *queue = (PETSC_UINTPTR_T)ocl_queue; in VecViennaCLGetCLQueue()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Vec.pyx | 1614 """Return the OpenCL command queue associated with the vector. 1621 Pointer to underlying CL command queue. This can be used with
|