NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | Public Members | Related Functions | List of all members
nvbio::cuda::PingPongQueues< T > Struct Template Reference

Detailed description

template< typename T = uint32>
struct nvbio::cuda::PingPongQueues< T >

This data structure represents a pair of input and output queues built on top of some ping-pong device storage that can be iteratively swapped.

See Example.

Definition at line 136 of file pingpong_queues.h.

#include <pingpong_queues.h>

Public Types

typedef PingPongQueuesView< T > device_view_type
 
typedef PingPongQueuesView< T > plain_view_type
 

Public Methods

uint64 resize_arena (const uint32 size, const bool do_alloc=true)
 
void resize (const uint32 size)
 
void clear_output ()
 
void swap ()
 
const T * raw_input_queue () const
 
const T * raw_output_queue () const
 
T * raw_output_queue ()
 
uint32 output_size () const
 
device_view_type device_view ()
 

Public Members

uint32 in_size
 
thrust::device_vector< T > in_queue
 
thrust::device_vector< uint32out_size
 
thrust::device_vector< T > out_queue
 

Related Functions

(Note that these are not member functions.)

template<typename T >
cuda::PingPongQueuesView< T > device_view (cuda::PingPongQueues< T > &queues)
 
template<typename T >
cuda::PingPongQueuesView< T > plain_view (cuda::PingPongQueues< T > &queues)
 

Member Typedef Documentation

template<typename T = uint32>
typedef PingPongQueuesView<T> nvbio::cuda::PingPongQueues< T >::device_view_type

Definition at line 138 of file pingpong_queues.h.

template<typename T = uint32>
typedef PingPongQueuesView<T> nvbio::cuda::PingPongQueues< T >::plain_view_type

Definition at line 139 of file pingpong_queues.h.

Member Function Documentation

template<typename T = uint32>
void nvbio::cuda::PingPongQueues< T >::clear_output ( )
inline

clear the output queue

Definition at line 166 of file pingpong_queues.h.

template<typename T = uint32>
device_view_type nvbio::cuda::PingPongQueues< T >::device_view ( )
inline

return a view of the queues

Definition at line 194 of file pingpong_queues.h.

template<typename T = uint32>
uint32 nvbio::cuda::PingPongQueues< T >::output_size ( ) const
inline

return the output size

Definition at line 190 of file pingpong_queues.h.

template<typename T = uint32>
const T* nvbio::cuda::PingPongQueues< T >::raw_input_queue ( ) const
inline

raw input queue

Definition at line 178 of file pingpong_queues.h.

template<typename T = uint32>
const T* nvbio::cuda::PingPongQueues< T >::raw_output_queue ( ) const
inline

raw output queue

Definition at line 182 of file pingpong_queues.h.

template<typename T = uint32>
T* nvbio::cuda::PingPongQueues< T >::raw_output_queue ( )
inline

raw output queue

Definition at line 186 of file pingpong_queues.h.

template<typename T = uint32>
void nvbio::cuda::PingPongQueues< T >::resize ( const uint32  size)
inline

resize input queue

Definition at line 162 of file pingpong_queues.h.

template<typename T = uint32>
uint64 nvbio::cuda::PingPongQueues< T >::resize_arena ( const uint32  size,
const bool  do_alloc = true 
)
inline

resize the arena

Definition at line 148 of file pingpong_queues.h.

template<typename T = uint32>
void nvbio::cuda::PingPongQueues< T >::swap ( )
inline

swap the input and output queues

Definition at line 170 of file pingpong_queues.h.

Friends And Related Function Documentation

template<typename T >
cuda::PingPongQueuesView< T > device_view ( cuda::PingPongQueues< T > &  queues)
related

return a view of the queues

Definition at line 214 of file pingpong_queues.h.

template<typename T >
cuda::PingPongQueuesView< T > plain_view ( cuda::PingPongQueues< T > &  queues)
related

return a view of the queues

Definition at line 220 of file pingpong_queues.h.

Member Data Documentation

template<typename T = uint32>
thrust::device_vector<T> nvbio::cuda::PingPongQueues< T >::in_queue

Definition at line 142 of file pingpong_queues.h.

template<typename T = uint32>
uint32 nvbio::cuda::PingPongQueues< T >::in_size

Definition at line 141 of file pingpong_queues.h.

template<typename T = uint32>
thrust::device_vector<T> nvbio::cuda::PingPongQueues< T >::out_queue

Definition at line 144 of file pingpong_queues.h.

template<typename T = uint32>
thrust::device_vector<uint32> nvbio::cuda::PingPongQueues< T >::out_size

Definition at line 143 of file pingpong_queues.h.


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