hipdrvmemdiscardbatchasync Interface Reference#
hipfort::hipdrvmemdiscardbatchasync Interface Reference
Discards a batch of memory ranges asynchronously (driver API variant). More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hipdrvmemdiscardbatchasync_ (dptrs, sizes, count, flags, stream) |
Detailed Description
Discards a batch of memory ranges asynchronously (driver API variant).
- Parameters
-
[in] dptrs pointers to the memory ranges to discard [in] sizes sizes in bytes of the memory ranges to discard [in] count number of memory ranges to discard [in] flags flags for future use, must be zero now. [in] stream stream to enqueue the discard operation
- Returns
hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
- Warning
- Reading from a discarded range without first writing or prefetching to it will return an indeterminate value.
- Note
- This is the driver API variant that uses hipDeviceptr_t instead of void*. Both hipMemDiscardBatchAsync and hipDrvMemDiscardBatchAsync use the same internal implementation.
- See also
- hipMemDiscardBatchAsync, hipMemPrefetchBatchAsync, hipMallocManaged
Member Function/Subroutine Documentation
◆ hipdrvmemdiscardbatchasync_()
| integer(kind(hipsuccess)) function hipfort::hipdrvmemdiscardbatchasync::hipdrvmemdiscardbatchasync_ | ( | type(c_ptr) | dptrs, |
| type(c_ptr), value | sizes, | ||
| integer(c_size_t), value | count, | ||
| integer(c_int64_t), value | flags, | ||
| type(c_ptr), value | stream | ||
| ) |
The documentation for this interface was generated from the following file: