NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Methods | List of all members
nvbio::cuda::WorkQueue< OrderedQueueTag, WorkUnitT, BLOCKDIM > Struct Template Reference

Detailed description

template< typename WorkUnitT, uint32 BLOCKDIM>
struct nvbio::cuda::WorkQueue< OrderedQueueTag, WorkUnitT, BLOCKDIM >

Implements a self-compacting parallel WorkQueue, using a single-kernel launch that compacts continuations maintaining while input ordering in the thread assignment (see Work-Queues). Useful to maintain memory access coherence. Relatively high continuation overhead, but much lower than the MultiPass queue if the queue capacity is low.

see Work-Queues

Definition at line 56 of file work_queue_ordered.h.

#include <work_queue_ordered.h>

Classes

struct  Context
 

Public Types

typedef WorkUnitT WorkUnit
 

Public Methods

 WorkQueue ()
 
void set_capacity (const uint32 capacity)
 
template<typename WorkStream , typename WorkMover >
void consume (const WorkStream stream, const WorkMover mover)
 
template<typename WorkStream >
void consume (WorkStream stream)
 

Member Typedef Documentation

template<typename WorkUnitT , uint32 BLOCKDIM>
typedef WorkUnitT nvbio::cuda::WorkQueue< OrderedQueueTag, WorkUnitT, BLOCKDIM >::WorkUnit

Definition at line 61 of file work_queue_ordered.h.

Constructor & Destructor Documentation

template<typename WorkUnitT , uint32 BLOCKDIM>
nvbio::cuda::WorkQueue< OrderedQueueTag, WorkUnitT, BLOCKDIM >::WorkQueue ( )
inline

constructor

Definition at line 65 of file work_queue_ordered.h.

Member Function Documentation

template<typename WorkUnitT , uint32 BLOCKDIM>
template<typename WorkStream >
void nvbio::cuda::WorkQueue< OrderedQueueTag, WorkUnitT, BLOCKDIM >::consume ( WorkStream  stream)
inline

consume a stream of work units

Definition at line 79 of file work_queue_ordered.h.

template<typename WorkUnitT , uint32 BLOCKDIM>
void nvbio::cuda::WorkQueue< OrderedQueueTag, WorkUnitT, BLOCKDIM >::set_capacity ( const uint32  capacity)
inline

set queue capacity

Definition at line 69 of file work_queue_ordered.h.


The documentation for this struct was generated from the following files: