Added hipDeviceTotalMem

Change-Id: I877fbc9e4767bbd70ecd0184f5123c9bc6cbd06f
This commit is contained in:
Rahul Garg
2016-09-02 15:11:36 +05:30
parent bc055d960a
commit 2f8d9e20b2
3 changed files with 21 additions and 0 deletions
+9
View File
@@ -1274,6 +1274,15 @@ hipError_t hipDeviceGetName(char *name,int len,hipDevice_t device);
*/
hipError_t hipDeviceGetPCIBusId (int *pciBusId,int len,hipDevice_t device);
/**
* @brief Returns the total amount of memory on the device.
* @param [out] bytes
* @param [in] device
*
* @returns #hipSuccess, #hipErrorInavlidDevice
*/
hipError_t hipDeviceTotalMem (size_t *bytes,hipDevice_t device);
/**
* @brief Returns the approximate HIP driver version.
*