GlobalArrays / ga

Partitioned Global Address Space (PGAS) library for distributed arrays
http://hpc.pnl.gov/globalarrays/
Other
97 stars 38 forks source link

initialize np to avoid garbage values in GAstat.num???_procs #248

Closed edoapra closed 2 years ago

edoapra commented 2 years ago

some of the elements of GAstat struct contain nonsensical values

numput_procs
numget_procs
numacc_procs
numsca_procs
numgat_procs

The root cause of the problem in the following code in onesided.c https://github.com/GlobalArrays/ga/blob/56443bb81df5f0e4118ca79f5aa3af30ca44ea76/global/src/onesided.c#L581

The line GAstat.numput_procs += np; is the culprit, since np is never set.

Older version of onesided.c got the np value out of pnga_locate_region(), but in current incarnation of onesided.c pnga_locate_region is no longer there.