Class CLDeviceTopologyAMD

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class CLDeviceTopologyAMD extends Struct<CLDeviceTopologyAMD> implements NativeResource
The struct returned by GetDeviceInfo with param_name set to DEVICE_TOPOLOGY_AMD.

Layout


 union cl_device_topology_amd {
     struct {
         cl_uint type;
         cl_uint data[5];
     } raw;
     struct {
         cl_uint type;
         char[17];
         cl_char bus;
         cl_char device;
         cl_char function;
     } pcie;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • RAW

      public static final int RAW
      The struct member offsets.
    • RAW_TYPE

      public static final int RAW_TYPE
      The struct member offsets.
    • RAW_DATA

      public static final int RAW_DATA
      The struct member offsets.
    • PCIE

      public static final int PCIE
      The struct member offsets.
    • PCIE_TYPE

      public static final int PCIE_TYPE
      The struct member offsets.
    • PCIE_BUS

      public static final int PCIE_BUS
      The struct member offsets.
    • PCIE_DEVICE

      public static final int PCIE_DEVICE
      The struct member offsets.
    • PCIE_FUNCTION

      public static final int PCIE_FUNCTION
      The struct member offsets.
  • Constructor Details

    • CLDeviceTopologyAMD

      public CLDeviceTopologyAMD(ByteBuffer container)
      Creates a CLDeviceTopologyAMD instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details