Gromacs  2026.0-dev-20241121-c76fa1e
 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, particularly useful to activate the device.
 
const DeviceStreamdeviceStream () const
 Get the device stream.
 
 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: