Versions in this module Expand all Collapse all v0 v0.2.0 Dec 17, 2021 v0.1.0 Nov 26, 2021 Changes in this version + const CTX_BLOCKING_SYNC + const CTX_LMEM_RESIZE_TO_MAX + const CTX_MAP_HOST + const CTX_SCHED_AUTO + const CTX_SCHED_SPIN + const CTX_SCHED_YIELD + const CUDA_VERSION + const SIZEOF_COMPLEX128 + const SIZEOF_COMPLEX64 + const SIZEOF_FLOAT32 + const SIZEOF_FLOAT64 + func CtxDestroy(ctx *Context) + func CtxDisablePeerAccess(peer Context) + func CtxEnablePeerAccess(peer Context) + func CtxGetApiVersion(ctx Context) (version int) + func CtxSetCurrent(ctx Context) + func CtxSynchronize() + func DeviceCanAccessPeer(dev, peer Device) bool + func DeviceComputeCapability(device Device) (major, minor int) + func DeviceGetAttribute(attrib DeviceAttribute, dev Device) int + func DeviceGetCount() int + func DeviceGetName(dev Device) string + func DeviceTotalMem(device Device) int64 + func FuncGetAttribute(attrib FunctionAttribute, function Function) int + func Init(flags int) + func LaunchKernel(f Function, gridDimX, gridDimY, gridDimZ int, ...) + func MemAllocHost(bytes int64) unsafe.Pointer + func MemFree(p DevicePtr) + func MemFreeHost(ptr unsafe.Pointer) + func MemGetInfo() (free, total int64) + func Memcpy(dst, src DevicePtr, bytes int64) + func MemcpyAsync(dst, src DevicePtr, bytes int64, stream Stream) + func MemcpyDtoD(dst, src DevicePtr, bytes int64) + func MemcpyDtoDAsync(dst, src DevicePtr, bytes int64, stream Stream) + func MemcpyDtoH(dst unsafe.Pointer, src DevicePtr, bytes int64) + func MemcpyDtoHAsync(dst unsafe.Pointer, src DevicePtr, bytes int64, stream Stream) + func MemcpyHtoD(dst DevicePtr, src unsafe.Pointer, bytes int64) + func MemcpyHtoDAsync(dst DevicePtr, src unsafe.Pointer, bytes int64, stream Stream) + func MemcpyPeer(dst DevicePtr, dstCtx Context, src DevicePtr, srcCtx Context, bytes int64) + func MemcpyPeerAsync(dst DevicePtr, dstCtx Context, src DevicePtr, srcCtx Context, bytes int64, ...) + func MemsetD32(deviceptr DevicePtr, value uint32, N int64) + func MemsetD32Async(deviceptr DevicePtr, value uint32, N int64, stream Stream) + func MemsetD8(deviceptr DevicePtr, value uint8, N int64) + func MemsetD8Async(deviceptr DevicePtr, value uint8, N int64, stream Stream) + func PointerGetAttributeMemoryType(ptr DevicePtr) (t MemoryType, err Result) + func StreamDestroy(stream *Stream) + func StreamSynchronize(stream Stream) + func Version() int + type Context uintptr + func CtxCreate(flags uint, dev Device) Context + func CtxGetCurrent() Context + func (ctx *Context) Destroy() + func (ctx Context) ApiVersion() (version int) + func (ctx Context) SetCurrent() + func (peer Context) DisablePeerAccess() + func (peer Context) EnablePeerAccess() + type DevProp struct + ClockRate int + MaxGridSize [3]int + MaxThreadsDim [3]int + MaxThreadsPerBlock int + MemPitch int + RegsPerBlock int + SIMDWidth int + SharedMemPerBlock int + TextureAlign int + TotalConstantMemory int + func DeviceGetProperties(dev Device) (prop DevProp) + type Device int + func CtxGetDevice() Device + func DeviceGet(ordinal int) Device + func (dev Device) Attribute(attrib DeviceAttribute) int + func (dev Device) CanAccessPeer(peer Device) bool + func (dev Device) Name() string + func (dev Device) Properties() DevProp + func (device Device) ComputeCapability() (major, minor int) + func (device Device) TotalMem() int64 + type DeviceAttribute int + const ASYNC_ENGINE_COUNT + const CAN_MAP_HOST_MEMORY + const CLOCK_RATE + const COMPUTE_CAPABILITY_MAJOR + const COMPUTE_CAPABILITY_MINOR + const COMPUTE_MODE + const CONCURRENT_KERNELS + const ECC_ENABLED + const GLOBAL_MEMORY_BUS_WIDTH + const INTEGRATED + const KERNEL_EXEC_TIMEOUT + const L2_CACHE_SIZE + const MAXIMUM_TEXTURE1D_LAYERED_LAYERS + const MAXIMUM_TEXTURE1D_LAYERED_WIDTH + const MAXIMUM_TEXTURE1D_WIDTH + const MAXIMUM_TEXTURE2D_HEIGHT + const MAXIMUM_TEXTURE2D_LAYERED_HEIGHT + const MAXIMUM_TEXTURE2D_LAYERED_LAYERS + const MAXIMUM_TEXTURE2D_LAYERED_WIDTH + const MAXIMUM_TEXTURE2D_WIDTH + const MAXIMUM_TEXTURE3D_DEPTH + const MAXIMUM_TEXTURE3D_HEIGHT + const MAXIMUM_TEXTURE3D_WIDTH + const MAX_BLOCK_DIM_X + const MAX_BLOCK_DIM_Y + const MAX_BLOCK_DIM_Z + const MAX_GRID_DIM_X + const MAX_GRID_DIM_Y + const MAX_GRID_DIM_Z + const MAX_PITCH + const MAX_REGISTERS_PER_BLOCK + const MAX_SHARED_MEMORY_PER_BLOCK + const MAX_THREADS_PER_BLOCK + const MAX_THREADS_PER_MULTIPROCESSOR + const MEMORY_CLOCK_RATE + const MULTIPROCESSOR_COUNT + const PCI_BUS_ID + const PCI_DEVICE_ID + const SURFACE_ALIGNMENT + const TCC_DRIVER + const TEXTURE_ALIGNMENT + const TOTAL_CONSTANT_MEMORY + const UNIFIED_ADDRESSING + const WARP_SIZE + type DevicePtr uintptr + func MemAlloc(bytes int64) DevicePtr + func MemGetAddressRange(ptr DevicePtr) (bytes int64, base DevicePtr) + func (p DevicePtr) String() string + func (ptr DevicePtr) Bytes() (bytes int64) + func (ptr DevicePtr) Free() + func (ptr DevicePtr) GetAddressRange() (bytes int64, base DevicePtr) + func (ptr DevicePtr) MemoryType() MemoryType + type Dim3 struct + X int + Y int + Z int + type Function uintptr + func ModuleGetFunction(module Module, name string) Function + func (f Function) GetAttribute(attrib FunctionAttribute) int + type FunctionAttribute int + const FUNC_A_BINARY_VERSION + const FUNC_A_CONST_SIZE_BYTES + const FUNC_A_LOCAL_SIZE_BYTES + const FUNC_A_MAX_THREADS_PER_BLOCK + const FUNC_A_NUM_REGS + const FUNC_A_PTX_VERSION + const FUNC_A_SHARED_SIZE_BYTES + type MemHostRegisterFlag int + const MEMHOSTREGISTER_DEVICEMAP + const MEMHOSTREGISTER_PORTABLE + type MemoryType uint + const MemoryTypeArray + const MemoryTypeDevice + const MemoryTypeHost + const MemoryTypeUnified + func (t MemoryType) String() string + type Module uintptr + func ModuleLoad(fname string) Module + func ModuleLoadData(image string) Module + func (m Module) GetFunction(name string) Function + type Result int + const ERROR_ALREADY_ACQUIRED + const ERROR_ALREADY_MAPPED + const ERROR_ARRAY_IS_MAPPED + const ERROR_ASSERT + const ERROR_CONTEXT_ALREADY_CURRENT + const ERROR_CONTEXT_ALREADY_IN_USE + const ERROR_CONTEXT_IS_DESTROYED + const ERROR_DEINITIALIZED + const ERROR_ECC_UNCORRECTABLE + const ERROR_FILE_NOT_FOUND + const ERROR_HARDWARE_STACK_ERROR + const ERROR_HOST_MEMORY_ALREADY_REGISTERED + const ERROR_HOST_MEMORY_NOT_REGISTERED + const ERROR_ILLEGAL_INSTRUCTION + const ERROR_INVALID_ADDRESS_SPACE + const ERROR_INVALID_CONTEXT + const ERROR_INVALID_DEVICE + const ERROR_INVALID_HANDLE + const ERROR_INVALID_IMAGE + const ERROR_INVALID_PC + const ERROR_INVALID_SOURCE + const ERROR_INVALID_VALUE + const ERROR_LAUNCH_FAILED + const ERROR_LAUNCH_INCOMPATIBLE_TEXTURING + const ERROR_LAUNCH_OUT_OF_RESOURCES + const ERROR_LAUNCH_TIMEOUT + const ERROR_MAP_FAILED + const ERROR_MISALIGNED_ADDRESS + const ERROR_NOT_FOUND + const ERROR_NOT_INITIALIZED + const ERROR_NOT_MAPPED + const ERROR_NOT_MAPPED_AS_ARRAY + const ERROR_NOT_MAPPED_AS_POINTER + const ERROR_NOT_PERMITTED + const ERROR_NOT_READY + const ERROR_NOT_SUPPORTED + const ERROR_NO_BINARY_FOR_GPU + const ERROR_NO_DEVICE + const ERROR_OPERATING_SYSTEM + const ERROR_OUT_OF_MEMORY + const ERROR_PEER_ACCESS_ALREADY_ENABLED + const ERROR_PEER_ACCESS_NOT_ENABLED + const ERROR_PRIMARY_CONTEXT_ACTIVE + const ERROR_PROFILER_ALREADY_STARTED + const ERROR_PROFILER_ALREADY_STOPPED + const ERROR_PROFILER_DISABLED + const ERROR_PROFILER_NOT_INITIALIZED + const ERROR_SHARED_OBJECT_INIT_FAILED + const ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND + const ERROR_TOO_MANY_PEERS + const ERROR_UNKNOWN + const ERROR_UNMAP_FAILED + const ERROR_UNSUPPORTED_LIMIT + const SUCCESS + func StreamQuery(stream Stream) Result + func (err Result) String() string + type Stream uintptr + func StreamCreate() Stream + func (stream *Stream) Destroy() + func (stream Stream) Query() Result + func (stream Stream) Synchronize()