FunctionDe-allocate a single vector
Syntax C/C++#include <VecLib.h>
void V_free( void *X );
Pascal/Delphiuses VecLib;
procedure V_free( Ptr:Pointer );
CUDA function C/C++#include <cudaVecLib.h>
int cudaV_free( void *d_X );
CUDA function Pascal/Delphiuses VecLib;
function cudaV_free( d_X:Pointer ): IntBool;
DescriptionThe vector X is freed (i.e. de-allocated). V_free should be used only for the de-allocation of vectors which have previously be allocated by one of the functions of the VF_vector or VF_vector0 family. To free several vectors simultaneously, use V_nfree (C/C++ only).
Error handlingTrying to free a vector 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 valuenone
See alsoV_nfree,   V_freeAll,   cudaV_pinnedFree,   VF_vector,   VF_vector0

VectorLib Table of Contents  OptiVec home