extract method initializeMVC for cpu and gpu