Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions
testhardwarecontexts.h File Reference
#include <map>
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/ewald/pme_gpu_program.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 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...