[pooma-dev] Patch: Permit Compiling MessageMain.cpp

Jeffrey Oldham oldham at codesourcery.com
Wed Mar 21 00:00:12 UTC 2001


On Tue, Mar 20, 2001 at 03:53:14PM -0800, Jeffrey Oldham wrote:
> I committed the attached patch to permit compiling
> benchmarks/Messaging/MessageMain.cpp on a sequential machine without
> MPI.

Approved by	Julian Cummings
Tested on	Linux with gcc mainline.

> Thanks,
> Jeffrey D. Oldham
> oldham at codesourcery.com
-------------- next part --------------
Index: MessageMain.cpp
===================================================================
RCS file: /home/pooma/Repository/r2/benchmarks/Messaging/MessageMain.cpp,v
retrieving revision 1.9
diff -c -p -r1.9 MessageMain.cpp
*** MessageMain.cpp	2000/07/24 16:40:11	1.9
--- MessageMain.cpp	2001/03/15 06:48:16
*************** int main(int argc, char **argv)
*** 188,197 ****
--- 188,199 ----
    //
    messagingParameters(argc,argv);
  
+ #if defined(POOMA_BENCHMARKS_MESSAGING_TULIP) || defined(POOMA_BENCHMARKS_MESSAGING_MPI)
    //
    // Build a benchmark object to hold the benchmarks we will do.
    //
    Benchmark messaging(argc,argv,"Border exchange messaging");
+ #endif // POOMA_BENCHMARKS_MESSAGING_TULIP || POOMA_BENCHMARKS_MESSAGING_MPI
  
  #ifdef POOMA_BENCHMARKS_MESSAGING_TULIP
  
*************** int main(int argc, char **argv)
*** 252,263 ****
--- 254,267 ----
  
  #endif // POOMA_BENCHMARKS_MESSAGING_MPI
  
+ #if defined(POOMA_BENCHMARKS_MESSAGING_TULIP) || defined(POOMA_BENCHMARKS_MESSAGING_MPI)
    //
    // Do the benchmark:
    //
    messaging.setSamplingParameters(patch_real_elems_s,0,1);
    messaging.setIterations(iterations_s);
    messaging.run();
+ #endif // POOMA_BENCHMARKS_MESSAGING_TULIP || POOMA_BENCHMARKS_MESSAGING_MPI
  
  #ifdef POOMA_BENCHMARKS_MESSAGING_MPI
    *mpiInform << "Finished messaging.run\n";


More information about the pooma-dev mailing list