|
1 | 1 | testSuite = [ 'examples', 'jacobi3d' ] |
2 | 2 |
|
3 | | -# Handling distributed engine options |
4 | 3 | if distributedEngine == 'mpi' |
5 | 4 | TaskRDistributedCppFlag = '-D_TASKR_DISTRIBUTED_ENGINE_MPI' |
| 5 | + |
6 | 6 | mpirunExecutable = HiCRProject.get_variable('mpirunExecutable') |
7 | | -elif distributedEngine == 'lpf' |
8 | | - TaskRDistributedCppFlag = '-D_TASKR_DISTRIBUTED_ENGINE_LPF' |
9 | | - lpfrunExecutable = HiCRProject.get_variable('lpfrunExecutable') |
10 | | -elif distributedEngine == 'none' |
11 | | - TaskRDistributedCppFlag = '-D_TASKR_DISTRIBUTED_ENGINE_NONE' |
12 | | -endif |
13 | 7 |
|
14 | | -if distributedEngine == 'mpi' |
15 | 8 | if 'boost' in get_option('executionStateType') and 'pthreads' in get_option('processingUnitType') |
16 | 9 | threading = executable('threading', [ 'source/pthreads.cpp', 'source/grid.cpp' ], dependencies: [ TaskRBuildDep ], cpp_args: [ TaskRDistributedCppFlag ] ) |
| 10 | + |
17 | 11 | if get_option('buildTests') |
18 | 12 | test('threading', mpirunExecutable, args : [ '-n', '2', '--oversubscribe', threading.full_path(), '-px', '1', '-py', '1', '-pz', '2', '-lx', '1', '-ly', '2', '-lz', '2', '-n', '64', '-i', '10'], suite: testSuite, workdir: threading.path() + '.p' ) |
19 | 13 | endif |
20 | 14 | endif |
21 | 15 |
|
22 | | - # nOS-V backend with MPI not yet supported (we run without mpirun) |
23 | 16 | if 'nosv' in get_option('executionStateType') and 'nosv' in get_option('processingUnitType') |
24 | 17 | nosv = executable('nosv', [ 'source/nosv.cpp', 'source/grid.cpp' ], dependencies: [ TaskRBuildDep ], cpp_args: [ TaskRDistributedCppFlag ] ) |
25 | | - |
| 18 | + |
26 | 19 | if get_option('buildTests') |
27 | | - test('nosv', nosv, args : [ '-n', '64', '-i', '10' ], is_parallel : false, suite: testSuite, workdir: nosv.path() + '.p' ) |
| 20 | + test('nosv', mpirunExecutable, args : [ '-n', '2', '--oversubscribe', nosv.full_path(), '-px', '1', '-py', '1', '-pz', '2', '-lx', '1', '-ly', '2', '-lz', '2', '-n', '64', '-i', '10'], is_parallel : false, suite: testSuite, workdir: nosv.path() + '.p' ) |
28 | 21 | endif |
29 | 22 | endif |
30 | 23 |
|
31 | 24 | elif distributedEngine == 'lpf' |
| 25 | + TaskRDistributedCppFlag = '-D_TASKR_DISTRIBUTED_ENGINE_LPF' |
| 26 | + |
| 27 | + lpfrunExecutable = HiCRProject.get_variable('lpfrunExecutable') |
| 28 | + |
32 | 29 | if 'boost' in get_option('executionStateType') and 'pthreads' in get_option('processingUnitType') |
33 | 30 | threading = executable('threading', [ 'source/pthreads.cpp', 'source/grid.cpp' ], dependencies: [ TaskRBuildDep ], cpp_args: [ TaskRDistributedCppFlag ] ) |
| 31 | + |
34 | 32 | if get_option('buildTests') |
35 | | - test('threading', lpfrunExecutable, args : [ '-n', '2', threading.full_path(), '-px', '1', '-py', '1', '-pz', '2', '-lx', '1', '-ly', '2', '-lz', '2', '-n', '64', '-i', '10'], suite: testSuite, workdir: threading.path() + '.p' ) |
| 33 | + test('threading', lpfrunExecutable, args : [ '-n', '2', '-engine', 'zero', threading.full_path(), '-px', '1', '-py', '1', '-pz', '2', '-lx', '1', '-ly', '2', '-lz', '2', '-n', '64', '-i', '10'], suite: testSuite, workdir: threading.path() + '.p' ) |
36 | 34 | endif |
37 | 35 | endif |
38 | 36 |
|
39 | | - # nOS-V backend with LPF not yet supported (we run without lpfrun) |
40 | | - # if 'nosv' in get_option('executionStateType') and 'nosv' in get_option('processingUnitType') |
41 | | - # nosv = executable('nosv', [ 'source/nosv.cpp', 'source/grid.cpp' ], dependencies: [ TaskRBuildDep ], cpp_args: [ TaskRDistributedCppFlag ] ) |
| 37 | + if 'nosv' in get_option('executionStateType') and 'nosv' in get_option('processingUnitType') |
| 38 | + nosv = executable('nosv', [ 'source/nosv.cpp', 'source/grid.cpp' ], dependencies: [ TaskRBuildDep ], cpp_args: [ TaskRDistributedCppFlag ] ) |
| 39 | + |
| 40 | + if get_option('buildTests') |
| 41 | + test('nosv', lpfrunExecutable, args : [ '-n', '2', '-engine', 'zero', nosv.full_path(), '-px', '1', '-py', '1', '-pz', '2', '-lx', '1', '-ly', '2', '-lz', '2', '-n', '64', '-i', '10'], is_parallel : false, suite: testSuite, workdir: nosv.path() + '.p' ) |
| 42 | + endif |
| 43 | + endif |
| 44 | +elif distributedEngine == 'none' # Atm these are segfaulting (TODO fix!) |
| 45 | + TaskRDistributedCppFlag = '-D_TASKR_DISTRIBUTED_ENGINE_NONE' |
42 | 46 |
|
43 | | - # if get_option('buildTests') |
44 | | - # test('nosv', nosv, args : [ '-n', '64', '-i', '10' ], is_parallel : false, suite: testSuite, workdir: nosv.path() + '.p' ) |
45 | | - # endif |
46 | | - # endif |
47 | | -elif distributedEngine == 'none' # Atm these segfault |
48 | 47 | if 'boost' in get_option('executionStateType') and 'pthreads' in get_option('processingUnitType') |
49 | 48 | threading = executable('threading', [ 'source/pthreads.cpp', 'source/grid.cpp' ], dependencies: [ TaskRBuildDep ], cpp_args: [ TaskRDistributedCppFlag ] ) |
50 | 49 |
|
|
0 commit comments