All Classes Namespaces Functions Enumerations Enumerator Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
kvikio::detail::StreamsByThread Class Reference

Singleton class to retrieve a CUDA stream for device-host copying. More...

#include <posix_io.hpp>

Public Member Functions

 StreamsByThread (StreamsByThread const &)=delete
 
StreamsByThreadoperator= (StreamsByThread const &)=delete
 
 StreamsByThread (StreamsByThread &&o)=delete
 
StreamsByThreadoperator= (StreamsByThread &&o)=delete
 

Static Public Member Functions

static KVIKIO_EXPORT CUstream get (CUcontext ctx, std::thread::id thd_id)
 
static CUstream get ()
 

Detailed Description

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.


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