cuda-0.6.6.0: FFI binding to the CUDA interface for programming NVIDIA GPUs

Copyright[2009..2014] Trevor L. McDonell
LicenseBSD
Safe HaskellNone
LanguageHaskell98

Foreign.CUDA.Driver.Stream

Contents

Description

Stream management for low-level driver interface

Synopsis

Stream Management

newtype Stream Source

A processing stream. All operations in a stream are synchronous and executed in sequence, but operations in different non-default streams may happen out-of-order or concurrently with one another.

Use Events to synchronise operations between streams.

Constructors

Stream 

Fields

useStream :: Ptr ()
 

Instances

data StreamFlag Source

Possible option flags for stream initialisation. Dummy instance until the API exports actual option values.

Instances

create :: [StreamFlag] -> IO Stream Source

Create a new stream

destroy :: Stream -> IO () Source

Destroy a stream

finished :: Stream -> IO Bool Source

Check if all operations in the stream have completed

block :: Stream -> IO () Source

Wait until the device has completed all operations in the Stream

defaultStream :: Stream Source

The main execution stream. No operations overlap with operations in the default stream.