Add hipDeviceAttributeExpertSchedMode (#2435)

* Add hipDeviceAttributeExpertSchedMode

---------

Co-authored-by: Stefan Sokolovic <stefan.sokolovic2@amd.com>

* Update hipDeviceAttributeExpertSchedMode unit test

* Move check to ROCr from thunk interface

* Revert unrelated whitespace changes

* Revert version bump

---------

Co-authored-by: Stefan Sokolovic <stefan.sokolovic2@amd.com>
This commit is contained in:
Filip Jankovic
2026-01-15 17:41:39 +01:00
committed by GitHub
parent 940488ed58
commit 29cd25df66
7 changed files with 32 additions and 2 deletions
@@ -179,6 +179,7 @@ TEST_CASE("Unit_hipGetDeviceAttribute_CheckAttrValues") {
HIP_CHECK(
test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeManagedMemory, props.managedMemory));
HIP_CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeNumberOfXccs));
HIP_CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeExpertSchedMode));
#endif
HIP_CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeMaxPitch, props.memPitch));
@@ -356,7 +357,7 @@ constexpr AttributeToStringMap<33> kCudaOnlyAttributes{
#endif
#if HT_AMD
constexpr AttributeToStringMap<18> kAmdOnlyAttributes{{
constexpr AttributeToStringMap<19> kAmdOnlyAttributes{{
{hipDeviceAttributeClockInstructionRate, "hipDeviceAttributeClockInstructionRate"},
{hipDeviceAttributeUnused3, "hipDeviceAttributeUnused3"},
{hipDeviceAttributeMaxSharedMemoryPerMultiprocessor,
@@ -380,7 +381,8 @@ constexpr AttributeToStringMap<18> kAmdOnlyAttributes{{
{hipDeviceAttributePhysicalMultiProcessorCount,
"hipDeviceAttributePhysicalMultiProcessorCount"},
{hipDeviceAttributeFineGrainSupport, "hipDeviceAttributeFineGrainSupport"},
{hipDeviceAttributeNumberOfXccs, "hipDeviceAttributeNumberOfXccs"}
{hipDeviceAttributeNumberOfXccs, "hipDeviceAttributeNumberOfXccs"},
{hipDeviceAttributeExpertSchedMode, "hipDeviceAttributeExpertSchedMode"}
// {hipDeviceAttributeWallClockRate, "hipDeviceAttributeWallClockRate"}
}};
#endif