Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPI #96

Open
yejian-uestc opened this issue Dec 5, 2019 · 3 comments
Open

MPI #96

yejian-uestc opened this issue Dec 5, 2019 · 3 comments

Comments

@yejian-uestc
Copy link

  • ns3 version (cat $NS3FOLDER/VERSION or the commit hash): ns3.26
  • DCE version (git log|head -n1): 1.9
  • Operating system/version (lsb_release -a): ubuntu 14
  • Libc version (ldd -v):
  • compiler version (gcc -v/g++ -v/clang -v/clang++ -v):

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
Copy link
Member

teto commented Dec 5, 2019

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

@yejian-uestc
Copy link
Author

@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
Copy link
Member

teto commented Apr 24, 2020

probably ns3 was compiledwithout mpi support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants