A two-stage semi-hybrid flowshop problem in graphics processing