Gromacs  2025.0-dev-20241014-f673b97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
device_stream_manager.cpp File Reference
#include "gmxpre.h"
#include "gromacs/gpu_utils/device_stream_manager.h"
#include "config.h"
#include <initializer_list>
#include <memory>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/mdtypes/simulation_workload.h"
#include "gromacs/utility/enumerationhelpers.h"
#include "testutils/test_device.h"
#include "testutils/test_hardware_environment.h"
+ Include dependency graph for device_stream_manager.cpp:

Description

Tests GPU stream manager.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Artem Zhmurov zhmur.nosp@m.ov@g.nosp@m.mail..nosp@m.com

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.