hipMemSetAccess

Function hipMemSetAccess 

Source
pub unsafe extern "C" fn hipMemSetAccess(
    ptr: *mut c_void,
    size: usize,
    desc: *const hipMemAccessDesc,
    count: usize,
) -> hipError_t
Expand description

@brief Set the access flags for each location specified in desc for the given virtual address range.

@param [in] ptr - starting address of the virtual address range. @param [in] size - size of the range. @param [in] desc - array of hipMemAccessDesc. @param [in] count - number of hipMemAccessDesc in desc. @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported @warning This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.

@note This API is implemented on Linux and is under development on Microsoft Windows.