/usr/include/lam/app_mgmt.h is in lam4-dev 7.1.4-3.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | /*
* Copyright (c) 2001-2002 The Trustees of Indiana University.
* All rights reserved.
* Copyright (c) 1998-2001 University of Notre Dame.
* All rights reserved.
* Copyright (c) 1994-1998 The Ohio State University.
* All rights reserved.
*
* This file is part of the LAM/MPI software package. For license
* information, see the LICENSE file in the top level directory of the
* LAM/MPI source distribution.
*
* $HEADER$
*
*
* $Id: app_mgmt.h,v 6.9 2002/11/03 17:03:11 ssankara Exp $
*
* Function: - running application management
*/
#ifndef _APP_MGMT_H
#define _APP_MGMT_H
#include "lam.h"
/*
* LAM constants & macros
*/
#define LAM_GPSCMP(p1, p2) (((p1)->gps_node < (p2)->gps_node) ? -1 : \
(((p1)->gps_node > (p2)->gps_node) ? 1 : \
(((p1)->gps_idx < (p2)->gps_idx) ? -1 : \
(((p1)->gps_idx > (p2)->gps_idx) ? 1 : \
(((p1)->gps_pid < (p2)->gps_pid) ? -1 : \
(((p1)->gps_pid > (p2)->gps_pid) ? 1 : 0))))))
#define LAM_FULL_GPSCMP(p1, p2) (((p1)->gps_node < (p2)->gps_node) ? -1 : \
(((p1)->gps_node > (p2)->gps_node) ? 1 : \
(((p1)->gps_idx < (p2)->gps_idx) ? -1 : \
(((p1)->gps_idx > (p2)->gps_idx) ? 1 : \
(((p1)->gps_pid < (p2)->gps_pid) ? -1 : \
(((p1)->gps_pid > (p2)->gps_pid) ? 1 : \
(((p1)->gps_grank > (p2)->gps_grank) ? -1 : \
(((p1)->gps_grank < (p2)->gps_grank) ? 1 : 0))))))))
/*
* Global Positioning System for running processes
*/
struct _gps {
int4 gps_node; /* node ID */
int4 gps_pid; /* process ID */
int4 gps_idx; /* process index */
int4 gps_grank; /* glob. rank in loc. world */
};
#ifdef __cplusplus
extern "C" {
#endif
extern int app_doom __ARGS((int app_n, struct _gps *app,
int sig));
extern int app_sendprocs __ARGS((int np, struct _gps *w));
#ifdef __cplusplus
}
#endif
#endif /* _APP_MGMT_H */
|