cudaVF_pinnedVector0cudaVD_pinnedVector0cudaVE_pinnedVector0
cudaVCF_pinnedVector0cudaVCD_pinnedVector0cudaVCE_pinnedVector0
cudaVPF_pinnedVector0cudaVPD_pinnedVector0cudaVPE_pinnedVector0
cudaVI_pinnedVector0cudaVBI_pinnedVector0cudaVSI_pinnedVector0
cudaVLI_pinnedVector0cudaVQI_pinnedVector0 
cudaVU_pinnedVector0cudaVUB_pinnedVector0cudaVUS_pinnedVector0
cudaVUL_pinnedVector0cudaVUQ_pinnedVector0cudaVUI_pinnedVector0
FunctionAllocation of pinned host memory and initialisation with 0
CUDA function C/C++#include <cudaVFstd.h>
fVector cudaVF_pinnedVector0( fVector *h_X, ui size );
CUDA function Pascal/Delphiuses VecLib;
function cudaVF_pinnedVector0( var h_X:fVector; size:UIntSize ): fVector;
DescriptionPinned host memory is allocated and initialized with 0. 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_pinnedVector

VectorLib Table of Contents  OptiVec home