11testSuite = [ ' examples' , ' jacobi3d' ]
22
3- if distributedEngine == ' mpi'
3+ if ' mpi' in distributedEngines
44 TaskRDistributedCppFlag = ' -D_TASKR_DISTRIBUTED_ENGINE_MPI'
55
66 mpirunExecutable = HiCRProject.get_variable (' mpirunExecutable' )
77
88 if ' boost' in get_option (' executionStateType' ) and ' pthreads' in get_option (' processingUnitType' )
9- threading = executable (' threading' , [ ' source/pthreads.cpp' , ' source/grid.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ TaskRDistributedCppFlag ] )
9+ threading = executable (' mpi- threading' , [ ' source/pthreads.cpp' , ' source/grid.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ TaskRDistributedCppFlag ] )
1010
1111 if get_option (' buildTests' )
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' )
12+ test (' mpi- 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 + [ ' mpi ' ] , workdir : threading.full_path () + ' .p' )
1313 endif
1414 endif
1515
1616 # TODO: deadlocking (even for mpirun -n 1)
1717 if ' nosv' in get_option (' executionStateType' ) and ' nosv' in get_option (' processingUnitType' )
18- nosv = executable (' nosv' , [ ' source/nosv.cpp' , ' source/grid.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ TaskRDistributedCppFlag ] )
18+ nosv = executable (' mpi- nosv' , [ ' source/nosv.cpp' , ' source/grid.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ TaskRDistributedCppFlag ] )
1919
2020 if get_option (' buildTests' )
21- 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' )
21+ test (' mpi- 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 + [ ' mpi ' ] , workdir : nosv.full_path () + ' .p' )
2222 endif
2323 endif
24+ endif
2425
25- elif distributedEngine == ' lpf'
26+ if ' lpf' in distributedEngines
2627 TaskRDistributedCppFlag = ' -D_TASKR_DISTRIBUTED_ENGINE_LPF'
2728
2829 mpirunExecutable = find_program (' mpirun' , ' /usr/bin/mpirun' , ' /usr/local/bin/mpirun' , required : true )
2930
3031 if ' boost' in get_option (' executionStateType' ) and ' pthreads' in get_option (' processingUnitType' )
31- threading = executable (' threading' , [ ' source/pthreads.cpp' , ' source/grid.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ TaskRDistributedCppFlag ] )
32+ threading = executable (' lpf- threading' , [ ' source/pthreads.cpp' , ' source/grid.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ TaskRDistributedCppFlag ] )
3233
3334 if get_option (' buildTests' )
34- test (' threading' , mpirunExecutable, args : [ ' -n' , ' 2' , ' --oversubscribe' , ' env' , ' LPF_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' )
35+ test (' lpf- threading' , mpirunExecutable, args : [ ' -n' , ' 2' , ' --oversubscribe' , ' env' , ' LPF_ENGINE=zero' , threading.full_path(), ' -px' , ' 1' , ' -py' , ' 1' , ' -pz' , ' 2' , ' -lx' , ' 1' , ' -ly' , ' 2' , ' -lz' , ' 2' , ' -n' , ' 64' , ' -i' , ' 10' ], suite : testSuite + [ ' lpf ' ] , workdir : threading.full_path () + ' .p' )
3536 endif
3637 endif
3738
3839
3940 if ' nosv' in get_option (' executionStateType' ) and ' nosv' in get_option (' processingUnitType' )
40- nosv = executable (' nosv' , [ ' source/nosv.cpp' , ' source/grid.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ TaskRDistributedCppFlag ] )
41+ nosv = executable (' lpf- nosv' , [ ' source/nosv.cpp' , ' source/grid.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ TaskRDistributedCppFlag ] )
4142
4243 if get_option (' buildTests' )
43- test (' nosv' , mpirunExecutable, args : [ ' -n' , ' 2' , ' --oversubscribe' , ' env' , ' LPF_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' )
44+ test (' lpf- nosv' , mpirunExecutable, args : [ ' -n' , ' 2' , ' --oversubscribe' , ' env' , ' LPF_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 + [ ' lpf ' ] , workdir : nosv.full_path () + ' .p' )
4445 endif
4546 endif
4647endif
0 commit comments