Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- segThreadCapped :: MonadFreshNames m => MkSegLevel Kernels m
- streamRed :: (MonadFreshNames m, HasScope Kernels m) => MkSegLevel Kernels m -> Pattern Kernels -> SubExp -> Commutativity -> Lambda Kernels -> Lambda Kernels -> [SubExp] -> [VName] -> m (Stms Kernels)
- streamMap :: (MonadFreshNames m, HasScope Kernels m) => MkSegLevel Kernels m -> [String] -> [PatElem Kernels] -> SubExp -> Commutativity -> Lambda Kernels -> [SubExp] -> [VName] -> m ((SubExp, [VName]), Stms Kernels)
Documentation
segThreadCapped :: MonadFreshNames m => MkSegLevel Kernels m Source #
Like segThread
, but cap the thread count to the input size.
This is more efficient for small kernels, e.g. summing a small
array.