EXSWHTEC-108 - Implement tests for hipFuncGetAttributes #58

Change-Id: I7aa979434724aa3d39343a6c69f67de83e61de4c
This commit is contained in:
Mirza Halilčević
2023-12-28 19:26:42 +01:00
committed by Rakesh Roy
parent 380ace735f
commit 053c58ab2d
4 changed files with 88 additions and 0 deletions
+6
View File
@@ -169,3 +169,9 @@ inline bool DeviceAttributesSupport(const int device, Attributes... attributes)
};
return (... && DeviceAttributeSupport(device, attributes));
}
inline int GetDeviceAttribute(int device, const hipDeviceAttribute_t attr) {
int value = 0;
HIP_CHECK(hipDeviceGetAttribute(&value, attr, device));
return value;
}