CPU Hog removal

This MR removes a CPU hog (100%) on the MPI threads. Using thallium::thread::sleep produces it, we changed to a self::thread::wait_for to remove the extra CPU usage.

Merge request reports

Loading
+2 −1
Changes for src/master.cpp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -124,7 +124,8 @@ master_server::mpi_listener_ult() {
        auto msg = world.iprobe();

        if(!msg) {
            thallium::thread::self().sleep(m_network_engine, 10);
            std::this_thread::sleep_for(10ms);
            //thallium::thread::self().sleep(m_network_engine, 10);
            continue;
        }

Loading