类 Device
java.lang.Object
org.apache.tvm.Device
- 直接已知子类
TVMRemoteDevice
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法描述static Device
cpu()
static Device
cpu
(int devId) 构造一个 CPU 设备。static Device
cuda()
static Device
cuda
(int devId) 构造一个 CUDA GPU 设备。boolean
boolean
exist()
此设备是否存在。int
hashCode()
static Device
hexagon()
static Device
hexagon
(int devId) 构造一个 Hexagon 设备。long
每个块上的最大线程数。static Device
metal()
static Device
metal
(int devId) 构造一个 metal 设备。static Device
opencl()
static Device
opencl
(int devId) 构造一个 OpenCL 设备。void
sync()
同步直到设备上的任务完成。toString()
static Device
vpi()
static Device
vpi
(int devId) 构造一个 VPI 模拟设备。static Device
vulkan()
static Device
vulkan
(int devId) 构造一个 Vulkan 设备。long
warpSize()
并发执行的线程数。
-
字段详细信息
-
deviceType
public final int deviceType -
deviceId
public final int deviceId
-
-
构造器详细信息
-
Device
public Device(int deviceType, int deviceId) -
Device
-
-
方法详细信息
-
cpu
构造一个 CPU 设备。- 参数
devId
- 设备 ID- 返回
- 创建的设备
-
cpu
-
cuda
构造一个 CUDA GPU 设备。- 参数
devId
- 设备 ID- 返回
- 创建的设备
-
cuda
-
opencl
构造一个 OpenCL 设备。- 参数
devId
- 设备 ID- 返回
- 创建的设备
-
opencl
-
vulkan
构造一个 Vulkan 设备。- 参数
devId
- 设备 ID- 返回
- 创建的设备
-
vulkan
-
metal
构造一个 metal 设备。- 参数
devId
- 设备 ID- 返回
- 创建的设备
-
metal
-
vpi
构造一个 VPI 模拟设备。- 参数
devId
- 设备 ID- 返回
- 创建的设备
-
vpi
-
hexagon
构造一个 Hexagon 设备。- 参数
devId
- 设备 ID- 返回
- 创建的设备
-
hexagon
-
exist
public boolean exist()此设备是否存在。- 返回
- 如果存在则为 true。
-
maxThreadsPerBlock
public long maxThreadsPerBlock()每个块上的最大线程数。- 返回
- 最大线程数。
-
warpSize
public long warpSize()并发执行的线程数。- 返回
- 线程数。
-
sync
public void sync()同步直到设备上的任务完成。 -
hashCode
public int hashCode() -
equals
-
toString
-