EXSWHTEC-108 - Implement tests for hipFuncGetAttributes #58
Change-Id: I7aa979434724aa3d39343a6c69f67de83e61de4c
This commit is contained in:
committed by
Rakesh Roy
parent
380ace735f
commit
053c58ab2d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user