1 /* 2 * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana 3 * University Research and Technology 4 * Corporation. All rights reserved. 5 * Copyright (c) 2004-2011 The University of Tennessee and The University 6 * of Tennessee Research Foundation. All rights 7 * reserved. 8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 9 * University of Stuttgart. All rights reserved. 10 * Copyright (c) 2004-2005 The Regents of the University of California. 11 * All rights reserved. 12 * Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved. 13 * Copyright (c) 2014-2016 Research Organization for Information Science 14 * and Technology (RIST). All rights reserved. 15 * Copyright (c) 2018 Intel, Inc. All rights reserved. 16 * $COPYRIGHT$ 17 * 18 * Additional copyrights may follow 19 * 20 * $HEADER$ 21 */ 22 23 #ifndef _PMIX_NAME_FNS_H_ 24 #define _PMIX_NAME_FNS_H_ 25 26 #include "pmix_config.h" 27 28 #ifdef HAVE_STDINT_h 29 #include <stdint.h> 30 #endif 31 32 #include "pmix_common.h" 33 34 BEGIN_C_DECLS 35 36 /* useful define to print name args in output messages */ 37 PMIX_EXPORT char* pmix_util_print_name_args(const pmix_proc_t *name); 38 #define PMIX_NAME_PRINT(n) \ 39 pmix_util_print_name_args(n) 40 41 PMIX_EXPORT char* pmix_util_print_rank(const pmix_rank_t vpid); 42 #define PMIX_RANK_PRINT(n) \ 43 pmix_util_print_rank(n) 44 45 46 END_C_DECLS 47 #endif