You are required to install the following packages.
gfxCardStatus will switch to nVidia GT650M automatically when the software running is capable for 3D acceleration, such as VirtualBox. Or, you can switch it manually.
CUDA will be loaded automatically when the softwares are using CUDA feature.
That's all! See you.