petsc4py.PETSc.Device.Type#

class petsc4py.PETSc.Device.Type#

Bases: IntEnum

The type of device.

Methods Summary

DEFAULT()

Return the current default device type.

Attributes Summary

HOST

Enum member HOST of DeviceType

CUDA

Enum member CUDA of DeviceType

HIP

Enum member HIP of DeviceType

SYCL

Enum member SYCL of DeviceType

Methods Documentation

classmethod DEFAULT()#

Return the current default device type.

Not collective.

Source code at petsc4py/PETSc/Device.pyx:17

Return type:

Self

Attributes Documentation

HOST = 0#

Enum member HOST of DeviceType

CUDA = 1#

Enum member CUDA of DeviceType

HIP = 2#

Enum member HIP of DeviceType

SYCL = 3#

Enum member SYCL of DeviceType