cudaMF_pinnedMatrix cudaMD_pinnedMatrix cudaME_pinnedMatrix
cudaMCF_pinnedMatrix cudaMCD_pinnedMatrix cudaMCE_pinnedMatrix
FunctionPinned host-memory allocation for a matrix
CUDA function C/C++#include <cudaMFstd.h>
fMatrix cudaMF_pinnedMatrix( fMatrix *h_MA, ui ht, ui len );
CUDA function Pascal/Delphiuses VecLib;
function cudaMF_pinnedMatrix( var h_MA:fMatrix; ht, len:UIntSize ): fMatrix;
DescriptionPinned host memory is allocated. 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_pinnedMatrix0,   cudaVF_pinnedVector,  

MatrixLib Table of Contents  OptiVec home