Set number of cores script