Update error codes for hipGetDevice for doxygen and move up null check (#1668)

* [docs] Update error codes for hipGetDevice

* Move up out ptr check
This commit is contained in:
Rahul Garg
2019-11-20 08:05:27 -08:00
committed by Maneesh Gupta
parent 8519a1411c
commit b3161e9fa0
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -391,7 +391,7 @@ hipError_t hipSetDevice(int deviceId);
* This device is used implicitly for HIP runtime APIs called by this thread.
* hipGetDevice returns in * @p device the default device for the calling host thread.
*
* @returns #hipSuccess
* @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue
*
* @see hipSetDevice, hipGetDevicesizeBytes
*/