Added hipDeviceTotalMem

Change-Id: I877fbc9e4767bbd70ecd0184f5123c9bc6cbd06f
Cette révision appartient à :
Rahul Garg
2016-09-02 15:11:36 +05:30
Parent bc055d960a
révision 2f8d9e20b2
3 fichiers modifiés avec 21 ajouts et 0 suppressions
+7
Voir le fichier
@@ -354,3 +354,10 @@ hipError_t hipDeviceGetPCIBusId (int *pciBusId,int len,hipDevice_t device)
return ihipLogStatus(e);
}
hipError_t hipDeviceTotalMem (size_t *bytes,hipDevice_t device)
{
HIP_INIT_API(bytes, device);
hipError_t e = hipSuccess;
*bytes= device->_props.totalGlobalMem;
return ihipLogStatus(e);
}