RuntimeAPI

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
external fun chooseDevice(deviceProp: DeviceProp): Int
Link copied to clipboard
Link copied to clipboard
external fun destroyExternalMemory(extMem: Long): Int
Link copied to clipboard
external fun destroyExternalSemaphore(extSem: Long): Int
Link copied to clipboard
external fun deviceCanAccessPeer(device: Int, peerDevice: Int): Int
Link copied to clipboard
external fun deviceDisablePeerAccess(peerDevice: Int): Int
Link copied to clipboard
external fun deviceEnablePeerAccess(peerDevice: Int, flags: Int): Int
Link copied to clipboard
external fun deviceGetDefaultMemPool(device: Int): Long
Link copied to clipboard
fun deviceGetLimit(limit: Limit): Int
Link copied to clipboard
external fun deviceGetMemPool(device: Int): Long
Link copied to clipboard
fun deviceGetP2PAttribute(attr: DeviceP2PAttr, scrDevice: Int, dstDevice: Int): Int
Link copied to clipboard
external fun deviceGetPCIBusId(device: Int): String
Link copied to clipboard
Link copied to clipboard
external fun deviceGraphMemTrim(device: Int): Int

Free unused memory that was cached on the specified device for use with graphs back to the OS. (cudaDeviceGraphMemTrim)

Link copied to clipboard
external fun deviceReset(): Int
Link copied to clipboard
Link copied to clipboard
fun deviceSetLimit(limit: Limit, size: Int): Int
Link copied to clipboard
external fun deviceSynchronize(): Int
Link copied to clipboard
external fun driverGetVersion(): Int
Link copied to clipboard
external fun eventCreate(): Long
Link copied to clipboard
external fun eventCreateWithFlags(flags: Int): Long
Link copied to clipboard
external fun eventDestroy(event: Long): Int
Link copied to clipboard
external fun eventElapsedTime(start: Long, end: Long): Float
Link copied to clipboard
external fun eventQuery(event: Long): Int
Link copied to clipboard
external fun eventRecord(event: Long, stream: Long): Int
Link copied to clipboard
external fun eventRecordWithFlags(event: Long, stream: Long, flags: Int): Int
Link copied to clipboard
external fun eventSynchronize(event: Long): Int
Link copied to clipboard
external fun free(devPtr: Long): Int
Link copied to clipboard
external fun freeArray(array: Long): Int
Link copied to clipboard
external fun freeHost(ptr: Long): Int
Link copied to clipboard
external fun freeMipmappedArray(mipMappedArray: Long): Int
Link copied to clipboard
external fun getDevice(): Int
Link copied to clipboard
external fun getDeviceCount(): Int
Link copied to clipboard
external fun getDeviceProperties(device: Int): DeviceProp
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun getLastError(): Int
Link copied to clipboard
external fun hostRegister(size: Int, flags: Int): Long
Link copied to clipboard
external fun hostUnregister(ptr: Long): Int
Link copied to clipboard
external fun initDevice(device: Int, flags: Int): Int
Link copied to clipboard
external fun lpcCloseMemHandle(devicePtr: Long): Int
Link copied to clipboard
external fun malloc(size: Int): Long
Link copied to clipboard
external fun mallocHost(size: Int): Long
Link copied to clipboard
external fun peekAtLastError(): Int
Link copied to clipboard
external fun runtimeGetVersion(): Int
Link copied to clipboard
external fun setDevice(device: Int): Int
Link copied to clipboard
external fun setDeviceFlags(flags: Int): Int
Link copied to clipboard
external fun setValidDevices(deviceArr: IntArray, len: Int): Int
Link copied to clipboard
fun streamBeginCapture(stream: Long, streamCaptureStatus: StreamCaptureStatus): Int
Link copied to clipboard
external fun streamCopyAttributes(dst: Long, src: Long): Int
Link copied to clipboard
external fun streamCreate(): Long
Link copied to clipboard
external fun streamCreateWithFlags(flags: Int): Long
Link copied to clipboard
external fun streamCreateWithPriority(flags: Int, priority: Int): Long
Link copied to clipboard
external fun streamDestroy(stream: Long): Int
Link copied to clipboard
external fun streamQuery(stream: Long): Int
Link copied to clipboard
external fun streamSynchronize(stream: Long): Int
Link copied to clipboard
external fun streamWaitEvent(stream: Long, event: Long, flags: Int): Int