[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
RFA: Permit Compiling MessageMain.cpp
- To: pooma-dev@xxxxxxxxxxxxxxxxxxxxxx
- Subject: RFA: Permit Compiling MessageMain.cpp
- From: Jeffrey Oldham <oldham@xxxxxxxxxxxxxxxx>
- Date: Wed, 14 Mar 2001 22:50:03 -0800
The attached patch permits compiling
benchmarks/Messaging/MessageMain.cpp on a sequential machine without
MPI. Is it acceptable to add this patch to the Pooma CVS tree?
(I will be away for the next four days.)
Thanks,
Jeffrey D. Oldham
oldham@xxxxxxxxxxxxxxxx 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";
|