ZC API: Cleaning up ZC API examples 59/5159/3
authorNitin Bhat <nbhat4@illinois.edu>
Fri, 3 May 2019 16:50:30 +0000 (11:50 -0500)
committerNitin Bhat <nbhat4@illinois.edu>
Tue, 7 May 2019 14:40:27 +0000 (09:40 -0500)
commitfc65a1c33ea443af95ce89533043d39b949feeed
treea6f6ec5751bcd4a341b064e8b47ae2bbeb445f8a
parent62f5f4ca649fe4dd25f8ce9eb8c0fa3b35e35482
ZC API: Cleaning up ZC API examples

Included major changes:
1. Matching new [] allocations with delete [] deallocations
2. Using CkDataMsg parameterized callback only when it is needed
3. Deleting CkDataMsg *m after receiving it in the callback

Change-Id: Ia298ebe500f4f9a2c8240898a807ed4b62f9cf56
25 files changed:
benchmarks/charm++/zerocopy/entry_method_bcast_api/reg/ping_all/ping_all.C
benchmarks/charm++/zerocopy/entry_method_bcast_api/reg/ping_all/ping_all.ci
benchmarks/charm++/zerocopy/entry_method_bcast_post_api/reg/ping_all/ping_all.C
benchmarks/charm++/zerocopy/entry_method_bcast_post_api/reg/ping_all/ping_all.ci
benchmarks/charm++/zerocopy/entry_method_bcast_post_api/unreg/ping_all/ping_all.C
benchmarks/charm++/zerocopy/entry_method_bcast_post_api/unreg/ping_all/ping_all.ci
examples/charm++/zerocopy/direct_api/prereg/simple_put/simple_put.C
examples/charm++/zerocopy/direct_api/reg/get_put_pingpong/get_put_pingpong.C
examples/charm++/zerocopy/direct_api/reg/simple_get/simple_get.C
examples/charm++/zerocopy/direct_api/reg/simple_put/simple_put.C
examples/charm++/zerocopy/direct_api/unreg/get_put_pingpong/get_put_pingpong.C
examples/charm++/zerocopy/direct_api/unreg/simple_put/simple_put.C
examples/charm++/zerocopy/entry_method_api/prereg/simpleZeroCopy/simpleZeroCopy.C
examples/charm++/zerocopy/entry_method_api/reg/simpleZeroCopy/simpleZeroCopy.C
examples/charm++/zerocopy/entry_method_api/unreg/simpleZeroCopy/simpleZeroCopy.C
examples/charm++/zerocopy/entry_method_api/unreg/stencil3d/stencil3d.C
examples/charm++/zerocopy/entry_method_bcast_api/prereg/simpleBcast/simpleBcast.C
examples/charm++/zerocopy/entry_method_bcast_api/prereg/simpleBcast/simpleBcast.ci
examples/charm++/zerocopy/entry_method_bcast_api/reg/simpleBcast/simpleBcast.C
examples/charm++/zerocopy/entry_method_bcast_api/reg/simpleBcast/simpleBcast.ci
examples/charm++/zerocopy/entry_method_bcast_api/unreg/simpleBcast/simpleBcast.C
examples/charm++/zerocopy/entry_method_bcast_post_api/reg/simpleBcastPost/simpleBcastPost.C
examples/charm++/zerocopy/entry_method_bcast_post_api/reg/simpleBcastPost/simpleBcastPost.ci
examples/charm++/zerocopy/entry_method_post_api/reg/simpleZeroCopy/simpleZeroCopy.C
examples/charm++/zerocopy/entry_method_post_api/unreg/simpleZeroCopy/simpleZeroCopy.C