|
FireSync API
|
Collection of Cuda utility functions.
Public Member Functions | |
Environment Support | |
| kCudaEnvironmentStatus | kCudaUtils_EnvironmentStatus () |
| Reports the overall status of the Cuda processing environment. More... | |
Value Support | |
| template<class T > | |
| kStatus | kCudaUtils_AllocValue (kCudaStream stream, kAlloc allocator, T **pointer, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Allocates storage for a value-type with the specified allocator. More... | |
| template<class T > | |
| kStatus | kCudaUtils_AssignValue (kCudaStream stream, T *dest, const T *source, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Copies an item from its existing location to a new location. More... | |
| template<class T > | |
| kStatus | kCudaUtils_CloneValue (kCudaStream stream, kAlloc destAlloc, T **dest, const T *source, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Moves an item from its existing location to a new buffer created with the specified allocator. More... | |
| template<class T > | |
| kStatus | kCudaUtils_FreeValueRef (kAlloc allocator, T **pointer) |
| Frees a value buffer and resets the buffer pointer to null. More... | |
Raw Memory Support | |
| kStatus | kCudaUtils_Allocate (kCudaStream stream, kAlloc alloc, kSize size, void *mem, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Allocates a block of memory and attaches it to the specified stream. More... | |
| kStatus | kCudaUtils_AttachToStream (kCudaStream stream, void *pointer, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Attaches serial managed memory to a stream. More... | |
| kStatus | kCudaUtils_DetachFromStream (kCudaStream stream, void *pointer, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Detaches serial managed memory from a stream. More... | |
| kStatus | kCudaUtils_MemSet (kCudaStream stream, void *dest, kByte fill, kSize size, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Sets a block of memory to the given byte value. More... | |
| kStatus | kCudaUtils_Copy (kCudaStream stream, void *dest, const void *src, kSize size, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Copies data from one memory address to another. More... | |
Object/Array Support | |
| kStatus | kCudaUtils_AttachArrayToStream (kCudaStream stream, kArrayProvider array, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Attaches an array's internal buffer to a stream. More... | |
| kStatus | kCudaUtils_DetachArrayFromStream (kCudaStream stream, kArrayProvider array, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Detaches an array's internal buffer from a stream. More... | |
| kStatus | kCudaUtils_CloneObject (kCudaStream stream, kObject *object, kObject source, kAlloc objectAllocator, kAlloc valueAllocator, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Constructs a new object by copying an existing object, including any aggregated child elements. More... | |
| kStatus | kCudaUtils_AssignArray (kCudaStream stream, kArrayProvider destination, kArrayProvider source, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Assigns an array-based data type. More... | |
| kBool | kCudaUtils_IsArrayDeviceAccessible (kArrayProvider array, kBool isExclusive=kTRUE) |
| Reports whether an array's buffer can potentially be accessed by a Cuda device. More... | |
| kStatus | kCudaUtils_ConstructArrayFromTemplate (kCudaStream stream, kArrayProvider *outputArray, kArrayProvider templateArray, kAlloc objectAlloc=kNULL, kAlloc valueAlloc=kNULL, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Constructs an array object, using a template object to determine properties. More... | |
| kStatus | kCudaUtils_PrepareDeviceArray (kCudaStream stream, kArrayProvider *outputArray, kArrayProvider inputArray, kBool copyData=kTRUE, kAlloc objectAlloc=kNULL, kAlloc valueAlloc=kNULL, kBool inputExclusive=kTRUE, kCudaSync sync=kCUDA_SYNC_DEFAULT) |
| Ensures the specified input array is device-accessible by either cloning or sharing it. More... | |