|
TECA
The Toolkit for Extreme Climate Analysis
|
A collection of CUDA streams. More...
#include <teca_cuda_util.h>
Public Member Functions | |
| cuda_stream_vector (const cuda_stream_vector &)=delete | |
| prevent copies, OK to enable these if needed More... | |
| void | operator= (const cuda_stream_vector &)=delete |
| int | resize (size_t n) |
| resize the collection. creates and destroys streams as needed More... | |
| size_t | size () const |
| get the number of available cuda streams More... | |
| cudaStream_t & | operator[] (size_t i) |
| get the ith cuda stream More... | |
| const cudaStream_t & | operator[] (size_t i) const |
| get the ith cuda stream More... | |
A collection of CUDA streams.
This container always has as its first element the cudaStreamPerThread stream. If more than one stream is desired one can call ::resize to add new streams to the collection. For simplicity copying the container is disabled, but this feature could be added if needed.
|
delete |
prevent copies, OK to enable these if needed
|
inline |
get the ith cuda stream
|
inline |
get the ith cuda stream
| int teca_cuda_util::cuda_stream_vector::resize | ( | size_t | n | ) |
resize the collection. creates and destroys streams as needed
|
inline |
get the number of available cuda streams