Fix hipMalloc to return error code if allocation fails.

이 커밋은 다음에 포함됨:
Ben Sander가 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
*/