cudaM_pinnedNfree
FunctionDe-allocate pinned host memory occupied by one or more matrices.
CUDA function C/C++#include <cudaMatLib.h>
int cudaV_pinnedNfree( unsigned numfree, ... );
DescriptionThe parameter numfree "tells" the function how many matrices it has to free. The host pointers of these matrices follow in the parameter list after numfree. Only matrices which have been allocated by one of the functions of the cudaVF_pinnedMatrix or cudaVF_pinnedMAtrix0 family can be de-allocated by cudaM_pinnedNfree.
If device pointers are mistakenly used rather than the host pointers, an error message is displayed.
Pascal/Delphi: since a variable number of parameters is not supported in Pascal language, this function is missing.
Example C/C++cudaM_pinnedNfree( 3, h_MX, h_MY, h_MZ );
Return valueFALSE (0) in case of success, otherwise TRUE (non-zero)
See alsoCudaOptiVec.htm, chapter 3,   cudaV_pinnedFree,   cudaV_pinnedFreeAll,   cudaVF_pinnedVector,   cudaVF_pinnedVector0

MatrixLib Table of Contents  OptiVec home