streamAttachMemAsync

external fun streamAttachMemAsync(hStream: Long, dptr: Long, length: Int, flags: Int): Int

Attach memory to a stream asynchronously. (cuStreamAttachMemAsync)

Parameters

hStream

Stream in which to enqueue the attach operation

dptr

Pointer to memory (must be a pointer to managed memory or to a valid host-accessible region of system-allocated pageable memory)

length

Length of memory

flags

Must be one of MemAttachFlags