You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exercise_2/3rdparty/colmap-dev/lib/FLANN/mpi/flann_mpi_server.cpp

27 lines
520 B

#include <boost/mpi.hpp>
#include <FLANN/mpi/server.h>
#include <stdio.h>
#include <time.h>
int main(int argc, char* argv[])
{
boost::mpi::environment env(argc, argv);
try {
if (argc != 4) {
std::cout << "Usage: " << argv[0] << " <file> <dataset> <port>\n";
return 1;
}
flann::mpi::Server<flann::L2<float> > server(argv[1], argv[2], std::atoi(argv[3]),
flann::KDTreeIndexParams(4));
server.run();
}
catch (std::exception& e) {
std::cerr << "Exception: " << e.what() << "\n";
}
return 0;
}