Gromacs
2019.1
|
#include <map>
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/ewald/pme-gpu-program.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 that persists over the lifetime of the test binary - an abstraction over PmeGpuProgram with a human-readable string. More... | |
class | gmx::test::PmeTestEnvironment |
This class performs one-time test initialization (enumerating the hardware) More... | |
Typedefs | |
typedef std::vector < std::unique_ptr < TestHardwareContext > > | gmx::test::TestHardwareContexts |
A container of handles to hardware contexts. | |
Enumerations | |
enum | gmx::test::CodePath { CPU, GPU } |
Hardware code path being tested. | |
Functions | |
const char * | gmx::test::codePathToString (CodePath codePath) |
Return a string useful for human-readable messages describing a codePath . | |
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... | |