vectorAddDrv sample using Unified Memory

I am learning to use CUDA Driver API. So I am studying vectorAddDrv sample. I would like to update that sample to use Unified Memory. How can I do that? I would like to use Unified Memory in vectorAdd_nvrt sample too.

Thanks for your help.
Aik-Siong Koh