Skip to main content

hipMemPrefetchAsync_v2

Function hipMemPrefetchAsync_v2 

Source
pub unsafe extern "C" fn hipMemPrefetchAsync_v2(
    dev_ptr: *const c_void,
    count: usize,
    location: hipMemLocation,
    flags: c_uint,
    stream: hipStream_t,
) -> hipError_t
Expand description

@brief Prefetches memory to the specified destination device using HIP.

@param [in] dev_ptr pointer to be prefetched @param [in] count size in bytes for prefetching @param [in] location destination location to prefetch to @param [in] flags flags for future use, must be zero now. @param [in] stream stream to enqueue prefetch operation

@returns #hipSuccess, #hipErrorInvalidValue

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