examples: add diagnostic printout
authorAaron Becker <akbecker@gmail.com>
Wed, 22 Aug 2012 22:59:32 +0000 (17:59 -0500)
committerAaron Becker <akbecker@gmail.com>
Wed, 22 Aug 2012 22:59:32 +0000 (17:59 -0500)
examples/charm++/sync_square/sync_square.cc

index 1b45164742059b2d83636f99e38f187430d4510d..176f2bb57bb2e59324d8acd7cc63e0ad706ddc99 100644 (file)
@@ -13,6 +13,7 @@ void Driver::get_square(int value)
 {
     int_message* square_message = s.square(value);
     int square = square_message->value;
+    CkPrintf("%d^2 = %d\n", value, square);
     CkFreeMsg(square_message);
     CkExit();
 }