direct-code-execution / ns-3-dce

Run real programs in the discrete time simulator ns3
http://www.nsnam.org/projects/direct-code-execution/
75 stars 46 forks source link

MPI #96

Open yejian-uestc opened 4 years ago

yejian-uestc commented 4 years ago

Description of the problem

trying to run dec-mpi-udp.cc, but there are some problem

commond: ~/workspace/dce/source/ns-3-dce$ mpirun -np 2 ./waf --run dce-mpi-udp erro: program 'dce-mpi-udp' not found

so how can I use MPI in DCE ?

teto commented 4 years ago

if you look at wscript, you'll see you need to enable mpi:
opt.add_option('--enable-mpi',....

yejian-uestc commented 4 years ago

@teto Thanks for your reply !

I just run these command: ./waf distclen ./waf configure --with-ns3=../../build --enable-mpi ./waf build

but when I run this: mpirun -np 2 ./waf --run dce-mpi-udp

I got these erro: msg="Can't use distributed simulator without MPI compiled in", file=../src/mpi/model/granted-time-window-mpi-interface.cc, line=185

teto commented 4 years ago

probably ns3 was compiledwithout mpi support.