Home
last modified time | relevance | path

Searched defs:device (Results 1 – 25 of 43) sorted by relevance

12

/petsc/src/sys/objects/device/c/
H A Ddevice.c6 …scDeviceCreate(PETSC_UNUSED PetscDeviceType type, PETSC_UNUSED PetscInt devid, PetscDevice *device) in PetscDeviceCreate()
14 PetscErrorCode PetscDeviceDestroy(PetscDevice *device) in PetscDeviceDestroy()
22 PetscErrorCode PetscDeviceConfigure(PETSC_UNUSED PetscDevice device) in PetscDeviceConfigure()
28 PetscErrorCode PetscDeviceView(PETSC_UNUSED PetscDevice device, PetscViewer viewer) in PetscDeviceView()
35 PetscErrorCode PetscDeviceGetType(PETSC_UNUSED PetscDevice device, PetscDeviceType *type) in PetscDeviceGetType()
43 PetscErrorCode PetscDeviceGetDeviceId(PETSC_UNUSED PetscDevice device, PetscInt *id) in PetscDeviceGetDeviceId()
104 … PetscDeviceContextSetDevice(PETSC_UNUSED PetscDeviceContext dctx, PETSC_UNUSED PetscDevice device) in PetscDeviceContextSetDevice()
110 …tscErrorCode PetscDeviceContextGetDevice(PETSC_UNUSED PetscDeviceContext dctx, PetscDevice *device) in PetscDeviceContextGetDevice()
263 …rCode PetscDeviceGetDefaultForType_Internal(PETSC_UNUSED PetscDeviceType type, PetscDevice *device) in PetscDeviceGetDefaultForType_Internal()
286 PetscErrorCode PetscDeviceGetAttribute(PETSC_UNUSED PetscDevice device, PETSC_UNUSED PetscDeviceAtt… in PetscDeviceGetAttribute()
/petsc/src/sys/objects/device/interface/
H A Ddevice.cxx102 PetscErrorCode PetscDeviceCreate(PetscDeviceType type, PetscInt devid, PetscDevice *device) in PetscDeviceCreate()
145 PetscErrorCode PetscDeviceDestroy(PetscDevice *device) in PetscDeviceDestroy()
177 PetscErrorCode PetscDeviceConfigure(PetscDevice device) in PetscDeviceConfigure()
219 PetscErrorCode PetscDeviceView(PetscDevice device, PetscViewer viewer) in PetscDeviceView()
280 PetscErrorCode PetscDeviceGetType(PetscDevice device, PetscDeviceType *type) in PetscDeviceGetType()
309 PetscErrorCode PetscDeviceGetDeviceId(PetscDevice device, PetscInt *id) in PetscDeviceGetDeviceId()
459 PetscErrorCode PetscDeviceGetDefaultForType_Internal(PetscDeviceType type, PetscDevice *device) in PetscDeviceGetDefaultForType_Internal()
490 PetscErrorCode PetscDeviceGetAttribute(PetscDevice device, PetscDeviceAttribute attr, void *value) in PetscDeviceGetAttribute()
H A Ddcontext.cxx242 …rCode PetscDeviceContextSetDevice_Private(PetscDeviceContext dctx, PetscDevice device, PetscBool u… in PetscDeviceContextSetDevice_Private()
265 PetscDevice device; in PetscDeviceContextSetDefaultDeviceForType_Internal() local
298 PetscErrorCode PetscDeviceContextSetDevice(PetscDeviceContext dctx, PetscDevice device) in PetscDeviceContextSetDevice()
323 PetscErrorCode PetscDeviceContextGetDevice(PetscDeviceContext dctx, PetscDevice *device) in PetscDeviceContextGetDevice()
354 PetscDevice device = nullptr; in PetscDeviceContextGetDeviceType() local
405 …if (const auto device = dctx->device) PetscCall(PetscDeviceContextSetDevice_Private(*dctxdup, devi… in PetscDeviceContextDuplicate_Private() local
861 …eContextGetNullContextForDevice_Private(PetscBool user_set_device, PetscDevice device, PetscDevice… in PetscDeviceContextGetNullContextForDevice_Private()
967 if (const auto device = dctx->device) PetscCall(PetscDeviceGetType(device, &dtype.first)); in PetscDeviceContextSetFromOptions() local
1039 if (const auto device = dctx->device) PetscCall(PetscDeviceView(device, viewer)); in PetscDeviceContextView() local
/petsc/src/sys/objects/device/impls/
H A Dimpldevicebase.hpp16 namespace device namespace
94 inline PetscErrorCode DeviceBase<D>::getDevice(PetscDevice device, PetscInt id) noexcept in getDevice()
107 inline PetscErrorCode DeviceBase<D>::configureDevice(PetscDevice device) noexcept in configureDevice()
115 inline PetscErrorCode DeviceBase<D>::viewDevice(PetscDevice device, PetscViewer viewer) noexcept in viewDevice()
123 inline PetscErrorCode DeviceBase<D>::getAttribute(PetscDevice device, PetscDeviceAttribute attr, vo… in getAttribute()
/petsc/src/sys/objects/device/tests/
H A Dpetscdevicetestcommon.h16 static inline PetscErrorCode AssertDeviceExists(PetscDevice device) in AssertDeviceExists()
23 static inline PetscErrorCode AssertDeviceDoesNotExist(PetscDevice device) in AssertDeviceDoesNotExist()
H A Dex5.c8 PetscDevice device = NULL; in main() local
H A Dex8.c8 PetscDevice device = NULL, other_device = NULL; in main() local
H A Dex1.c8 PetscDevice device = NULL; in main() local
/petsc/src/sys/objects/device/impls/cupm/
H A Dcupmdevice.cxx14 namespace device namespace
329 PetscErrorCode Device<T>::configure_device_(PetscDevice device) noexcept in configure_device_()
337 PetscErrorCode Device<T>::view_device_(PetscDevice device, PetscViewer viewer) noexcept in view_device_()
H A Dcupmdevice.hpp12 namespace device namespace
H A Dcupmblasinterface.cxx7 namespace device namespace
H A Dcupmsolverinterface.cxx7 namespace device namespace
H A Dcupmthrustutility.hpp14 namespace device namespace
H A Dcupmevent.hpp12 namespace device namespace
H A Dcupmstream.hpp11 namespace device namespace
H A Dcupminterface.cxx11 namespace device namespace
H A Dkernels.hpp8 namespace device namespace
H A Dcupmallocator.hpp16 namespace device namespace
/petsc/src/sys/objects/device/impls/host/
H A Dhostdevice.hpp8 namespace device namespace
H A Dhostdevice.cxx6 namespace device namespace
H A Dhostcontext.cxx8 namespace device namespace
/petsc/src/sys/objects/device/impls/sycl/
H A Dsycldevice.hpp10 namespace device namespace
H A Dsycldevice.sycl.cxx11 namespace device namespace
203 PetscErrorCode Device::view_device_(PetscDevice device, PetscViewer viewer) noexcept in view_device_()
/petsc/src/sys/objects/kokkos/
H A Dkinit.kokkos.cxx47 PetscDevice device; in PetscKokkosInitializeCheck() local
/petsc/include/petsc/private/
H A Ddeviceimpl.h237 PetscDevice device; /* the device this context stems from */ member
253 static inline PetscErrorCode PetscDeviceReference_Internal(PetscDevice device) in PetscDeviceReference_Internal()
261 static inline PetscErrorCode PetscDeviceDereference_Internal(PetscDevice device) in PetscDeviceDereference_Internal()
279 #define PetscDeviceGetDefault_Internal(device) PetscDeviceGetDefaultForType_Internal(PETSC_DEVICE_D… argument

12