|
Function | cudaOptiVec only: De-allocate a single pinned host-memory matrix |
|
CUDA function C/C++ | #include <cudaMatLib.h>
int cudaM_pinnedFree( void **h_MA );
|
CUDA function Pascal/Delphi | uses VecLib;
function cudaM_pinnedFree( h_X:Pointer ): IntBool;
|
|
Description | The pinned host-memory matrix MA is freed (i.e. de-allocated). This function needs the host address (not the device address!) of the pinned matrix as an argument. To free several pinned matrices simultaneously, use cudaM_pinnedNfree (C/C++ only). |
|
Error handling | Trying to free a pinned matrix that has already been freed, or that has never been allocated memory, leads to a warning message "Cannot free non-existent vector". Program execution is continued without freeing anything in this case. |
|
Return value | FALSE (0) in case of success, otherwise TRUE (non-zero) |
|
|