adjust number of cpus for tasks