Procs
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