cudaMF_pinnedMatrix0 cudaMD_pinnedMatrix0 cudaME_pinnedMatrix0
cudaMCF_pinnedMatrix0 cudaMCD_pinnedMatrix0 cudaMCE_pinnedMatrix0
FunctionPinned host-memory allocation for a matrix, initialized with 0
CUDA function C/C++#include <cudaMFstd.h>
fMatrix0 cudaMF_pinnedMatrix0( fMatrix0 *h_MA, ui ht, ui len );
CUDA function Pascal/Delphiuses VecLib;
function cudaMF_pinnedMatrix0( var h_MA:fMatrix0; ht, len:UIntSize ): fMatrix0;
DescriptionPinned host memory is allocated and initialized with 0. The device pointer is returned, and the host pointer is stored as h_MA. In order to release the memory thus allocated, use cudaM_pinnedFree,   cudaV_pinnedFreeAll, or cudaM_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 matrix
See alsoCudaOptiVec.htm, chapter 3,   cudaMF_pinnedMatrix,   cudaVF_pinnedVector0,  

MatrixLib Table of Contents  OptiVec home