Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(21)

Issue 109068: Ns-3 MPI Distributed Simulation

Can't Edit
Can't Publish+Mail
Start Review
Created:
5 months, 3 weeks ago by jpelkey
Modified:
2 days, 5 hours ago
CC:
riley_ece.gatech.edu, ns-3-reviews_googlegroups.com
SVN Base:
Visibility:
Public.

Patch Set 1

Patch Set 2 : MPI for ns-3.7

Total comments: 50

Patch Set 3 : Updates after Faker's comments

Total comments: 77

Patch Set 4 : Updates after comments

Patch Set 5 : New API for buffer

Total comments: 10

Patch Set 6 : Moving rank into uid

Total comments: 1

Patch Set 7 : Applied Gustavo's patch for building

Patch Set 8 : Moved MPI dependencies to src/mpi

Patch Set 9 : Move packet deserialization

Patch Set 10 : Fixed packet-metadata-test

Patch Set 11 : Merge with ns-3.7

Patch Set 12 : Update python bindings

Patch Set 13 : Update release notes and changes

Patch Set 14 : checkstyle.py on added files

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M CHANGES.html View 1 chunk 65 lines 0 comments Download
M RELEASE_NOTES View 1 chunk 14 lines 0 comments Download
M bindings/python/apidefs/gcc-ILP32/ns3_module_common.py View 12 13 chunks 172 lines 0 comments Download
A bindings/python/apidefs/gcc-ILP32/ns3_module_mpi.py View 1 chunk 361 lines 0 comments Download
M bindings/python/apidefs/gcc-ILP32/ns3_module_point_to_point.py View 4 chunks 75 lines 0 comments Download
M bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py View 4 chunks 52 lines 0 comments Download
M bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py View 4 chunks 66 lines 0 comments Download
M bindings/python/apidefs/gcc-LP64/ns3_module_common.py View 12 13 chunks 172 lines 0 comments Download
A bindings/python/apidefs/gcc-LP64/ns3_module_mpi.py View 1 chunk 361 lines 0 comments Download
M bindings/python/apidefs/gcc-LP64/ns3_module_point_to_point.py View 4 chunks 75 lines 0 comments Download
M bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py View 4 chunks 52 lines 0 comments Download
M bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py View 4 chunks 66 lines 0 comments Download
A examples/mpi/README View 2 3 4 5 6 7 1 chunk 56 lines 0 comments Download
A examples/mpi/nms-udp-nix.cc View 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk 631 lines 0 comments Download
A examples/mpi/simple-distributed.cc View 4 5 6 7 8 9 10 11 12 13 1 chunk 261 lines 0 comments Download
A examples/mpi/waf View 1 chunk 7 lines 0 comments Download
A examples/mpi/wscript View 1 chunk 16 lines 0 comments Download
M src/common/buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk 144 lines 0 comments Download
M src/common/buffer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk 34 lines 0 comments Download
M src/common/nix-vector.cc View 5 6 7 8 9 10 11 1 chunk 160 lines 0 comments Download
M src/common/nix-vector.h View 5 6 7 8 9 10 11 1 chunk 32 lines 0 comments Download
R src/common/packet-metadata-test.cc View 9 10 11 2 chunks 88 lines 0 comments Download
M src/common/packet-metadata.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks 362 lines 0 comments Download
M src/common/packet-metadata.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks 111 lines 0 comments Download
M src/common/packet.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks 342 lines 0 comments Download
M src/common/packet.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks 92 lines 0 comments Download
M src/devices/point-to-point/point-to-point-channel.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk 35 lines 0 comments Download
M src/devices/point-to-point/point-to-point-channel.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks 49 lines 0 comments Download
A src/devices/point-to-point/point-to-point-remote-channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk 86 lines 0 comments Download
A src/devices/point-to-point/point-to-point-remote-channel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk 50 lines 0 comments Download
M src/devices/point-to-point/wscript View 2 3 4 5 6 7 8 9 10 11 2 chunks 20 lines 0 comments Download
M src/helper/point-to-point-helper.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks 62 lines 0 comments Download
M src/helper/point-to-point-helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk 12 lines 0 comments Download
A src/mpi/distributed-simulator-impl.cc View 8 9 10 11 12 13 1 chunk 527 lines 0 comments Download
A src/mpi/distributed-simulator-impl.h View 8 9 10 11 12 13 1 chunk 130 lines 0 comments Download
A src/mpi/mpi-interface.cc View 8 9 10 11 12 13 1 chunk 293 lines 0 comments Download
A src/mpi/mpi-interface.h View 8 9 10 11 12 13 1 chunk 91 lines 0 comments Download
A src/mpi/waf View 1 chunk 8 lines 0 comments Download
A src/mpi/wscript View 8 9 10 11 1 chunk 29 lines 0 comments Download
M src/routing/global-routing/global-route-manager-impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks 23 lines 0 comments Download
M src/simulator/default-simulator-impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk 18 lines 0 comments Download
M src/simulator/default-simulator-impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk 12 lines 0 comments Download
M src/simulator/realtime-simulator-impl.cc View 4 5 6 7 8 9 10 11 1 chunk 18 lines 0 comments Download
M src/simulator/realtime-simulator-impl.h View 4 5 6 7 8 9 10 11 1 chunk 12 lines 0 comments Download
M src/simulator/simulator-impl.h View 4 5 6 7 8 9 10 11 1 chunk 12 lines 0 comments Download
M src/simulator/simulator.cc View 1 2 3 6 7 8 9 10 11 1 chunk 18 lines 0 comments Download
M src/simulator/simulator.h View 1 2 3 6 7 8 9 10 11 1 chunk 17 lines 0 comments Download
M src/wscript View 8 9 10 11 1 chunk 12 lines 0 comments Download
M wscript View 1 2 3 4 5 6 7 8 9 10 11 2 chunks 43 lines 0 comments Download

