Change all references of num_cpus -> num_cores