Split UMF_RESULT_ERROR_OUT_OF_HOST_MEMORY
into Distinct Error Codes
#968
Labels
enhancement
New feature or request
Description:
Currently, the
umf_result_t
enumeration includes an error codeUMF_RESULT_ERROR_OUT_OF_HOST_MEMORY
that is used in two distinct scenarios within the UMF library:Using the same error code for both situations can make it difficult for developers to accurately diagnose and handle errors, as the root causes might be different (especially for providers like: gpu, dax etc...).
Proposal:
Split
UMF_RESULT_ERROR_OUT_OF_HOST_MEMORY
into two separate error codes:UMF_RESULT_ERROR_OUT_OF_HOST_MEMORY
: Retain this error code to exclusively represent failures in allocating host memory for UMF's internal metadata and operations.UMF_RESULT_ERROR_MEMORY_PROVIDER_OUT_OF_MEMORY
: Introduce this new error code to indicate that a memory provider has run out of memory and cannot fulfill the allocation request.The text was updated successfully, but these errors were encountered: