NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::CudaKernel Class Reference

#include <CudaKernel.hpp>

Classes

struct  Param
 

Public Types

typedef const ParamP
 

Public Member Functions

 CudaKernel (CudaModule *module=NULL, CUfunction function=NULL)
 
 CudaKernel (const CudaKernel &other)
 
 ~CudaKernel (void)
 
CudaModulegetModule (void) const
 
CUfunction getHandle (void) const
 
int getAttribute (CUfunction_attribute attrib) const
 
CudaKernelsetParams (const void *ptr, int size)
 
CudaKernelsetParams (const Param *const *params, int numParams)
 
CudaKernelsetParams (void)
 
CudaKernelsetParams (P p0)
 
CudaKernelsetParams (P p0, P p1)
 
CudaKernelsetParams (P p0, P p1, P p2)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9, P p10)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9, P p10, P p11)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9, P p10, P p11, P p12)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9, P p10, P p11, P p12, P p13)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9, P p10, P p11, P p12, P p13, P p14)
 
CudaKernelsetParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9, P p10, P p11, P p12, P p13, P p14, P p15)
 
CudaKernelpreferL1 (void)
 
CudaKernelpreferShared (void)
 
CudaKernelsetSharedBankSize (int bytes)
 
CudaKernelsetAsync (CUstream stream=NULL)
 
CudaKernelcancelAsync (void)
 
Vec2i getDefaultBlockSize (void) const
 
CudaKernelsetGrid (int numThreads, const Vec2i &blockSize=0)
 
CudaKernelsetGrid (const Vec2i &sizeThreads, const Vec2i &blockSize=0)
 
CudaKernelsetGridExact (const Vec2i &blockSize, const Vec2i &gridSize)
 
CudaKernellaunch (void)
 
CudaKernellaunch (int numThreads, const Vec2i &blockSize=0)
 
CudaKernellaunch (const Vec2i &sizeThreads, const Vec2i &blockSize=0)
 
F32 launchTimed (bool yield=true)
 
F32 launchTimed (int numThreads, const Vec2i &blockSize=0, bool yield=true)
 
F32 launchTimed (const Vec2i &sizeThreads, const Vec2i &blockSize=0, bool yield=true)
 
CudaKernelsync (bool yield=true)
 
CudaKerneloperator= (const CudaKernel &other)
 

Detailed Description

Definition at line 48 of file CudaKernel.hpp.

Member Typedef Documentation

typedef const Param& FW::CudaKernel::P

Definition at line 72 of file CudaKernel.hpp.

Constructor & Destructor Documentation

CudaKernel::CudaKernel ( CudaModule module = NULL,
CUfunction  function = NULL 
)

Definition at line 36 of file CudaKernel.cpp.

FW::CudaKernel::CudaKernel ( const CudaKernel other)
inline

Definition at line 76 of file CudaKernel.hpp.

CudaKernel::~CudaKernel ( void  )

Definition at line 50 of file CudaKernel.cpp.

Member Function Documentation

CudaKernel& FW::CudaKernel::cancelAsync ( void  )
inline

Definition at line 109 of file CudaKernel.hpp.

int CudaKernel::getAttribute ( CUfunction_attribute  attrib) const

Definition at line 56 of file CudaKernel.cpp.

Vec2i CudaKernel::getDefaultBlockSize ( void  ) const

Definition at line 95 of file CudaKernel.cpp.

CUfunction FW::CudaKernel::getHandle ( void  ) const
inline

Definition at line 80 of file CudaKernel.hpp.

CudaModule* FW::CudaKernel::getModule ( void  ) const
inline

Definition at line 79 of file CudaKernel.hpp.

CudaKernel & CudaKernel::launch ( void  )

Definition at line 179 of file CudaKernel.cpp.

CudaKernel& FW::CudaKernel::launch ( int  numThreads,
const Vec2i blockSize = 0 
)
inline

Definition at line 117 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::launch ( const Vec2i sizeThreads,
const Vec2i blockSize = 0 
)
inline

Definition at line 118 of file CudaKernel.hpp.

F32 CudaKernel::launchTimed ( bool  yield = true)

Definition at line 188 of file CudaKernel.cpp.

F32 FW::CudaKernel::launchTimed ( int  numThreads,
const Vec2i blockSize = 0,
bool  yield = true 
)
inline

Definition at line 120 of file CudaKernel.hpp.

F32 FW::CudaKernel::launchTimed ( const Vec2i sizeThreads,
const Vec2i blockSize = 0,
bool  yield = true 
)
inline

Definition at line 121 of file CudaKernel.hpp.

CudaKernel & CudaKernel::operator= ( const CudaKernel other)

Definition at line 283 of file CudaKernel.cpp.

CudaKernel& FW::CudaKernel::preferL1 ( void  )
inline

Definition at line 104 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::preferShared ( void  )
inline

Definition at line 105 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setAsync ( CUstream  stream = NULL)
inline

Definition at line 108 of file CudaKernel.hpp.

CudaKernel & CudaKernel::setGrid ( int  numThreads,
const Vec2i blockSize = 0 
)

Definition at line 144 of file CudaKernel.cpp.

CudaKernel & CudaKernel::setGrid ( const Vec2i sizeThreads,
const Vec2i blockSize = 0 
)

Definition at line 169 of file CudaKernel.cpp.

CudaKernel& FW::CudaKernel::setGridExact ( const Vec2i blockSize,
const Vec2i gridSize 
)
inline

Definition at line 114 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( const void ptr,
int  size 
)
inline

Definition at line 83 of file CudaKernel.hpp.

CudaKernel & CudaKernel::setParams ( const Param *const *  params,
int  numParams 
)

Definition at line 70 of file CudaKernel.cpp.

CudaKernel& FW::CudaKernel::setParams ( void  )
inline

Definition at line 86 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0)
inline

Definition at line 87 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1 
)
inline

Definition at line 88 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2 
)
inline

Definition at line 89 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3 
)
inline

Definition at line 90 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4 
)
inline

Definition at line 91 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5 
)
inline

Definition at line 92 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6 
)
inline

Definition at line 93 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7 
)
inline

Definition at line 94 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7,
P  p8 
)
inline

Definition at line 95 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7,
P  p8,
P  p9 
)
inline

Definition at line 96 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7,
P  p8,
P  p9,
P  p10 
)
inline

Definition at line 97 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7,
P  p8,
P  p9,
P  p10,
P  p11 
)
inline

Definition at line 98 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7,
P  p8,
P  p9,
P  p10,
P  p11,
P  p12 
)
inline

Definition at line 99 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7,
P  p8,
P  p9,
P  p10,
P  p11,
P  p12,
P  p13 
)
inline

Definition at line 100 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7,
P  p8,
P  p9,
P  p10,
P  p11,
P  p12,
P  p13,
P  p14 
)
inline

Definition at line 101 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setParams ( P  p0,
P  p1,
P  p2,
P  p3,
P  p4,
P  p5,
P  p6,
P  p7,
P  p8,
P  p9,
P  p10,
P  p11,
P  p12,
P  p13,
P  p14,
P  p15 
)
inline

Definition at line 102 of file CudaKernel.hpp.

CudaKernel& FW::CudaKernel::setSharedBankSize ( int  bytes)
inline

Definition at line 106 of file CudaKernel.hpp.

CudaKernel & CudaKernel::sync ( bool  yield = true)

Definition at line 225 of file CudaKernel.cpp.


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