hipmemsetasync Interface Reference

hipmemsetasync Interface Reference#

HIPFORT API Reference: hipfort::hipmemsetasync Interface Reference
hipfort::hipmemsetasync Interface Reference

Fills the first sizeBytes bytes of the memory area pointed to by dev with the ant byte value value. More...

Public Member Functions

integer(kind(hipsuccess)) function hipmemsetasync_ (dst, myValue, sizeBytes, stream)
 

Detailed Description

Fills the first sizeBytes bytes of the memory area pointed to by dev with the ant byte value value.

hipMemsetAsync() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.

Parameters
[out]dstPointer to device memory
[in]value- Value to set for each byte of specified memory
[in]sizeBytes- Size in bytes to set
[in]stream- Stream identifier
Returns
hipSuccess, hipErrorInvalidValue, hipErrorMemoryFree

Member Function/Subroutine Documentation

◆ hipmemsetasync_()

integer(kind(hipsuccess)) function hipfort::hipmemsetasync::hipmemsetasync_ ( type(c_ptr), value  dst,
integer(c_int), value  myValue,
integer(c_size_t), value  sizeBytes,
type(c_ptr), value  stream 
)

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