SWDEV-543997 - Expose numXCC device property in hipGetDevicePropertie… (#527)
* SWDEV-543997 - Expose numXCC device property in hipGetDeviceProperties api * SWDEV-543997 - Expose numXCC device property in hipGetDeviceProperties api --------- Co-authored-by: Anavena Venkatesh <Anavena.Venkatesh@amd.com> Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com> Co-authored-by: jainprad <92369414+jainprad@users.noreply.github.com>
此提交包含在:
@@ -178,6 +178,7 @@ TEST_CASE("Unit_hipGetDeviceAttribute_CheckAttrValues") {
|
||||
test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeAsicRevision, props.asicRevision));
|
||||
HIP_CHECK(
|
||||
test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeManagedMemory, props.managedMemory));
|
||||
HIP_CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeNumberOfXccs));
|
||||
#endif
|
||||
|
||||
HIP_CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeMaxPitch, props.memPitch));
|
||||
@@ -355,7 +356,7 @@ constexpr AttributeToStringMap<33> kCudaOnlyAttributes{
|
||||
#endif
|
||||
|
||||
#if HT_AMD
|
||||
constexpr AttributeToStringMap<17> kAmdOnlyAttributes{{
|
||||
constexpr AttributeToStringMap<18> kAmdOnlyAttributes{{
|
||||
{hipDeviceAttributeClockInstructionRate, "hipDeviceAttributeClockInstructionRate"},
|
||||
{hipDeviceAttributeUnused3, "hipDeviceAttributeUnused3"},
|
||||
{hipDeviceAttributeMaxSharedMemoryPerMultiprocessor,
|
||||
@@ -378,7 +379,8 @@ constexpr AttributeToStringMap<17> kAmdOnlyAttributes{{
|
||||
{hipDeviceAttributeImageSupport, "hipDeviceAttributeImageSupport"},
|
||||
{hipDeviceAttributePhysicalMultiProcessorCount,
|
||||
"hipDeviceAttributePhysicalMultiProcessorCount"},
|
||||
{hipDeviceAttributeFineGrainSupport, "hipDeviceAttributeFineGrainSupport"}
|
||||
{hipDeviceAttributeFineGrainSupport, "hipDeviceAttributeFineGrainSupport"},
|
||||
{hipDeviceAttributeNumberOfXccs, "hipDeviceAttributeNumberOfXccs"}
|
||||
// {hipDeviceAttributeWallClockRate, "hipDeviceAttributeWallClockRate"}
|
||||
}};
|
||||
#endif
|
||||
|
||||
新增問題並參考
封鎖使用者