Workgroup Clusters#
Operations related to AMD GPU Workgroup Clusters. More...
Data Structures | |
| struct | amd_dbgapi_cluster_id_t |
| Opaque cluster handle. More... | |
Macros | |
| #define | AMD_DBGAPI_CLUSTER_NONE AMD_DBGAPI_HANDLE_LITERAL (amd_dbgapi_cluster_id_t, 0) |
| The NULL cluster handle. | |
Enumerations | |
| enum | amd_dbgapi_cluster_info_t { AMD_DBGAPI_CLUSTER_INFO_DISPATCH = 1 , AMD_DBGAPI_CLUSTER_INFO_QUEUE = 2 , AMD_DBGAPI_CLUSTER_INFO_AGENT = 3 , AMD_DBGAPI_CLUSTER_INFO_PROCESS = 4 , AMD_DBGAPI_CLUSTER_INFO_ARCHITECTURE = 5 , AMD_DBGAPI_CLUSTER_INFO_CLUSTER_COORD = 6 } |
| Cluster queries that are supported by amd_dbgapi_cluster_get_info. More... | |
Functions | |
| amd_dbgapi_status_t AMD_DBGAPI | amd_dbgapi_cluster_get_info (amd_dbgapi_cluster_id_t cluster_id, amd_dbgapi_cluster_info_t query, size_t value_size, void *value) AMD_DBGAPI_VERSION_0_82 |
| Query information about a cluster. | |
Detailed Description
Operations related to AMD GPU Workgroup Clusters.
Macro Definition Documentation
◆ AMD_DBGAPI_CLUSTER_NONE
| #define AMD_DBGAPI_CLUSTER_NONE AMD_DBGAPI_HANDLE_LITERAL (amd_dbgapi_cluster_id_t, 0) |
The NULL cluster handle.
Enumeration Type Documentation
◆ amd_dbgapi_cluster_info_t
Cluster queries that are supported by amd_dbgapi_cluster_get_info.
Each query specifies the type of data returned in the value argument to amd_dbgapi_cluster_get_info.
| Enumerator | |
|---|---|
| AMD_DBGAPI_CLUSTER_INFO_DISPATCH | Return the dispatch to which this cluster belongs. The type of this attribute is amd_dbgapi_dispatch_id_t. |
| AMD_DBGAPI_CLUSTER_INFO_QUEUE | Return the queue to which this cluster belongs. The type of this attribute is amd_dbgapi_queue_id_t. |
| AMD_DBGAPI_CLUSTER_INFO_AGENT | Return the agent to which this cluster belongs. The type of this attribute is amd_dbgapi_agent_id_t. |
| AMD_DBGAPI_CLUSTER_INFO_PROCESS | Return the process to which this cluster belongs. The type of this attribute is amd_dbgapi_process_id_t. |
| AMD_DBGAPI_CLUSTER_INFO_ARCHITECTURE | Return the architecture of this cluster. The type of this attribute is amd_dbgapi_architecture_id_t. |
| AMD_DBGAPI_CLUSTER_INFO_CLUSTER_COORD | The cluster coordinate in the dispatch grid dimensions. The type of this attribute is If the dispatch associated with a workgroup is not available then amd_dbgapi_cluster_get_info returns AMD_DBGAPI_STATUS_ERROR_NOT_AVAILABLE. See the Known Limitations and Restrictions section. |
Function Documentation
◆ amd_dbgapi_cluster_get_info()
| amd_dbgapi_status_t AMD_DBGAPI amd_dbgapi_cluster_get_info | ( | amd_dbgapi_cluster_id_t | cluster_id, |
| amd_dbgapi_cluster_info_t | query, | ||
| size_t | value_size, | ||
| void * | value ) |
Query information about a cluster.
amd_dbgapi_cluster_info_t specifies the queries supported and the type returned using the value argument.
- Parameters
-
[in] cluster_id The handle of the cluster being queried. [in] query The query being requested. [in] value_size Size of the memory pointed to by value. Must be equal to the byte size of the query result.[out] value Pointer to memory where the query result is stored.
- Return values
-
AMD_DBGAPI_STATUS_SUCCESS The function has been executed successfully and the result is stored in value.AMD_DBGAPI_STATUS_FATAL A fatal error occurred. The library is left uninitialized and valueis unaltered.AMD_DBGAPI_STATUS_ERROR_NOT_INITIALIZED The library is not initialized. The library is left uninitialized and valueis unaltered.AMD_DBGAPI_STATUS_ERROR_INVALID_CLUSTER_ID cluster_idis invalid.valueis unaltered.AMD_DBGAPI_STATUS_ERROR_INVALID_ARGUMENT valueis NULL orqueryis invalid.valueis unaltered.AMD_DBGAPI_STATUS_ERROR_INVALID_ARGUMENT_COMPATIBILITY value_sizedoes not match the size of thequeryresult.valueis unaltered.AMD_DBGAPI_STATUS_ERROR_NOT_AVAILABLE Therequested information is not available. See amd_dbgapi_cluster_info_t for queries that can produce this error.valueis unaltered.