Added hipDeviceTotalMem

Change-Id: I877fbc9e4767bbd70ecd0184f5123c9bc6cbd06f


[ROCm/clr commit: 302f6c1e3a]
This commit is contained in:
Rahul Garg committed 2016-09-02 15:12:50 +05:30
1 orang tua 02b799c3a7
melakukan bb03a2274d
3 files changed
+21

No files matched your search

@@ -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);
}