/usr/include/smpi/smpif.h is in libsimgrid-dev 3.11.1-9.
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 | /* Copyright (c) 2007-2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#ifndef SMPIF_H
#define SMPIF_H
#define SMPI_F2C 1
#ifdef SMPI_F2C
#include <xbt/misc.h>
#include <smpi/smpi.h>
/* those are defined in f2c.h */
#undef min
#undef max
#include <f2c.h>
XBT_PUBLIC_DATA(__thread int) smpi_current_rank;
XBT_PUBLIC(int) smpi_process_argc(void);
XBT_PUBLIC(int) smpi_process_getarg(integer* index, char* dst, ftnlen len);
#define smpi_sample_local__(pi,pt) \
{ \
if(smpi_sample_1(0, __FILE__, __LINE__, *pi, *pt)) { \
smpi_sample_3(0, __FILE__, __LINE__); \
} \
if(!smpi_sample_2(0, __FILE__, __LINE__)) { \
continue; \
} \
}
#define smpi_sample_global__(pi,pt) \
{ \
if(smpi_sample_1(1, __FILE__, __LINE__, *pi, *pt)) { \
smpi_sample_3(1, __FILE__, __LINE__); \
} \
if(!smpi_sample_2(1, __FILE__, __LINE__)) { \
continue; \
} \
}
#endif
#endif // SMPI_F2C
|