NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Typedefs | Functions
mgpucontext.h File Reference
#include "util/util.h"
#include "util/format.h"
#include "mgpualloc.h"
#include <cuda.h>

Go to the source code of this file.

Classes

class  mgpu::CudaException
 
class  mgpu::CudaEvent
 
class  mgpu::CudaTimer
 
class  mgpu::CudaDevice
 
class  mgpu::CudaDeviceMem< T >
 
class  mgpu::CudaMemSupport
 
class  mgpu::CudaContext
 

Namespaces

 mgpu
 

Macros

#define MGPU_SYNC_CHECK(s)
 
#define MGPU_MEM(type)   mgpu::intrusive_ptr< mgpu::CudaDeviceMem< type > >
 

Typedefs

typedef intrusive_ptr< CudaAlloc > mgpu::AllocPtr
 

Functions

template<typename T >
void mgpu::copyDtoH (T *dest, const T *source, int count)
 
template<typename T >
void mgpu::copyDtoD (T *dest, const T *source, int count, cudaStream_t stream=0)
 
template<typename T >
void mgpu::copyDtoH (std::vector< T > &dest, const T *source, int count)
 
template<typename T >
void mgpu::copyHtoD (T *dest, const T *source, int count)
 
template<typename T >
void mgpu::copyHtoD (T *dest, const std::vector< T > &source)
 
ContextPtr mgpu::CreateCudaDevice (int ordinal)
 
ContextPtr mgpu::CreateCudaDevice (int argc, char **argv, bool printInfo=false)
 
ContextPtr mgpu::CreateCudaDeviceStream (int ordinal)
 
ContextPtr mgpu::CreateCudaDeviceStream (int argc, char **argv, bool printInfo=false)
 
ContextPtr mgpu::CreateCudaDeviceAttachStream (cudaStream_t stream)
 
ContextPtr mgpu::CreateCudaDeviceAttachStream (int ordinal, cudaStream_t stream)
 
template<typename T >
 mgpu::MGPU_MEM (T) CudaMemSupport
 
template<typename T , typename Func >
 mgpu::MGPU_MEM (T) CudaMemSupport
 
template<typename T , typename Op >
std::string mgpu::FormatArrayOp (const CudaDeviceMem< T > &mem, int count, Op op, int numCols)
 
template<typename T , typename Op >
std::string mgpu::FormatArrayOp (const CudaDeviceMem< T > &mem, Op op, int numCols)
 
template<typename T >
void mgpu::PrintArray (const CudaDeviceMem< T > &mem, int count, const char *format, int numCols)
 
template<typename T >
void mgpu::PrintArray (const CudaDeviceMem< T > &mem, const char *format, int numCols)
 
template<typename T , typename Op >
void mgpu::PrintArrayOp (const CudaDeviceMem< T > &mem, Op op, int numCols)
 

Macro Definition Documentation

#define MGPU_MEM (   type)    mgpu::intrusive_ptr< mgpu::CudaDeviceMem< type > >

Definition at line 183 of file mgpucontext.h.

#define MGPU_SYNC_CHECK (   s)

Definition at line 21 of file mgpucontext.h.