![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
#include <ApiCudaRt.hpp>
Classes | |
struct | HostFnAdaptor |
Public Types | |
using | DeviceAttr_t = ::cudaDeviceAttr |
using | DeviceProp_t = ::cudaDeviceProp |
using | Error_t = ::cudaError_t |
using | Event_t = ::cudaEvent_t |
using | Extent_t = ::cudaExtent |
using | Flag_t = unsigned int |
using | FuncAttributes_t = ::cudaFuncAttributes |
using | HostFn_t = void(*)(void *data) |
using | Limit_t = ::cudaLimit |
using | Memcpy3DParms_t = ::cudaMemcpy3DParms |
using | MemcpyKind_t = ::cudaMemcpyKind |
using | PitchedPtr_t = ::cudaPitchedPtr |
using | Pos_t = ::cudaPos |
using | Stream_t = ::cudaStream_t |
Static Public Member Functions | |
static Error_t | deviceGetAttribute (int *value, DeviceAttr_t attr, int device) |
static Error_t | deviceGetLimit (size_t *pValue, Limit_t limit) |
static Error_t | deviceReset () |
static Error_t | deviceSetLimit (Limit_t limit, size_t value) |
static Error_t | deviceSynchronize () |
static Error_t | eventCreate (Event_t *event) |
static Error_t | eventCreateWithFlags (Event_t *event, Flag_t flags) |
static Error_t | eventDestroy (Event_t event) |
static Error_t | eventQuery (Event_t event) |
static Error_t | eventRecord (Event_t event, Stream_t stream) |
static Error_t | eventSynchronize (Event_t event) |
static Error_t | free (void *devPtr) |
static Error_t | freeAsync (void *devPtr, Stream_t stream) |
template<typename T > | |
static Error_t | funcGetAttributes (FuncAttributes_t *attr, T *func) |
static Error_t | funcGetAttributes (FuncAttributes_t *attr, void const *func) |
static int | getCurrentDevice () |
static Error_t | getDeviceCount (int *count) |
static Error_t | getDeviceProperties (DeviceProp_t *prop, int device) |
static char const * | getErrorName (Error_t error) |
static char const * | getErrorString (Error_t error) |
static Error_t | getLastError () |
template<class T > | |
static Error_t | getSymbolAddress (void **devPtr, T const &symbol) |
static Error_t | getSymbolAddress (void **devPtr, void const *symbol) |
static Error_t | hostFree (void *ptr) |
static Error_t | hostGetDevicePointer (void **pDevice, void *pHost, Flag_t flags) |
static Error_t | hostMalloc (void **ptr, size_t size, Flag_t flags) |
static Error_t | hostRegister (void *ptr, size_t size, Flag_t flags) |
static Error_t | hostUnregister (void *ptr) |
static Error_t | launchHostFunc (Stream_t stream, HostFn_t fn, void *userData) |
static Extent_t | makeExtent (size_t w, size_t h, size_t d) |
static PitchedPtr_t | makePitchedPtr (void *d, size_t p, size_t xsz, size_t ysz) |
static Pos_t | makePos (size_t x, size_t y, size_t z) |
static Error_t | malloc (void **devPtr, size_t size) |
static Error_t | malloc3D (PitchedPtr_t *pitchedDevPtr, Extent_t extent) |
static Error_t | mallocAsync (void **devPtr, size_t size, Stream_t stream) |
static Error_t | mallocPitch (void **devPtr, size_t *pitch, size_t width, size_t height) |
static Error_t | memcpy (void *dst, void const *src, size_t count, MemcpyKind_t kind) |
static Error_t | memcpy2DAsync (void *dst, size_t dpitch, void const *src, size_t spitch, size_t width, size_t height, MemcpyKind_t kind, Stream_t stream) |
static Error_t | memcpy3DAsync (Memcpy3DParms_t const *p, Stream_t stream) |
static Error_t | memcpyAsync (void *dst, void const *src, size_t count, MemcpyKind_t kind, Stream_t stream) |
static Error_t | memGetInfo (size_t *free, size_t *total) |
static Error_t | memset2DAsync (void *devPtr, size_t pitch, int value, size_t width, size_t height, Stream_t stream) |
static Error_t | memset3DAsync (PitchedPtr_t pitchedDevPtr, int value, Extent_t extent, Stream_t stream) |
static Error_t | memsetAsync (void *devPtr, int value, size_t count, Stream_t stream) |
static Error_t | setDevice (int device) |
static Error_t | streamCreate (Stream_t *pStream) |
static Error_t | streamCreateWithFlags (Stream_t *pStream, Flag_t flags) |
static Error_t | streamDestroy (Stream_t stream) |
static Error_t | streamQuery (Stream_t stream) |
static Error_t | streamSynchronize (Stream_t stream) |
static Error_t | streamWaitEvent (Stream_t stream, Event_t event, Flag_t flags) |
Static Public Attributes | |
static constexpr DeviceAttr_t | deviceAttributeMaxBlockDimX = ::cudaDevAttrMaxBlockDimX |
static constexpr DeviceAttr_t | deviceAttributeMaxBlockDimY = ::cudaDevAttrMaxBlockDimY |
static constexpr DeviceAttr_t | deviceAttributeMaxBlockDimZ = ::cudaDevAttrMaxBlockDimZ |
static constexpr DeviceAttr_t | deviceAttributeMaxGridDimX = ::cudaDevAttrMaxGridDimX |
static constexpr DeviceAttr_t | deviceAttributeMaxGridDimY = ::cudaDevAttrMaxGridDimY |
static constexpr DeviceAttr_t | deviceAttributeMaxGridDimZ = ::cudaDevAttrMaxGridDimZ |
static constexpr DeviceAttr_t | deviceAttributeMaxSharedMemoryPerBlock = ::cudaDevAttrMaxSharedMemoryPerBlock |
static constexpr DeviceAttr_t | deviceAttributeMaxThreadsPerBlock = ::cudaDevAttrMaxThreadsPerBlock |
static constexpr DeviceAttr_t | deviceAttributeMultiprocessorCount = ::cudaDevAttrMultiProcessorCount |
static constexpr DeviceAttr_t | deviceAttributeWarpSize = ::cudaDevAttrWarpSize |
static constexpr Error_t | errorHostMemoryAlreadyRegistered = ::cudaErrorHostMemoryAlreadyRegistered |
static constexpr Error_t | errorHostMemoryNotRegistered = ::cudaErrorHostMemoryNotRegistered |
static constexpr Error_t | errorNotReady = ::cudaErrorNotReady |
static constexpr Error_t | errorUnknown = ::cudaErrorUnknown |
static constexpr Error_t | errorUnsupportedLimit = ::cudaErrorUnsupportedLimit |
static constexpr Flag_t | eventBlockingSync = cudaEventBlockingSync |
static constexpr Flag_t | eventDefault = cudaEventDefault |
static constexpr Flag_t | eventDisableTiming = cudaEventDisableTiming |
static constexpr Flag_t | eventInterprocess = cudaEventInterprocess |
static constexpr Flag_t | hostMallocCoherent = cudaHostAllocDefault |
static constexpr Flag_t | hostMallocDefault = cudaHostAllocDefault |
static constexpr Flag_t | hostMallocMapped = cudaHostAllocMapped |
static constexpr Flag_t | hostMallocNonCoherent = cudaHostAllocDefault |
static constexpr Flag_t | hostMallocPortable = cudaHostAllocPortable |
static constexpr Flag_t | hostMallocWriteCombined = cudaHostAllocWriteCombined |
static constexpr Flag_t | hostRegisterDefault = cudaHostRegisterDefault |
static constexpr Flag_t | hostRegisterIoMemory = cudaHostRegisterIoMemory |
static constexpr Flag_t | hostRegisterMapped = cudaHostRegisterMapped |
static constexpr Flag_t | hostRegisterPortable = cudaHostRegisterPortable |
static constexpr Limit_t | limitMallocHeapSize = ::cudaLimitMallocHeapSize |
static constexpr Limit_t | limitPrintfFifoSize = ::cudaLimitPrintfFifoSize |
static constexpr MemcpyKind_t | memcpyDefault = ::cudaMemcpyDefault |
static constexpr MemcpyKind_t | memcpyDeviceToDevice = ::cudaMemcpyDeviceToDevice |
static constexpr MemcpyKind_t | memcpyDeviceToHost = ::cudaMemcpyDeviceToHost |
static constexpr MemcpyKind_t | memcpyHostToDevice = ::cudaMemcpyHostToDevice |
static constexpr char | name [] = "Cuda" |
static constexpr Flag_t | streamDefault = cudaStreamDefault |
static constexpr Flag_t | streamNonBlocking = cudaStreamNonBlocking |
static constexpr Error_t | success = ::cudaSuccess |
static constexpr auto | version = ALPAKA_LANG_CUDA |
Definition at line 15 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::DeviceAttr_t = ::cudaDeviceAttr |
Definition at line 22 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::DeviceProp_t = ::cudaDeviceProp |
Definition at line 23 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::Error_t = ::cudaError_t |
Definition at line 24 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::Event_t = ::cudaEvent_t |
Definition at line 25 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::Extent_t = ::cudaExtent |
Definition at line 26 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::Flag_t = unsigned int |
Definition at line 27 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::FuncAttributes_t = ::cudaFuncAttributes |
Definition at line 28 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::HostFn_t = void (*)(void* data) |
Definition at line 29 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::Limit_t = ::cudaLimit |
Definition at line 30 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::Memcpy3DParms_t = ::cudaMemcpy3DParms |
Definition at line 31 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::MemcpyKind_t = ::cudaMemcpyKind |
Definition at line 32 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::PitchedPtr_t = ::cudaPitchedPtr |
Definition at line 33 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::Pos_t = ::cudaPos |
Definition at line 34 of file ApiCudaRt.hpp.
using alpaka::ApiCudaRt::Stream_t = ::cudaStream_t |
Definition at line 35 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 108 of file ApiCudaRt.hpp.
Definition at line 113 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 118 of file ApiCudaRt.hpp.
Definition at line 123 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 128 of file ApiCudaRt.hpp.
Definition at line 133 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 138 of file ApiCudaRt.hpp.
Definition at line 143 of file ApiCudaRt.hpp.
Definition at line 148 of file ApiCudaRt.hpp.
Definition at line 153 of file ApiCudaRt.hpp.
Definition at line 158 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 163 of file ApiCudaRt.hpp.
Definition at line 168 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 184 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 178 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 196 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 205 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 210 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 215 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 220 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 225 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 236 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 230 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 246 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 241 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 251 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 256 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 261 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 266 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 404 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 394 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 399 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 277 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 282 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 287 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 300 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 310 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 315 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 328 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 333 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 305 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 338 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 349 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 354 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 359 of file ApiCudaRt.hpp.
Definition at line 364 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 369 of file ApiCudaRt.hpp.
Definition at line 374 of file ApiCudaRt.hpp.
Definition at line 379 of file ApiCudaRt.hpp.
Definition at line 384 of file ApiCudaRt.hpp.
|
inlinestatic |
Definition at line 389 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 70 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 71 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 72 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 73 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 74 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 75 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 76 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 77 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 78 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 79 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 40 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 41 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 39 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 43 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 42 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 46 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 45 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 47 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 48 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 54 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 50 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 51 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 55 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 52 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 53 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 57 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 60 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 59 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 58 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 82 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 81 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 62 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 63 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 64 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 65 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 18 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 67 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 68 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 38 of file ApiCudaRt.hpp.
|
staticconstexpr |
Definition at line 19 of file ApiCudaRt.hpp.