Add HasExpertSchedMode device prop (#2241)
* Add HasExpertSchedMode device prop * Add unit tests for HasExpertSchedMode * Add gfx12 check for HasExpertSchedMode prop * Update gfx major version check and test for ExpertSchedMode * Minor fix and ROCr version bump * Update projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h * Update projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h * Apply suggestion from @dayatsin-amd * Apply suggestion from @dayatsin-amd --------- Co-authored-by: Stefan Sokolovic <stefan.sokolovic2@amd.com> Co-authored-by: David Yat Sin <77975354+dayatsin-amd@users.noreply.github.com>
Tento commit je obsažen v:
@@ -1717,6 +1717,9 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
static_cast<hsa_luid_t*>(value)->low = properties_.LuidLowPart;
|
||||
static_cast<hsa_luid_t*>(value)->high = properties_.LuidHighPart;
|
||||
break;
|
||||
case HSA_AMD_AGENT_INFO_HAS_EXPERT_SCHED_MODE:
|
||||
*((bool*)value) = properties_.HasExpertSchedMode != 0;
|
||||
break;
|
||||
default:
|
||||
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
break;
|
||||
|
||||
@@ -66,9 +66,10 @@
|
||||
* - 1.13 - hsa_amd_pointer_info: Added new registered field to hsa_amd_pointer_info_t
|
||||
* - 1.14 - hsa_amd_ais_file_write, hsa_amd_ais_file_read
|
||||
* - 1.15 - hsa_amd_register_system_event_handler: HSA_AMD_SYSTEM_SHUTDOWN
|
||||
* - 1.16 - hsa_amd_agent_info_t: HSA_AMD_AGENT_INFO_HAS_EXPERT_SCHED_MODE
|
||||
*/
|
||||
#define HSA_AMD_INTERFACE_VERSION_MAJOR 1
|
||||
#define HSA_AMD_INTERFACE_VERSION_MINOR 15
|
||||
#define HSA_AMD_INTERFACE_VERSION_MINOR 16
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -715,6 +716,10 @@ typedef enum hsa_amd_agent_info_s {
|
||||
* valid on Windows. The type of this attribute is LUID.
|
||||
*/
|
||||
HSA_AMD_AGENT_INFO_LUID = 0xA11A,
|
||||
/**
|
||||
* The agent supports expert scheduling mode. The type of this attribute is bool.
|
||||
*/
|
||||
HSA_AMD_AGENT_INFO_HAS_EXPERT_SCHED_MODE = 0xA11B,
|
||||
} hsa_amd_agent_info_t;
|
||||
|
||||
/**
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele