Gromacs
2021.4
|
#include "gmxpre.h"
#include "prepare_detection.h"
#include "config.h"
#include <cstdio>
#include <chrono>
#include <thread>
#include <vector>
#include "architecture.h"
Defines routine for activating potentially deactivated cores so they can be detected.
The use of std::thread makes for brittle interaction with std library headers. Its caller also handles GPU detection and allocation of device-specific data structures. This is more manageable when separated into two distinct translation units.
Functions | |
static void | gmx::spinUpCore () |
Utility that does dummy computing for max 2 seconds to spin up cores. More... | |
void | gmx::hardwareTopologyPrepareDetection () |
Prepare the system before hardware topology detection. More... | |