meta-par-accelerate-0.3: Support for integrated Accelerate computations within Meta-par.

Safe HaskellSafe-Infered

Control.Monad.Par.Meta.Resources.Accelerate

Contents

Description

Do not use his module directly. Use a SCHEDULER module (such as AccSMP).

This provides a component (Resource) for assembling schedulers, as well as exporting a ParAccelerate instance.

Synopsis

The Resource itself:

mkResource :: Resource

A mix-in component for assembling schedulers with an Accelerate capability.

Internal Definitions

spawnAcc :: Arrays a => (Acc a -> a) -> Acc a -> Par (IVar a)

See documentation for spawnAcc

unsafeHybrid :: Arrays b => (Acc b -> b) -> (b -> a) -> (Par a, Acc b) -> Par (IVar a)

See documentation for unsafeHybrid