petsc4py.PETSc.Device.Type#
- class petsc4py.PETSc.Device.Type#
Bases:
IntEnumThe type of device.
See also
Device,Device.create,Device.getDeviceType,Device.type,PetscDeviceType,PETSC_DEVICE_DEFAULTMethods Summary
DEFAULT()Return the current default device type.
Attributes Summary
Enum member
HOSTofDeviceTypeEnum member
CUDAofDeviceTypeEnum member
HIPofDeviceTypeEnum member
SYCLofDeviceTypeMethods Documentation
- classmethod DEFAULT()#
Return the current default device type.
Not collective.
See also
Source code at petsc4py/PETSc/Device.pyx:17
- Return type:
Attributes Documentation
- HOST = 0#
Enum member
HOSTofDeviceType
- CUDA = 1#
Enum member
CUDAofDeviceType
- HIP = 2#
Enum member
HIPofDeviceType
- SYCL = 3#
Enum member
SYCLofDeviceType