Fix hipMalloc to return error code if allocation fails.

[ROCm/hip commit: 59df70662a]
Этот коммит содержится в:
Ben Sander
2017-04-24 11:02:38 -05:00
родитель 2b8fbf40a8
Коммит ba2f2f56b8
2 изменённых файлов: 12 добавлений и 8 удалений
+1 -1
Просмотреть файл
@@ -863,7 +863,7 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, const void
*
* If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
*
* @return #hipSuccess
* @return #hipSuccess, #hipErrorMemoryAllocation, #hipErrorInvalidValue (bad context, null *ptr)
*
* @see hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostFree, hipHostMalloc
*/