VesinDevice Derived Type

type, public, bind(c) :: VesinDevice

Device on which data can be allocated


Components

Type Visibility Attributes Name Initial
integer(kind=c_int), public :: type = VesinUnknownDevice

Device type (VesinUnknownDevice, VesinCPU, etc.)

integer(kind=c_int), public :: device_id = 0

Device index (0 for CPU, GPU index for CUDA)