NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Methods | Static Public Methods | Friends | List of all members
mgpu::CudaContext Class Reference

Detailed description

Definition at line 256 of file mgpucontext.h.

#include <mgpucontext.h>

Inheritance diagram for mgpu::CudaContext:
mgpu::CudaMemSupport mgpu::CudaBase mgpu::noncopyable

Public Methods

int * PageLocked ()
 
cudaStream_t AuxStream () const
 
int NumSMs ()
 
int ArchVersion ()
 
int PTXVersion ()
 
std::string DeviceString ()
 
cudaStream_t Stream () const
 
void SetActive ()
 
CudaEventEvent ()
 
CudaTimerTimer ()
 
void Start ()
 
double Split ()
 
double Throughput (int count, int numIterations)
 
virtual long AddRef ()
 
virtual void Release ()
 
- Public Methods inherited from mgpu::CudaMemSupport
CudaDeviceDevice ()
 
void SetAllocator (CudaAlloc *alloc)
 
CudaAllocGetAllocator ()
 
template<typename T >
 MGPU_MEM (T) Malloc(size_t count)
 
template<typename T >
 MGPU_MEM (T) Malloc(const T *data
 
template<typename T >
 MGPU_MEM (T) FillAscending(size_t count
 
template<typename T >
 MGPU_MEM (T) GenRandom(size_t count
 
template<typename T >
 MGPU_MEM (T) SortRandom(size_t count
 
template<typename T , typename Func >
 MGPU_MEM (T) GenFunc(size_t count
 
- Public Methods inherited from mgpu::CudaBase
 CudaBase ()
 
virtual ~CudaBase ()
 

Static Public Methods

static CudaContextStandardContext (int ordinal=-1)
 

Friends

struct ContextGroup
 
ContextPtr CreateCudaDevice (int ordinal)
 
ContextPtr CreateCudaDeviceStream (int ordinal)
 
ContextPtr CreateCudaDeviceAttachStream (int ordinal, cudaStream_t stream)
 

Additional Inherited Members

- Public Members inherited from mgpu::CudaMemSupport
size_t count
 
MGPU_MEM(T) Malloc(const std T fill
 
first
 
T T step
 
min
 
T T max
 
Func f
 
- Proteced Methods inherited from mgpu::CudaMemSupport
 CudaMemSupport ()
 
- Protected Members inherited from mgpu::CudaMemSupport
AllocPtr _alloc
 

Member Function Documentation

virtual long mgpu::CudaContext::AddRef ( )
inlinevirtual

Reimplemented from mgpu::CudaBase.

Definition at line 291 of file mgpucontext.h.

int mgpu::CudaContext::ArchVersion ( )
inline

Definition at line 271 of file mgpucontext.h.

cudaStream_t mgpu::CudaContext::AuxStream ( ) const
inline

Definition at line 268 of file mgpucontext.h.

std::string mgpu::CudaContext::DeviceString ( )
inline

Definition at line 273 of file mgpucontext.h.

CudaEvent& mgpu::CudaContext::Event ( )
inline

Definition at line 281 of file mgpucontext.h.

int mgpu::CudaContext::NumSMs ( )
inline

Definition at line 270 of file mgpucontext.h.

int* mgpu::CudaContext::PageLocked ( )
inline

Definition at line 267 of file mgpucontext.h.

int mgpu::CudaContext::PTXVersion ( )
inline

Definition at line 272 of file mgpucontext.h.

virtual void mgpu::CudaContext::Release ( )
inlinevirtual

Reimplemented from mgpu::CudaBase.

Definition at line 294 of file mgpucontext.h.

void mgpu::CudaContext::SetActive ( )
inline

Definition at line 278 of file mgpucontext.h.

double mgpu::CudaContext::Split ( )
inline

Definition at line 286 of file mgpucontext.h.

static CudaContext& mgpu::CudaContext::StandardContext ( int  ordinal = -1)
static
void mgpu::CudaContext::Start ( )
inline

Definition at line 285 of file mgpucontext.h.

cudaStream_t mgpu::CudaContext::Stream ( ) const
inline

Definition at line 275 of file mgpucontext.h.

double mgpu::CudaContext::Throughput ( int  count,
int  numIterations 
)
inline

Definition at line 287 of file mgpucontext.h.

CudaTimer& mgpu::CudaContext::Timer ( )
inline

Definition at line 284 of file mgpucontext.h.

Friends And Related Function Documentation

friend struct ContextGroup
friend

Definition at line 257 of file mgpucontext.h.

ContextPtr CreateCudaDevice ( int  ordinal)
friend
ContextPtr CreateCudaDeviceAttachStream ( int  ordinal,
cudaStream_t  stream 
)
friend
ContextPtr CreateCudaDeviceStream ( int  ordinal)
friend

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