NVBIO
|
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< uint32 > | out_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) |
typedef PingPongQueuesView<T> nvbio::cuda::PingPongQueues< T >::device_view_type |
Definition at line 138 of file pingpong_queues.h.
typedef PingPongQueuesView<T> nvbio::cuda::PingPongQueues< T >::plain_view_type |
Definition at line 139 of file pingpong_queues.h.
|
inline |
clear the output queue
Definition at line 166 of file pingpong_queues.h.
|
inline |
return a view of the queues
Definition at line 194 of file pingpong_queues.h.
|
inline |
return the output size
Definition at line 190 of file pingpong_queues.h.
|
inline |
raw input queue
Definition at line 178 of file pingpong_queues.h.
|
inline |
raw output queue
Definition at line 182 of file pingpong_queues.h.
|
inline |
raw output queue
Definition at line 186 of file pingpong_queues.h.
|
inline |
resize input queue
Definition at line 162 of file pingpong_queues.h.
|
inline |
resize the arena
Definition at line 148 of file pingpong_queues.h.
|
inline |
swap the input and output queues
Definition at line 170 of file pingpong_queues.h.
|
related |
return a view of the queues
Definition at line 214 of file pingpong_queues.h.
|
related |
return a view of the queues
Definition at line 220 of file pingpong_queues.h.
thrust::device_vector<T> nvbio::cuda::PingPongQueues< T >::in_queue |
Definition at line 142 of file pingpong_queues.h.
uint32 nvbio::cuda::PingPongQueues< T >::in_size |
Definition at line 141 of file pingpong_queues.h.
thrust::device_vector<T> nvbio::cuda::PingPongQueues< T >::out_queue |
Definition at line 144 of file pingpong_queues.h.
thrust::device_vector<uint32> nvbio::cuda::PingPongQueues< T >::out_size |
Definition at line 143 of file pingpong_queues.h.