Gromacs
2024.4
|
#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. | |
const DeviceStream & | deviceStream () 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. | |