1
1
openmpi/test
Charles Shereda cbc6feaab2 Created opal_gethostname() as safer gethostname substitute.
The opal_gethostname() function provides a more robust mechanism
to retrieve the hostname than gethostname(), which can return
results that are not null-terminated, and which can vary in its
behavior from system to system.

opal_gethostname() just returns the value in opal_process_info.nodename;
this is populated in opal_init_gethostname() inside opal_init.c.

-Changed all gethostname calls in opal subtree to opal_gethostname
-Changed all gethostname calls in orte subtree to opal_gethostname
-Changed all gethostname calls in ompi subdir to opal_gethostname
-Changed all gethostname calls in oshmem subdir to opal_gethostname
-Changed opal_if.c in test subdir to use opal_gethostname
-Changed opal_init.c to include opal_init_gethostname. This function
 returns an int and directly sets opal_process_info.nodename per
 jsquyres' modifications.

Relates to open-mpi#6801

Signed-off-by: Charles Shereda <cpshereda@lanl.gov>
2020-01-13 08:52:17 -08:00
..
asm opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
carto Misc. trivial typos 2018-04-09 11:45:58 -04:00
class Ensure buffer_unload leaves the buffer in a clean state 2019-09-04 08:32:27 -07:00
datatype Add a test for datatypes composed by multiple predefined 2019-08-30 19:56:48 -04:00
dss Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
event Misc. trivial typos 2018-04-09 11:45:58 -04:00
memchecker Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
monitoring Fix the PVAR allocation usage. 2019-02-02 19:03:43 -05:00
mpi Misc. trivial typos 2018-04-09 11:45:58 -04:00
mpool Ensure proper alignment of memory provided by MPI 2019-10-01 11:54:29 +02:00
runtime Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
spc Use the correct counter name in the example. 2019-05-29 00:54:56 -04:00
support Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
threads opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
util Created opal_gethostname() as safer gethostname substitute. 2020-01-13 08:52:17 -08:00
Makefile.am Merge pull request #4885 from davideberius/spc_pr 2018-06-12 14:04:49 -07:00