hipmemcpywithstream Interface Reference

hipmemcpywithstream Interface Reference#

HIPFORT API Reference: hipfort::hipmemcpywithstream Interface Reference
hipfort::hipmemcpywithstream Interface Reference

Memory copy on the stream. More...

Public Member Functions

integer(kind(hipsuccess)) function hipmemcpywithstream_ (dst, src, sizebytes, mykind, stream)
 

Detailed Description

Memory copy on the stream.

It allows single or multiple devices to do memory copy on single or multiple streams. The operation is akin to hipMemcpyAsync + hipStreamSynchronize. Since it is a sync API, it is not allowed during graph capture.

Parameters
[out]dst- Data being copy to
[in]src- Data being copy from
[in]sizeBytes- Data size in bytes
[in]myKind- Kind of transfer
[in]stream- Valid stream
Returns
hipSuccess, hipErrorInvalidValue, hipErrorUnknown, hipErrorContextIsDestroyed
See also
hipMemcpy, hipStreamCreate, hipStreamSynchronize, hipStreamDestroy, hipSetDevice, hipLaunchKernelGGL

Member Function/Subroutine Documentation

◆ hipmemcpywithstream_()

integer(kind(hipsuccess)) function hipfort::hipmemcpywithstream::hipmemcpywithstream_ ( type(c_ptr), value  dst,
type(c_ptr), value  src,
integer(c_size_t), value  sizebytes,
integer(kind(hipmemcpyhosttohost)), value  mykind,
type(c_ptr), value  stream 
)

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