From 662ee1c7e1fb3c5b46f8527d25580b72f280d2c6 Mon Sep 17 00:00:00 2001 From: "systems-assistant[bot]" <221163467+systems-assistant[bot]@users.noreply.github.com> Date: Tue, 9 Sep 2025 11:27:28 +0530 Subject: [PATCH] =?UTF-8?q?SWDEV-543997=20-=20Expose=20numXCC=20device=20p?= =?UTF-8?q?roperty=20in=20hipGetDevicePropertie=E2=80=A6=20(#527)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * SWDEV-543997 - Expose numXCC device property in hipGetDeviceProperties api * SWDEV-543997 - Expose numXCC device property in hipGetDeviceProperties api --------- Co-authored-by: Anavena Venkatesh Co-authored-by: systems-assistant[bot] Co-authored-by: jainprad <92369414+jainprad@users.noreply.github.com> --- .../hip-tests/catch/unit/device/hipGetDeviceAttribute.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/device/hipGetDeviceAttribute.cc b/projects/hip-tests/catch/unit/device/hipGetDeviceAttribute.cc index 340c6ca7bb..9f4651022b 100644 --- a/projects/hip-tests/catch/unit/device/hipGetDeviceAttribute.cc +++ b/projects/hip-tests/catch/unit/device/hipGetDeviceAttribute.cc @@ -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