NTrace
GPU ray tracing framework
|
#include <CudaKernel.hpp>
Classes | |
struct | Param |
Public Types | |
typedef const Param & | P |
Public Member Functions | |
CudaKernel (CudaModule *module=NULL, CUfunction function=NULL) | |
CudaKernel (const CudaKernel &other) | |
~CudaKernel (void) | |
CudaModule * | getModule (void) const |
CUfunction | getHandle (void) const |
int | getAttribute (CUfunction_attribute attrib) const |
CudaKernel & | setParams (const void *ptr, int size) |
CudaKernel & | setParams (const Param *const *params, int numParams) |
CudaKernel & | setParams (void) |
CudaKernel & | setParams (P p0) |
CudaKernel & | setParams (P p0, P p1) |
CudaKernel & | setParams (P p0, P p1, P p2) |
CudaKernel & | setParams (P p0, P p1, P p2, P p3) |
CudaKernel & | setParams (P p0, P p1, P p2, P p3, P p4) |
CudaKernel & | setParams (P p0, P p1, P p2, P p3, P p4, P p5) |
CudaKernel & | setParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6) |
CudaKernel & | setParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7) |
CudaKernel & | setParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8) |
CudaKernel & | setParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9) |
CudaKernel & | setParams (P p0, P p1, P p2, P p3, P p4, P p5, P p6, P p7, P p8, P p9, P p10) |
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) |
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) |
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) |
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) |
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) |
CudaKernel & | preferL1 (void) |
CudaKernel & | preferShared (void) |
CudaKernel & | setSharedBankSize (int bytes) |
CudaKernel & | setAsync (CUstream stream=NULL) |
CudaKernel & | cancelAsync (void) |
Vec2i | getDefaultBlockSize (void) const |
CudaKernel & | setGrid (int numThreads, const Vec2i &blockSize=0) |
CudaKernel & | setGrid (const Vec2i &sizeThreads, const Vec2i &blockSize=0) |
CudaKernel & | setGridExact (const Vec2i &blockSize, const Vec2i &gridSize) |
CudaKernel & | launch (void) |
CudaKernel & | launch (int numThreads, const Vec2i &blockSize=0) |
CudaKernel & | launch (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) |
CudaKernel & | sync (bool yield=true) |
CudaKernel & | operator= (const CudaKernel &other) |
Definition at line 48 of file CudaKernel.hpp.
typedef const Param& FW::CudaKernel::P |
Definition at line 72 of file CudaKernel.hpp.
CudaKernel::CudaKernel | ( | CudaModule * | module = NULL , |
CUfunction | function = NULL |
||
) |
Definition at line 36 of file CudaKernel.cpp.
|
inline |
Definition at line 76 of file CudaKernel.hpp.
CudaKernel::~CudaKernel | ( | void | ) |
Definition at line 50 of file CudaKernel.cpp.
|
inline |
Definition at line 109 of file CudaKernel.hpp.
int CudaKernel::getAttribute | ( | CUfunction_attribute | attrib | ) | const |
Definition at line 56 of file CudaKernel.cpp.
Definition at line 95 of file CudaKernel.cpp.
|
inline |
Definition at line 80 of file CudaKernel.hpp.
|
inline |
Definition at line 79 of file CudaKernel.hpp.
CudaKernel & CudaKernel::launch | ( | void | ) |
Definition at line 179 of file CudaKernel.cpp.
|
inline |
Definition at line 117 of file CudaKernel.hpp.
|
inline |
Definition at line 118 of file CudaKernel.hpp.
F32 CudaKernel::launchTimed | ( | bool | yield = true | ) |
Definition at line 188 of file CudaKernel.cpp.
|
inline |
Definition at line 120 of file CudaKernel.hpp.
|
inline |
Definition at line 121 of file CudaKernel.hpp.
CudaKernel & CudaKernel::operator= | ( | const CudaKernel & | other | ) |
Definition at line 283 of file CudaKernel.cpp.
|
inline |
Definition at line 104 of file CudaKernel.hpp.
|
inline |
Definition at line 105 of file CudaKernel.hpp.
|
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.
|
inline |
Definition at line 114 of file CudaKernel.hpp.
|
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.
|
inline |
Definition at line 86 of file CudaKernel.hpp.
|
inline |
Definition at line 87 of file CudaKernel.hpp.
|
inline |
Definition at line 88 of file CudaKernel.hpp.
|
inline |
Definition at line 89 of file CudaKernel.hpp.
|
inline |
Definition at line 90 of file CudaKernel.hpp.
Definition at line 91 of file CudaKernel.hpp.
Definition at line 92 of file CudaKernel.hpp.
Definition at line 93 of file CudaKernel.hpp.
Definition at line 94 of file CudaKernel.hpp.
|
inline |
Definition at line 95 of file CudaKernel.hpp.
|
inline |
Definition at line 96 of file CudaKernel.hpp.
|
inline |
Definition at line 97 of file CudaKernel.hpp.
|
inline |
Definition at line 98 of file CudaKernel.hpp.
|
inline |
Definition at line 99 of file CudaKernel.hpp.
|
inline |
Definition at line 100 of file CudaKernel.hpp.
|
inline |
Definition at line 101 of file CudaKernel.hpp.
|
inline |
Definition at line 102 of file CudaKernel.hpp.
|
inline |
Definition at line 106 of file CudaKernel.hpp.
CudaKernel & CudaKernel::sync | ( | bool | yield = true | ) |
Definition at line 225 of file CudaKernel.cpp.