Add API for available GPU memory

Add support for AMD Agent to return amount of memory available

Change-Id: I5c32e2cebbaa2993b044250aefe434e4cc02d8c2
Signed-off-by: David Yat Sin <david.yatsin@amd.com>
This commit is contained in:
David Yat Sin
2022-04-26 21:11:37 -04:00
committato da David Yat Sin
parent dd671b49e5
commit 4ac840269c
4 ha cambiato i file con 28 aggiunte e 1 eliminazioni
+7 -1
Vedi File
@@ -318,7 +318,13 @@ typedef enum hsa_amd_agent_info_s {
* cooperative dispatch.
* The type of this attribute is uint32_t.
*/
HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT = 0xA014
HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT = 0xA014,
/**
* Queries the amount of memory available in bytes accross all global pools
* owned by the agent.
* The type of this attribute is uint64_t.
*/
HSA_AMD_AGENT_INFO_MEMORY_AVAIL = 0xA015
} hsa_amd_agent_info_t;
typedef struct hsa_amd_hdp_flush_s {