Gromacs
2018.2
|
#include <list>
#include <map>
#include <gtest/gtest.h>
#include "gromacs/hardware/detecthardware.h"
#include "gromacs/hardware/gpu_hw_info.h"
Describes test environment class which performs hardware enumeration for unit tests.
Classes | |
struct | gmx::test::TestHardwareContext |
A structure to describe a hardware context - an abstraction over gmx_device_info_t with a human-readable string. TODO: currently this does not know which CodePath it belongs too. It probably should! That would save us one loop in all the PME tests. More... | |
class | gmx::test::PmeTestEnvironment |
This class performs one-time test initialization (enumerating the hardware) More... | |
Typedefs | |
typedef std::list < TestHardwareContext > | gmx::test::TestHardwareContexts |
A list of hardware contexts. | |
Enumerations | |
enum | gmx::test::CodePath { CPU, CUDA } |
Hardware code path being tested. | |
Functions | |
const PmeTestEnvironment * | gmx::test::getPmeTestEnv () |
Get the test environment. | |
void | gmx::test::callAddGlobalTestEnvironment () |
This constructs the test environment during setup of the unit test so that they can use the hardware context. More... | |