I have been working with CUDA and matlab mex files, and I’ve never been able to allocate pinned memory within a mex file using cudaMallocHost. It seems that this call is inherently incompatible with matlab’s memory management. For me, attempts to do this just cause matlab to crash. Has anyone been able to use pinned memory with a mex file? How was it done?
If pinned memory within matlab is not now possible, this would be a nice feature to have at some point.