Gpu

GPU computation primitives. This module is imported automatically by the ``@gpu`` decorator, or can be brought in explicitly with ``open Gpu``.
Table of Contents

Types

GpuConfig

(type)
type GpuConfig

Functions

gpu_map

def gpu_map (f: (x : a) → b) (t: Tensor) : Tensor

gpu_imap

def gpu_imap (f: (i : Int) → b) (t: Tensor) : Tensor

gpu_reduce

def gpu_reduce (f: (acc : a) → (x : a) → a) (initial: a) (t: Tensor) : a

gpu_filter

def gpu_filter (f: (x : a) → Bool) (t: Tensor) : Tensor

gpu_dot

def gpu_dot (a: Tensor) (b: Tensor) : Float

run_gpu

def run_gpu (kernel: (x : Tensor) → a) (config: GpuConfig) (input: Tensor) : a