OLD | NEW |
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- | 1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- |
2 import sys | 2 import sys |
3 import subprocess | 3 import subprocess |
4 | 4 |
5 from waflib import Options | 5 from waflib import Options |
6 from waflib.Errors import WafError | 6 from waflib.Errors import WafError |
7 | 7 |
8 def configure(conf): | 8 def configure(conf): |
9 if Options.options.enable_mpi: | 9 if Options.options.enable_mpi: |
10 # try to detect openmpi installation | 10 # try to detect openmpi installation |
(...skipping 18 matching lines...) Expand all Loading... |
29 conf.report_optional_feature("mpi", "MPI Support", False, 'mpic++ no
t found') | 29 conf.report_optional_feature("mpi", "MPI Support", False, 'mpic++ no
t found') |
30 else: | 30 else: |
31 conf.report_optional_feature("mpi", "MPI Support", False, 'option --enab
le-mpi not selected') | 31 conf.report_optional_feature("mpi", "MPI Support", False, 'option --enab
le-mpi not selected') |
32 | 32 |
33 | 33 |
34 def build(bld): | 34 def build(bld): |
35 env = bld.env | 35 env = bld.env |
36 sim = bld.create_ns3_module('mpi', ['core', 'network']) | 36 sim = bld.create_ns3_module('mpi', ['core', 'network']) |
37 sim.source = [ | 37 sim.source = [ |
38 'model/distributed-simulator-impl.cc', | 38 'model/distributed-simulator-impl.cc', |
39 'model/mpi-interface.cc', | 39 'model/granted-time-window-mpi-interface.cc', |
40 'model/mpi-receiver.cc', | 40 'model/mpi-receiver.cc', |
| 41 'model/null-message-simulator-impl.cc', |
| 42 'model/null-message-mpi-interface.cc', |
| 43 'model/remote-channel-bundle.cc', |
| 44 'model/remote-channel-bundle-manager.cc', |
| 45 'model/mpi-interface.cc',· |
41 ] | 46 ] |
42 | 47 |
43 headers = bld(features='ns3header') | 48 headers = bld(features='ns3header') |
44 headers.module = 'mpi' | 49 headers.module = 'mpi' |
45 headers.source = [ | 50 headers.source = [ |
46 'model/distributed-simulator-impl.h', | 51 'model/mpi-receiver.h', |
47 'model/mpi-interface.h', | 52 'model/mpi-interface.h', |
48 'model/mpi-receiver.h', | 53 'model/parallel-communication-interface.h', |
49 ] | 54 ] |
50 | 55 |
51 if env['ENABLE_MPI']: | 56 if env['ENABLE_MPI']: |
52 sim.use.append('MPI') | 57 sim.use.append('MPI') |
53 | 58 |
54 if bld.env['ENABLE_EXAMPLES']: | 59 if bld.env['ENABLE_EXAMPLES']: |
55 bld.recurse('examples') | 60 bld.recurse('examples') |
56 ······ | 61 ······ |
57 bld.ns3_python_bindings() | 62 bld.ns3_python_bindings() |
OLD | NEW |