Searched refs:idle (Results 1 – 9 of 9) sorted by relevance
| /petsc/src/sys/objects/device/tests/ |
| H A D | ex9.c | 7 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 D | syclcontext.sycl.cxx | 85 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 D | hostcontext.cxx | 22 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 D | device.c | 140 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 D | cupmcontext.hpp | 324 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 D | Device.pyx | 363 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 D | dcontext.cxx | 475 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 D | test_device.py | 35 self.assertTrue(dctx.idle())
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 2641 (dpm/parallel/disable-idle-wait? #f)
|