module Kernel: sig
.. end
Manages Kernels
type
kernel
val relax_vector : ('a, 'b) Vector.vector -> ('c, 'd) Vector.vector
type ('a, 'b)
kernelArgs =
type of parameters usable with kernels
type
block = {
|
mutable blockX : int ; |
|
mutable blockY : int ; |
|
mutable blockZ : int ; |
}
A block is a 3 dimension group of threads
type
grid = {
|
mutable gridX : int ; |
|
mutable gridY : int ; |
|
mutable gridZ : int ; |
}
A grid is a 3 dimension group of blocks
exception ERROR_BLOCK_SIZE
exception ERROR_GRID_SIZE
exception No_source_for_device of Devices.device
exception Not_compiled_for_device of Devices.device
class virtual [['a, 'b]]
spoc_kernel : string -> string ->
object
.. end
a Kernel is represented within Spoc a an OCaml object inheriting the spoc_kernel class
val run : Devices.device ->
block * grid -> ('a, 'b) spoc_kernel -> 'a -> unit
Deprecated.you should use kernel#run
val compile : Devices.device -> ('a, 'b) spoc_kernel -> unit
Deprecated.you should use kernel#compile