reset(gpudev) resets the GPU device and clears
its memory of gpuArray and CUDAKernel data. The GPU device identified by
gpudev remains the selected device, but all gpuArray and CUDAKernel
objects in MATLAB representing data on that device are invalid.