|Function||De-allocate pinned host memory occupied by one or more matrices.|
|CUDA function C/C++||#include <cudaMatLib.h>
int cudaV_pinnedNfree( unsigned numfree, ... );
|Description||The 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 value||FALSE (0) in case of success, otherwise TRUE (non-zero)|
MatrixLib Table of Contents OptiVec home