Workgroup Clusters

Workgroup Clusters#

ROCdbgapi: Workgroup Clusters
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 uint32_t[3] with elements 1, 2, and 3 corresponding to the X, Y, and Z coordinates respectively.

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_idThe handle of the cluster being queried.
[in]queryThe query being requested.
[in]value_sizeSize of the memory pointed to by value. Must be equal to the byte size of the query result.
[out]valuePointer to memory where the query result is stored.
Return values
AMD_DBGAPI_STATUS_SUCCESSThe function has been executed successfully and the result is stored in value.
AMD_DBGAPI_STATUS_FATALA fatal error occurred. The library is left uninitialized and value is unaltered.
AMD_DBGAPI_STATUS_ERROR_NOT_INITIALIZEDThe library is not initialized. The library is left uninitialized and value is unaltered.
AMD_DBGAPI_STATUS_ERROR_INVALID_CLUSTER_IDcluster_id is invalid. value is unaltered.
AMD_DBGAPI_STATUS_ERROR_INVALID_ARGUMENTvalue is NULL or query is invalid. value is unaltered.
AMD_DBGAPI_STATUS_ERROR_INVALID_ARGUMENT_COMPATIBILITYvalue_size does not match the size of the query result. value is unaltered.
AMD_DBGAPI_STATUS_ERROR_NOT_AVAILABLEThe requested information is not available. See amd_dbgapi_cluster_info_t for queries that can produce this error. value is unaltered.