SWDEV-299127 - Merge 'develop' into 'amd-staging'

Change-Id: Id1921f5867ee9f2cb98748a192aa85b7e0fd5ca8


[ROCm/hip commit: 72d3f7e7a4]
This commit is contained in:
Jenkins
2023-08-15 23:09:54 +00:00
+8 -2
View File
@@ -2863,7 +2863,7 @@ hipError_t hipHostMalloc(void** ptr, size_t size, unsigned int flags);
/**
* @brief Allocates memory that will be automatically managed by HIP.
*
* This API is used for managed memory, allows data be shared and accessible to both the CPU and
* This API is used for managed memory, allows data be shared and accessible to both CPU and
* GPU using a single pointer.
*
* The API returns the allocation pointer, managed by HMM, can be used further to execute kernels
@@ -2902,12 +2902,18 @@ hipError_t hipMemPrefetchAsync(const void* dev_ptr,
* @brief Advise about the usage of a given memory range to HIP.
*
* @param [in] dev_ptr pointer to memory to set the advice for
* @param [in] count size in bytes of the memory range, it should be 4KB alligned.
* @param [in] count size in bytes of the memory range, it should be CPU page size alligned.
* @param [in] advice advice to be applied for the specified memory range
* @param [in] device device to apply the advice for
*
* @returns #hipSuccess, #hipErrorInvalidValue
*
* This HIP advises about the usage to be applied on unified memory allocation in the
* range starting from the pointer address devPtr, with the size of count bytes.
* The memory range must refer to managed memory allocated via the API hipMallocManaged, and the
* range will be handled with proper round down and round up respectively in the driver to
* be aligned to CPU page size.
*
* @note This API is implemented on Linux, under development on Windows.
*/
hipError_t hipMemAdvise(const void* dev_ptr,