Cuda error context is destroyed. CUDA_ERROR_ALREADY_MAPPED : .

Cuda error context is destroyed. Learn more about mex simulations, cuda, gpuarray MATLAB.