1
1

When someone specifies a rank-file slot-list of N:*, stop the loop at the proper place (we were going through the loop one too many times).

Thanks to Eugene for spotting it.

This commit was SVN r21728.
Этот коммит содержится в:
Ralph Castain 2009-07-23 17:51:15 +00:00
родитель 55e7365e7a
Коммит c459615f8f

Просмотреть файл

@ -191,7 +191,7 @@ static int opal_paffinity_base_socket_core_to_cpu_set(char **socket_core_list, i
if (0 == strcmp("*",socket_core[1])) {
/* bind to all available LOGICAL cores */
for (core = 0; core <= num_cores; core++) {
for (core = 0; core < num_cores; core++) {
/* convert to PHYSICAL core id */
if (0 > (phys_core = opal_paffinity_base_get_physical_core_id(phys_socket, core))) {
opal_output(0, "Rank %ld: PAFFINITY cannot get physical core id for logical core %ld in physical socket %ld (%ld)",
@ -401,7 +401,7 @@ static int opal_paffinity_base_socket_core_to_cpu_set(char **socket_core_list, i
if (0 == strcmp("*",socket_core[1])) {
/* bind to all available LOGICAL cores */
for (core = 0; core <= num_cores; core++) {
for (core = 0; core < num_cores; core++) {
/* convert to PHYSICAL core id */
if (0 > (phys_core = opal_paffinity_base_get_physical_core_id(phys_socket, core))) {
opal_output(0, "Rank %ld: PAFFINITY cannot get physical core id for logical core %ld in physical socket %ld (%ld)",