Gromacs  2018.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions
testhardwarecontexts.h File Reference
#include <list>
#include <map>
#include <gtest/gtest.h>
#include "gromacs/hardware/detecthardware.h"
#include "gromacs/hardware/gpu_hw_info.h"
+ Include dependency graph for testhardwarecontexts.h:
+ This graph shows which files directly or indirectly include this file:

Description

Describes test environment class which performs hardware enumeration for unit tests.

Author
Aleksei Iupinov a.yup.nosp@m.inov.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

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...