FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kCudaAlloc.h
Go to the documentation of this file.
1 
8 #ifndef K_FIRESYNC_CUDA_ALLOC_H
9 #define K_FIRESYNC_CUDA_ALLOC_H
10 
12 #include <kFireSync/Cuda/kCudaAlloc.x.h>
13 
20 //typedef kObject kCudaDeviceAlloc; --forward-declared in kFsDef.x.h
21 
32 {
33  return xkCudaAlloc_Static()->deviceAlloc;
34 }
35 
64 //typedef kObject kCudaManagedAlloc; --forward-declared in kFsDef.x.h
65 
76 {
77  return xkCudaAlloc_Static()->managedAlloc;
78 }
79 
86 //typedef kObject kCudaPinnedAlloc; --forward-declared in kFsDef.x.h
87 
98 {
99  return xkCudaAlloc_Static()->pinnedAlloc;
100 }
101 
102 #endif
kAlloc kCudaDeviceAlloc_Instance()
Gets the singleton Cuda device memory allocator instance.
Definition: kCudaAlloc.h:31
#define kInlineFx(TYPE)
kAlloc kCudaPinnedAlloc_Instance()
Gets the singleton Cuda pinned memory allocator instance.
Definition: kCudaAlloc.h:97
kAlloc kCudaManagedAlloc_Instance()
Gets the singleton Cuda managed memory allocator instance.
Definition: kCudaAlloc.h:75
Central Cuda-related definitions.