Reset GPU device and clear its memory
reset(gpudev)
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.
| GPUDevice object representing the currently selected device |
After you reset a GPU device, any variables representing arrays or kernels on the device are invalid; you should clear or redefine them.