hipdrvmemdiscardandprefetchbatchasync Interface Reference

hipdrvmemdiscardandprefetchbatchasync Interface Reference#

HIPFORT API Reference: hipfort::hipdrvmemdiscardandprefetchbatchasync Interface Reference
hipfort::hipdrvmemdiscardandprefetchbatchasync Interface Reference

Discards and prefetches a batch of memory ranges asynchronously (driver API variant). More...

Public Member Functions

integer(kind(hipsuccess)) function hipdrvmemdiscardandprefetchbatchasync_ (dptrs, sizes, count, prefetchlocs, prefetchlocidxs, numprefetchlocs, flags, stream)
 

Detailed Description

Discards and prefetches a batch of memory ranges asynchronously (driver API variant).

Parameters
[in]dptrspointers to the memory ranges
[in]sizessizes in bytes of the memory ranges
[in]countnumber of memory ranges
[in]prefetchLocsarray of target locations for prefetching
[in]prefetchLocIdxsindices mapping each range to a prefetch location
[in]numPrefetchLocsnumber of unique prefetch locations
[in]flagsflags for future use, must be zero now.
[in]streamstream to enqueue the operation
Returns
hipSuccess, hipErrorInvalidValue, hipErrorNotSupported
Note
This is the driver API variant that uses hipDeviceptr_t instead of void*.
See also
hipMemDiscardAndPrefetchBatchAsync, hipMemDiscardBatchAsync, hipMemPrefetchBatchAsync

Member Function/Subroutine Documentation

◆ hipdrvmemdiscardandprefetchbatchasync_()

integer(kind(hipsuccess)) function hipfort::hipdrvmemdiscardandprefetchbatchasync::hipdrvmemdiscardandprefetchbatchasync_ ( type(c_ptr)  dptrs,
type(c_ptr), value  sizes,
integer(c_size_t), value  count,
type(hipmemlocation prefetchlocs,
type(c_ptr), value  prefetchlocidxs,
integer(c_size_t), value  numprefetchlocs,
integer(c_int64_t), value  flags,
type(c_ptr), value  stream 
)

The documentation for this interface was generated from the following file: