From fb408b70d1e2802022f60aa7b28ae7f2edb88919 Mon Sep 17 00:00:00 2001 From: "Sang, Tao" Date: Tue, 8 Jul 2025 10:03:57 -0400 Subject: [PATCH] SWDEV-508776 - support VGPRs validation (#77) Add hipDeviceAttributeMaxAvailableVgprsPerThread attribute [ROCm/hip commit: 3b6b7642a7a18ba19d95cbb55deb530f29fa853f] --- projects/hip/include/hip/hip_runtime_api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index e96769113b..337dd94718 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -551,6 +551,8 @@ typedef enum hipDeviceAttribute_t { hipDeviceAttributeFineGrainSupport, ///< '1' if Device supports fine grain, '0' otherwise hipDeviceAttributeWallClockRate, ///< Constant frequency of wall clock in kilohertz. hipDeviceAttributeNumberOfXccs, ///< The number of XCC(s) on the device + hipDeviceAttributeMaxAvailableVgprsPerThread, ///< Max number of available (directly or indirectly + ///< addressable) VGPRs per thread in DWORDs. hipDeviceAttributeAmdSpecificEnd = 19999, hipDeviceAttributeVendorSpecificBegin = 20000,