7 #include <utils/logger.hpp>
13 #if ENABLE_MULTITHREADING && ENABLE_OPENMP
16 #if ENABLE_MULTITHREADING && ENABLE_MPI
20 _INITIALIZE_EASYLOGGINGPP
22 int main(
int argc,
char *argv[]) {
23 #if ENABLE_MULTITHREADING && ENABLE_MPI
24 MPI::Init(argc, argv);
25 int rank = MPI::COMM_WORLD.Get_rank();
28 const uint32_t num_clusters = 512;
31 LINFO << simple_dataset;
33 std::stringstream index_output_file;
34 index_output_file << simple_dataset.
location() <<
"/index/" << num_clusters <<
".index";
37 for(uint32_t i=0; i<3; i++) {
38 std::shared_ptr<InvertedIndex::MatchResults> matches =
40 LINFO <<
"Query " << i <<
": " << *matches;
42 #if ENABLE_MULTITHREADING && ENABLE_MPI