diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-04 19:22:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-04 19:22:00 +0000 |
commit | 26e9cf4082ad26f9bc37d2794fef8673a23c8ea3 (patch) | |
tree | 5383567034d155923b06f1ec6567dbf3958674d9 /Carpet/CarpetLib/src/gdata.cc | |
parent | 06069c8ec6f31a3ff3dcd202f81668093b2d118e (diff) |
CarpetLib: Add timer copy_into_sendbuffer_memcpy in gdata
darcs-hash:20070204192255-dae7b-6088220061f07d64a163966855064f5311c1a028.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.cc')
-rw-r--r-- | Carpet/CarpetLib/src/gdata.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/gdata.cc b/Carpet/CarpetLib/src/gdata.cc index 268db5971..d20ed17ef 100644 --- a/Carpet/CarpetLib/src/gdata.cc +++ b/Carpet/CarpetLib/src/gdata.cc @@ -321,6 +321,8 @@ void gdata::copy_into_sendbuffer (comm_state& state, ivect const items = (box.upper() - box.lower()) / box.stride() + 1; ivect const offs = (box.lower() - ext.lower()) / ext.stride(); + static Timer copy ("copy_into_sendbuffer_memcpy"); + copy.start (); assert (dim == 3); for (int k = 0; k < items[2]; k++) { for (int j = 0; j < items[1]; j++) { @@ -332,6 +334,7 @@ void gdata::copy_into_sendbuffer (comm_state& state, procbuf.sendbuf += datatypesize * items[0]; } } + copy.stop (datatypesize * prod (items)); if (not combine_sends) { // post the send if the buffer is full |