Commit a362795c authored by Ramon Nou's avatar Ramon Nou
Browse files

Merge branch 'rnou/cpu_hog' into 'main'

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.

See merge request !29
parents 61693b62 89a2f56d
Loading
Loading
Loading
Loading
Loading
+2 −1
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;
        }