submod: vary threads for cilk, spmd