Index
Modules:
hippo
.
API symbols
`$`:
hippo: proc `$`(self: ConstCString): string
`=destroy`:
hippo: proc `=destroy`(mem: var GpuMemory)
BlockDim:
hippo: object BlockDim
blockDim:
hippo: let blockDim
BlockIdx:
hippo: object BlockIdx
blockIdx:
hippo: let blockIdx
ConstCString:
hippo: object ConstCString
cos:
hippo: proc cos(x: cdouble): cdouble
cosf:
hippo: proc cosf(x: cfloat): cfloat
Dim3:
hippo: object Dim3
exp:
hippo: proc exp(x: cdouble): cdouble
expf:
hippo: proc expf(x: cfloat): cfloat
GridDim:
hippo: object GridDim
gridDim:
hippo: let gridDim
handleError:
hippo: proc handleError(err: hipError_t)
hipDeviceSynchronize:
hippo: proc hipDeviceSynchronize(): hipError_t
hipError_t:
hippo: type hipError_t
hipFree:
hippo: proc hipFree(ptr: pointer): hipError_t
hipGetErrorString:
hippo: proc hipGetErrorString(err: hipError_t): ConstCString
hipGetLastError:
hippo: proc hipGetLastError(): hipError_t
hipLaunchKernel:
hippo: proc hipLaunchKernel(function_address: pointer; numBlocks: Dim3; dimBlocks: Dim3; args: ptr pointer): hipError_t
hippo: proc hipLaunchKernel(function_address: pointer; numBlocks: Dim3; dimBlocks: Dim3; args: ptr pointer; sharedMemBytes: csize_t; stream: hipStream_t): cint
hipLaunchKernelGGL:
hippo: proc hipLaunchKernelGGL(function_address: proc; numBlocks: Dim3; dimBlocks: Dim3; sharedMemBytes: uint32_t; stream: hipStream_t)
hipMalloc:
hippo: proc hipMalloc(ptr: ptr pointer; size: cint): hipError_t
hipMemcpy:
hippo: proc hipMemcpy(dst: pointer; src: pointer; size: cint; kind: hipMemcpyKind): hipError_t
hipMemcpyKind:
hippo: enum hipMemcpyKind
hippoArgs:
hippo: macro hippoArgs(args: varargs[untyped]): untyped
hippoConstant:
hippo: macro hippoConstant(v: untyped): untyped
hippoCos:
hippo: template hippoCos(x: cfloat): cfloat
hippoDevice:
hippo: macro hippoDevice(fn: untyped): untyped
HippoError:
hippo: type HippoError
hippoExp:
hippo: template hippoExp(x: cdouble): cdouble
hippo: template hippoExp(x: cfloat): cfloat
hippoFree:
hippo: template hippoFree(p: pointer)
hippoGlobal:
hippo: macro hippoGlobal(fn: untyped): untyped
hippoHost:
hippo: macro hippoHost(fn: untyped): untyped
hippoHostDevice:
hippo: macro hippoHostDevice(fn: untyped): untyped
hippoLaunchKernel:
hippo: template hippoLaunchKernel(kernel: proc; ## The GPU kernel procedure to launch gridDim: Dim3 = newDim3(1, 1, 1); ## default to a grid of 1 block blockDim: Dim3 = newDim3(1, 1, 1); ## default to 1 thread per block sharedMemBytes: uint32 = 0; ## dynamic shared memory amount to allocate stream: HippoStream = nil; ## Which device stream to run under (defaults to null) args: untyped)
hippoLog:
hippo: template hippoLog(x: cdouble): cdouble
hippo: template hippoLog(x: cfloat): cfloat
hippoMalloc:
hippo: template hippoMalloc(size: int): GpuRef
hippoMemcpy:
hippo: template hippoMemcpy(dst: GpuRef; src: GpuRef; size: int; kind: HippoMemcpyKind)
hippo: template hippoMemcpy(dst: GpuRef; src: pointer; size: int; kind: HippoMemcpyKind)
hippo: template hippoMemcpy(dst: pointer; src: GpuRef; size: int; kind: HippoMemcpyKind)
hippo: template hippoMemcpy(dst: pointer; src: pointer; size: int; kind: HippoMemcpyKind)
HippoMemcpyDefault:
hippo: const HippoMemcpyDefault
HippoMemcpyDeviceToDevice:
hippo: const HippoMemcpyDeviceToDevice
HippoMemcpyDeviceToHost:
hippo: const HippoMemcpyDeviceToHost
HippoMemcpyHostToDevice:
hippo: const HippoMemcpyHostToDevice
HippoMemcpyHostToHost:
hippo: const HippoMemcpyHostToHost
HippoMemcpyKind:
hippo: type HippoMemcpyKind
hippoPow:
hippo: template hippoPow(base: cdouble; exp: cdouble): cdouble
hippo: template hippoPow(base: cfloat; exp: cfloat): cfloat
HippoRuntime:
hippo: const HippoRuntime
hippoShared:
hippo: macro hippoShared(v: untyped): untyped
hippoSin:
hippo: template hippoSin(x: cfloat): cfloat
hippoSqrt:
hippo: template hippoSqrt(x: cfloat): cfloat
HippoStream:
hippo: type HippoStream
hippoSynchronize:
hippo: template hippoSynchronize()
hippoSyncthreads:
hippo: proc hippoSyncthreads()
hipStream_t:
hippo: type hipStream_t
hipSyncthreads:
hippo: proc hipSyncthreads()
log:
hippo: proc log(x: cdouble): cdouble
logf:
hippo: proc logf(x: cfloat): cfloat
newDim3:
hippo: proc newDim3(x: uint32_t = 1; y: uint32_t = 1; z: uint32_t = 1): Dim3
pow:
hippo: proc pow(base: cdouble; exp: cdouble): cdouble
powf:
hippo: proc powf(base: cfloat; exp: cfloat): cfloat
sin:
hippo: proc sin(x: cdouble): cdouble
sinf:
hippo: proc sinf(x: cfloat): cfloat
size_t:
hippo: type size_t
sqrt:
hippo: proc sqrt(x: cdouble): cdouble
sqrtf:
hippo: proc sqrtf(x: cfloat): cfloat
ThreadIdx:
hippo: object ThreadIdx
threadIdx:
hippo: let threadIdx
toConstCString:
hippo: converter toConstCString(self: cstring): ConstCString
toCString:
hippo: converter toCString(self: ConstCString): cstring
uint16_t:
hippo: type uint16_t
uint32_t:
hippo: type uint32_t
uint64_t:
hippo: type uint64_t
uint8_t:
hippo: type uint8_t