Skip to content

Doesn't compile with MPI support enabled.

If MPI is enabled in CMakeLists.txt gives an error:

/home/idavydov/work/fastcodeml/fastcodeml/HighLevelCoordinator.cpp: In member function ‘bool HighLevelCoordinator::startWork(Forest&, const CmdLine&)’:
/home/idavydov/work/fastcodeml/fastcodeml/HighLevelCoordinator.cpp:459:76: error: no matching function for call to ‘Forest::getBranchRange(const CmdLine&, size_t&, size_t&)’
     bool do_all = aForest.getBranchRange(aCmdLine, branch_start, branch_end);
                                                                            ^
/home/idavydov/work/fastcodeml/fastcodeml/HighLevelCoordinator.cpp:459:76: note: candidate is:
In file included from /home/idavydov/work/fastcodeml/fastcodeml/HighLevelCoordinator.h:5:0,
                 from /home/idavydov/work/fastcodeml/fastcodeml/HighLevelCoordinator.cpp:22:
/home/idavydov/work/fastcodeml/fastcodeml/Forest.h:97:8: note: bool Forest::getBranchRange(const CmdLine&, size_t&, size_t&, std::set<int>&, std::set<int>&) const
   bool getBranchRange(const CmdLine &aCmdLine, size_t &aBranchStart,
        ^
/home/idavydov/work/fastcodeml/fastcodeml/Forest.h:97:8: note:   candidate expects 5 arguments, 3 provided
make[2]: *** [CMakeFiles/fast.dir/HighLevelCoordinator.cpp.o] Error 1
make[1]: *** [CMakeFiles/fast.dir/all] Error 2
make: *** [all] Error 2

tested in commit: 8ab98271