Home
last modified time | relevance | path

Searched refs:idle (Results 1 – 9 of 9) sorted by relevance

/petsc/src/sys/objects/device/tests/
H A Dex9.c7 PetscBool idle = PETSC_FALSE; in CheckIdle() local
10 PetscCall(PetscDeviceContextQueryIdle(dctx, &idle)); in CheckIdle()
11 if (!idle) { in CheckIdle()
/petsc/src/sys/objects/device/impls/sycl/
H A Dsyclcontext.sycl.cxx85 static PetscErrorCode query(PetscDeviceContext dctx, PetscBool *idle) noexcept in query() argument
90 *idle = PETSC_FALSE; in query()
96 PetscBool idle = PETSC_TRUE; in synchronize() local
100 PetscCall(query(dctx, &idle)); in synchronize()
101 if (!idle) PetscCallCXX(dci->queue.wait()); in synchronize()
/petsc/src/sys/objects/device/impls/host/
H A Dhostcontext.cxx22 static PetscErrorCode query(PetscDeviceContext, PetscBool *idle) noexcept in query() argument
25 *idle = PETSC_TRUE; // the host is always idle in query()
/petsc/src/sys/objects/device/c/
H A Ddevice.c140 PetscErrorCode PetscDeviceContextQueryIdle(PETSC_UNUSED PetscDeviceContext dctx, PetscBool *idle) in PetscDeviceContextQueryIdle() argument
143 PetscAssertPointer(idle, 2); in PetscDeviceContextQueryIdle()
144 *idle = PETSC_TRUE; in PetscDeviceContextQueryIdle()
/petsc/src/sys/objects/device/impls/cupm/
H A Dcupmcontext.hpp324 inline PetscErrorCode DeviceContext<T>::query(PetscDeviceContext dctx, PetscBool *idle) noexcept in query() argument
330 *idle = PETSC_TRUE; in query()
333 *idle = PETSC_FALSE; in query()
361 auto idle = PETSC_TRUE; in synchronize() local
364 PetscCall(query(dctx, &idle)); in synchronize()
365 if (!idle) PetscCallCUPM(cupmStreamSynchronize(impls_cast_(dctx)->stream.get_stream())); in synchronize()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDevice.pyx363 def idle(self) -> bool: member in DeviceContext
364 """Return whether the underlying stream for the device context is idle.
490 The underlying stream is considered idle after this routine returns,
491 i.e. `idle` will return ``True``.
495 idle, petsc.PetscDeviceContextSynchronize
/petsc/src/sys/objects/device/interface/
H A Ddcontext.cxx475 PetscErrorCode PetscDeviceContextQueryIdle(PetscDeviceContext dctx, PetscBool *idle) in PetscDeviceContextQueryIdle() argument
479 PetscAssertPointer(idle, 2); in PetscDeviceContextQueryIdle()
481 PetscUseTypeMethod(dctx, query, idle); in PetscDeviceContextQueryIdle()
483 …me ? PetscObjectCast(dctx)->name : "unnamed", PetscObjectCast(dctx)->id, *idle ? "was" : "was not"… in PetscDeviceContextQueryIdle()
/petsc/src/binding/petsc4py/test/
H A Dtest_device.py35 self.assertTrue(dctx.idle())
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas2641 (dpm/parallel/disable-idle-wait? #f)