Use standard function get_num_of_cores() to compute the number of cores per node