memAllocManaged

external fun memAllocManaged(byteSize: Int, flags: Int): Long

Allocates memory that will be automatically managed by the Unified Memory system. (cuMemAllocManaged)

Return

Returned device pointer

Parameters

byteSize

Requested allocation size in bytes

flags

Must be one of GLOBAL or HOST in MemAttachFlags enum class