Gromacs
2024.4
|
#include "gmxpre.h"
#include "gromacs/gpu_utils/device_stream_manager.h"
#include "config.h"
#include <initializer_list>
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/mdtypes/simulation_workload.h"
#include "gromacs/utility/enumerationhelpers.h"
#include "testutils/test_hardware_environment.h"
Tests GPU stream manager.
Classes | |
class | gmx::test::anonymous_namespace{device_stream_manager.cpp}::DeviceStreamManagerTest |
Test fixture. More... | |
Functions | |
void | gmx::test::anonymous_namespace{device_stream_manager.cpp}::expectValidStreams (DeviceStreamManager *manager, std::initializer_list< DeviceStreamType > types) |
Helper function to implement readable testing. | |
void | gmx::test::anonymous_namespace{device_stream_manager.cpp}::expectInvalidStreams (DeviceStreamManager *manager, std::initializer_list< DeviceStreamType > types) |
Helper function to implement readable testing. | |
Variables | |
const EnumerationArray < DeviceStreamType, std::string > | gmx::test::anonymous_namespace{device_stream_manager.cpp}::c_deviceStreamNames |
GPU device stream names for outputs. More... | |
constexpr bool | gmx::test::anonymous_namespace{device_stream_manager.cpp}::c_canExpectValidStreams = (GMX_GPU != 0) |
Non-GPU builds return nullptr instead of streams, so we have to expect that in such build configurations. | |