Gromacs  2024.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
device_stream_ocl.cpp File Reference
#include "gmxpre.h"
#include "gromacs/gpu_utils/device_context.h"
#include "gromacs/gpu_utils/device_stream.h"
#include "gromacs/gpu_utils/gputraits_ocl.h"
#include "gromacs/gpu_utils/oclutils.h"
#include "gromacs/hardware/device_information.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/stringutil.h"
+ Include dependency graph for device_stream_ocl.cpp:

Description

Implements the DeviceStream for OpenCL.

Author
Artem Zhmurov zhmur.nosp@m.ov@g.nosp@m.mail..nosp@m.com

Functions

void issueClFlushInStream (const DeviceStream &deviceStream)
 Helper function to flush the commands in OpenCL. No-op in other backends. More...
 

Function Documentation

void issueClFlushInStream ( const DeviceStream deviceStream)

Helper function to flush the commands in OpenCL. No-op in other backends.

Based on the section 5.13 of the OpenCL 1.2 spec (section 5.15 in OpenCL 3.0 spec), a flush is needed in the stream after marking an event in it in order to be able to sync with the event from another stream.