类 Device

java.lang.Object
org.apache.tvm.Device
直接已知子类
TVMRemoteDevice

public class Device extends Object
  • 字段详细信息

    • deviceType

      public final int deviceType
    • deviceId

      public final int deviceId
  • 构造器详细信息

    • Device

      public Device(int deviceType, int deviceId)
    • Device

      public Device(String deviceType, int deviceId)
  • 方法详细信息

    • cpu

      public static Device cpu(int devId)
      构造一个 CPU 设备。
      参数
      devId - 设备 ID
      返回
      创建的设备
    • cpu

      public static Device cpu()
    • cuda

      public static Device cuda(int devId)
      构造一个 CUDA GPU 设备。
      参数
      devId - 设备 ID
      返回
      创建的设备
    • cuda

      public static Device cuda()
    • opencl

      public static Device opencl(int devId)
      构造一个 OpenCL 设备。
      参数
      devId - 设备 ID
      返回
      创建的设备
    • opencl

      public static Device opencl()
    • vulkan

      public static Device vulkan(int devId)
      构造一个 Vulkan 设备。
      参数
      devId - 设备 ID
      返回
      创建的设备
    • vulkan

      public static Device vulkan()
    • metal

      public static Device metal(int devId)
      构造一个 metal 设备。
      参数
      devId - 设备 ID
      返回
      创建的设备
    • metal

      public static Device metal()
    • vpi

      public static Device vpi(int devId)
      构造一个 VPI 模拟设备。
      参数
      devId - 设备 ID
      返回
      创建的设备
    • vpi

      public static Device vpi()
    • hexagon

      public static Device hexagon(int devId)
      构造一个 Hexagon 设备。
      参数
      devId - 设备 ID
      返回
      创建的设备
    • hexagon

      public static Device hexagon()
    • exist

      public boolean exist()
      此设备是否存在。
      返回
      如果存在则为 true。
    • maxThreadsPerBlock

      public long maxThreadsPerBlock()
      每个块上的最大线程数。
      返回
      最大线程数。
    • warpSize

      public long warpSize()
      并发执行的线程数。
      返回
      线程数。
    • sync

      public void sync()
      同步直到设备上的任务完成。
    • hashCode

      public int hashCode()
      覆盖
      hashCode 在类 Object
    • equals

      public boolean equals(Object other)
      覆盖
      equals 在类 Object
    • toString

      public String toString()
      覆盖
      toString 在类 Object