Change reduction wrapper callbacks to use CkReductionTarget
authorAaron Becker <akbecker@gmail.com>
Tue, 1 Feb 2011 21:19:54 +0000 (15:19 -0600)
committerAaron Becker <akbecker@gmail.com>
Tue, 1 Feb 2011 21:19:54 +0000 (15:19 -0600)
examples/charm++/typed_reduction/TypedReduction.cc

index a5cd1721c8398b40ead58d2de847420f0f56ea3d..767ece06a5e07810fd4df25cd05289d0220fd018 100644 (file)
@@ -25,7 +25,7 @@ void Driver::typed_done(int result)
 {
     CkPrintf("Typed Sum: %d\n", result);
     CkCallback *cb = new CkCallback(
-            CkIndex_Driver::typed_array_done_redn_wrapper(NULL), thisProxy);
+            CkReductionTarget(Driver, typed_array_done), thisProxy);
     w.ckSetReductionClient(cb);
     w.reduce_array();
 }
@@ -36,7 +36,7 @@ void Driver::typed_array_done(int* results, int n)
     for (int i=0; i<n; ++i) CkPrintf("%d ", results[i]);
     CkPrintf("]\n");
     CkCallback *cb = new CkCallback(
-            CkIndex_Driver::typed_array_done2_redn_wrapper(NULL), thisProxy);
+            CkReductionTarget(Driver, typed_array_done2), thisProxy);
     w.ckSetReductionClient(cb);
     w.reduce_array();
 }