Fix hipMalloc to return error code if allocation fails.

このコミットが含まれているのは:
Ben Sander committed 2017-04-24 22:30:54 -05:00
1 親 59ab3659ee
コミット 59df70662a
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
*/