SWDEV-533074 - Expose hipDeviceAttributeNumberOfXccs attribute (#336)

This commit is contained in:
Andryeyev, German authored and GitHub committed 2025-05-21 22:35:42 +05:30
1 parent 664bf232dd
commit 5cc172c99c
4 files changed
+12

No files matched your search

+3
View File
@@ -445,6 +445,9 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
case hipDeviceAttributeAccessPolicyMaxWindowSize:
*pi = prop.accessPolicyMaxWindowSize;
break;
case hipDeviceAttributeNumberOfXccs:
*pi = static_cast<int>(g_devices[device]->devices()[0]->info().numberOfXccs_);
break;
default:
HIP_RETURN(hipErrorInvalidValue);
}