Messages

Total messages: 16
faker.moatamri
http://codereview.appspot.com/109068/diff/2034/2035 File examples/mpi/Makefile (right): http://codereview.appspot.com/109068/diff/2034/2035#newcode4 examples/mpi/Makefile:4: # Change the NS3BASE below to the path of ...
3 months ago
jpelkey
Here are the updates after Faker's comments. http://codereview.appspot.com/109068/diff/2034/2035 File examples/mpi/Makefile (right): http://codereview.appspot.com/109068/diff/2034/2035#newcode4 examples/mpi/Makefile:4: # Change ...
3 months ago
faker.moatamri
I hope that I answered all your questions. If you need more clarifications please don't ...
3 months ago
craigdo
Mostly small stuff, but the bit about putting mpi-specific stuff in generic classes bothers me ...
2 months, 4 weeks ago
Tom Henderson
summary of main questions/comments: - it seemed to me that Packet/PacketMetadata might not need to ...
2 months, 3 weeks ago
Mathieu Lacage
I have two main general comments: 1) It's really not cool that my previous comments ...
2 months, 3 weeks ago
jpelkey
Hi all, Sorry for the delay after the comments. We were working on switching the ...
2 months ago
craigdo1
> -- stability issues. Craig sent an email about his concerns regarding > stability in ...
2 months ago
riley_ece.gatech.edu
It means that the net devices that directly communicate (sharing a single WIFI or CSMA ...
2 months ago
craigdo1
Rearranged responses a little for clarity ... > >> -- stability issues. Craig sent an ...
2 months ago
tomh_tomh.org
joshpelkey@gmail.com wrote: > Hi all, > > Sorry for the delay after the comments. We ...
2 months ago
Mathieu Lacage
josh, george, Thanks a lot for taking time to address so thoroughly all previous comments: ...
1 month, 3 weeks ago
jpelkey
We've changed uid in packet-metadata to a uint64_t. The rank is now stored in the ...
1 month, 3 weeks ago
jpelkey
http://codereview.appspot.com/109068/diff/19005/20012 File src/common/packet.cc (right): http://codereview.appspot.com/109068/diff/19005/20012#newcode173 src/common/packet.cc:173: m_metadata (((uint64_t)mpiRank << 32) & uid, size), Logic typo ...
1 month, 3 weeks ago
Mathieu Lacage
On Tue, Dec 15, 2009 at 6:10 PM, <joshpelkey@gmail.com> wrote: > > I am not ...
1 month, 3 weeks ago
riley_gatech.edu
1 month, 3 weeks ago
>
>
> Presumably, you would create the new buffer from a serialized buffer  
> in this case with something like this:
>
> Ptr<Packet> p = Create<Packet> ();
> p->Deserialize (buffer, size);
>
> In which case you can make Deserialize read the uid from the buffer  
> and ignore the one it got from the constructor.
This won't work either, as we don't want UID's "disappearing".   
Ignoring the one automatically
assigned in the constructor uses up one UID.  That process would  
create normal packets
2, 3, 5, 6, ... etc. What happened to 4?  It got used up when  
receiving the MPI packet.

George
>
> Of course, you could also do this:
>
> Ptr<Packet> p = Create<Packet> (buffer, size,  
> someMagicArgumentToCallTheRightConstructor);
>
> in which case Deserialize is not needed anymore as public API.
>
> You would need to create a special constructor with an extra  
> argument of the right type to make sure that the above calls your  
> new constructor.
>
>
> Mathieu
> -- 
> Mathieu Lacage <mathieu.lacage@gmail.com>

Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r511