add cpu, gpu seperate compile mode