cudaVF_pinnedVectorcudaVD_pinnedVectorcudaVE_pinnedVector
cudaVCF_pinnedVectorcudaVCD_pinnedVectorcudaVCE_pinnedVector
cudaVPF_pinnedVectorcudaVPD_pinnedVectorcudaVPE_pinnedVector
cudaVI_pinnedVectorcudaVBI_pinnedVectorcudaVSI_pinnedVector
cudaVLI_pinnedVectorcudaVQI_pinnedVector 
cudaVU_pinnedVectorcudaVUB_pinnedVectorcudaVUS_pinnedVector
cudaVUL_pinnedVectorcudaVUQ_pinnedVectorcudaVUI_pinnedVector
FunctionAllocation of pinned host memory
CUDA function C/C++#include <cudaVFstd.h>
fVector cudaVF_pinnedVector( fVector *h_X, ui size );
CUDA function Pascal/Delphiuses VecLib;
function cudaVF_pinnedVector( var h_X:fVector; size:UIntSize ): fVector;
DescriptionPinned host memory is allocated. The device pointer is returned, and the host pointer is stored as h_X. In order to release the memory thus allocated, use cudaV_pinnedFree,   cudaV_pinnedFreeAll, or cudaV_pinnedNfree (the latter only in C/C++).
See CudaOptiVec.htm, chapter 3 for a description of the various memory types of cudaOptiVec routines.
Error handlingIf there is not enough memory available, or if size is zero, an error message "Not enough memory" is displayed and the program aborted.
Return valueDevice pointer to the allocated memory
See alsoCudaOptiVec.htm, chapter 3,   cudaVF_pinnedVector0

VectorLib Table of Contents  OptiVec home