FunctioncudaOptiVec 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/Delphiuses VecLib;
function cudaM_pinnedFree( h_X:Pointer ): IntBool;
DescriptionThe 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 handlingTrying 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 valueFALSE (0) in case of success, otherwise TRUE (non-zero)
See alsoCudaOptiVec.htm, chapter 3,   cudaM_pinnedNfree,   cudaV_pinnedFreeAll,   cudaMF_pinnedMatrix

MatrixLib Table of Contents  OptiVec home