Singleton class to retrieve a CUDA stream for device-host copying. More...
#include <posix_io.hpp>
Public Member Functions | |
StreamsByThread (StreamsByThread const &)=delete | |
StreamsByThread & | operator= (StreamsByThread const &)=delete |
StreamsByThread (StreamsByThread &&o)=delete | |
StreamsByThread & | operator= (StreamsByThread &&o)=delete |
Static Public Member Functions | |
static KVIKIO_EXPORT CUstream | get (CUcontext ctx, std::thread::id thd_id) |
static CUstream | get () |
Singleton class to retrieve a CUDA stream for device-host copying.
Call StreamsByThread::get
to get the CUDA stream assigned to the current CUDA context and thread.
Definition at line 54 of file posix_io.hpp.