diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-09-04 02:06:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-09-04 02:06:00 +0000 |
commit | 6d596885a8a98fd050a16e3584d25f128d82cd68 (patch) | |
tree | 7ad37974d3535242375656ed3285161c182c5e6b /Carpet/CarpetLib/src/data.cc | |
parent | 91295d2b515b078b624994b18e7a894f3d21e892 (diff) |
CarpetLib: Collect more timing information
Extend the CarpetLib timers so that they also count the number of
bytes transmitted in addition to the wall time.
darcs-hash:20060904020649-dae7b-7a18c2fbe2de09d662b4154a3ae2e553ad57c12b.gz
Diffstat (limited to 'Carpet/CarpetLib/src/data.cc')
-rw-r--r-- | Carpet/CarpetLib/src/data.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc index 8b12ea4cc..ae4249048 100644 --- a/Carpet/CarpetLib/src/data.cc +++ b/Carpet/CarpetLib/src/data.cc @@ -165,7 +165,7 @@ void data<T>::change_processor_recv (comm_state& state, MPI_Irecv (_memory->storage(0), _size, dist::datatype(dummy), proc(), tag, dist::comm(), &request); - wtime_irecv.stop(); + wtime_irecv.stop(_size * sizeof(T)); if (use_waitall) { state.requests.push_back (request); } @@ -217,7 +217,7 @@ void data<T>::change_processor_send (comm_state& state, MPI_Isend (_memory->storage(0), _size, dist::datatype(dummy), newproc, tag, dist::comm(), &request); - wtime_isend.stop(); + wtime_isend.stop(_size * sizeof(T)); if (use_waitall) { state.requests.push_back (request); } |