Fix hipMalloc to return error code if allocation fails.
이 커밋은 다음에 포함됨:
1 부모
59ab3659ee
커밋
59df70662a
2 파일이 변경됨
+12
-8
검색과 일치하는 파일 없음
@@ -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
|
||||
*/
|
||||
|
||||
새 이슈에서 참조
사용자 차단