Package org.lwjgl.opencl
Class AMDDeviceTopology
java.lang.Object
org.lwjgl.opencl.AMDDeviceTopology
Native bindings to the amd_device_topology extension.
This extension enables the developer to get a description of the topology used to connect the device to the host.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted as theparam_name
parameter ofGetDeviceInfo
.static final int
Indicates the type of the struct returned byDEVICE_TOPOLOGY_AMD
. -
Method Summary
-
Field Details
-
CL_DEVICE_TOPOLOGY_AMD
public static final int CL_DEVICE_TOPOLOGY_AMDAccepted as theparam_name
parameter ofGetDeviceInfo
. Returns a description of the topology used to connect the device to the host, using the following 32-bytes union of structures:typedef union { struct { cl_uint type; cl_uint data[5]; } raw; struct { cl_uint type; cl_char unused[17]; cl_char bus; cl_char device; cl_char function; } pcie; } cl_device_topology_amd;
The type of the structure returned can be queried by reading the first unsigned int of the returned data. The developer can use this type to cast the returned union into the right structure type.
Currently, the only supported type in the structure above is
DEVICE_TOPOLOGY_TYPE_PCIE_AMD
. The information returned contains the PCI Bus/Device/Function of the device, and is similar to the result of the lspci command in Linux. It enables the developer to match between the OpenCL device ID and the physical PCI connection of the card.- See Also:
-
CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD
public static final int CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMDIndicates the type of the struct returned byDEVICE_TOPOLOGY_AMD
.- See Also:
-