main: added CPU multiple-instance support.