Fork me on GitHub

src/arraymancer/tensor/backend/opencl_backend

  Source Edit

Procs

proc clMalloc[T](size: Natural): ptr UncheckedArray[T] {.inline.}
Internal proc. Wrap OpenCL createBuffer   Source Edit
proc deallocCl[T](p: ref [ptr UncheckedArray[T]]) {.noSideEffect.}
  Source Edit
proc layoutOnDevice[T: SomeFloat](t: ClTensor[T]): ClTensorLayout[T]
Store a ClTensor shape, strides, etc information on the GPU   Source Edit
proc newClStorage[T: SomeFloat](length: int): ClStorage[T]
  Source Edit
proc toClpointer[T](p: ClStorage[T]): Pmem {.noSideEffect, inline.}
  Source Edit
proc toClpointer[T](p: ClTensor[T]): Pmem {.noSideEffect, inline.}
  Source Edit
proc toClpointer[T](p: ptr T | ptr UncheckedArray[T]): Pmem {.noSideEffect,
    inline.}
  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood