Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::test::TestDevice Class Reference

#include <testutils/include/testutils/test_device.h>

Description

A structure to describe a hardware context that persists over the lifetime of the test binary.

Public Member Functions

std::string description () const
 Returns a human-readable context description line.
 
int id () const
 Returns a numerical ID for the device.
 
const DeviceInformationdeviceInfo () const
 Returns the device info pointer.
 
const DeviceContext & deviceContext () const
 Get the device context.
 
const DeviceStreamdeviceStream () const
 Get the device stream.
 
void activate () const
 Set the device as currently active.
 
 TestDevice (const char *description, const DeviceInformation &deviceInfo)
 Creates the device context and stream for tests on the GPU.
 
 ~TestDevice ()
 Destructor.
 

The documentation for this class was generated from the following files: