/usr/include/ossim/parallel/ossimMpi.h is in libossim-dev 1.8.16-3+b1.
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 | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimMpi.h 13602 2008-09-25 14:23:32Z gpotts $
#ifndef ossimMpi_HEADER
#define ossimMpi_HEADER
#include <ossim/ossimConfig.h>
#include <ossim/base/ossimConstants.h>
class OSSIM_DLL ossimMpi
{
public:
static ossimMpi* instance();
ossim_float64 getTime()const;
/*!
* Typically called only one time
*/
void initialize(int* argc, char*** argv);
/*!
* Called only once when we would like to
* shutdown mpi
*/
void finalize();
int getRank()const;
int getNumberOfProcessors()const;
void setEnabledFlag(bool flag);
bool isEnabled()const;
/**
* @brief MPI Barrier method.
* Blocks until all processes have reached this routine.
*
* If MPI is enabled this will call: MPI_Barrier( MPI_COMM_WORLD );
* else it will simply return.
*/
void barrier();
protected:
ossimMpi(); // hide
ossimMpi(const ossimMpi&); // hide
void operator =(const ossimMpi&); // hide
/*!
* We will have only a single instance of
* this class.
*/
static ossimMpi* theInstance;
bool theEnabledFlag;
};
#endif
|