if input number of cores to use is less than maximum number of cores, returns an error