Fix hipMalloc to return error code if allocation fails.
Tá an tiomantas seo le fáil i:
1 tuismitheoir
59ab3659ee
tiomantas
59df70662a
2 comhad athraithe
+12
-8
Níor tháinig aon chomhaid le do chuardach
@@ -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
|
||||
*/
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir