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:
committato da
David Yat Sin
parent
dd671b49e5
commit
4ac840269c
@@ -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 {
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user