Gromacs
2026.0-dev-20241121-c76fa1e
|
#include <testutils/include/testutils/test_device.h>
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 DeviceInformation & | deviceInfo () const |
Returns the device info pointer. | |
const DeviceContext & | deviceContext () const |
Get the device context, particularly useful to activate the device. | |
const DeviceStream & | deviceStream () 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. | |