#include "config.h"
#include <memory>
#include "gromacs/utility/classhelpers.h"
Enumeration describing the priority with which a stream operates.
Enumerator |
---|
High |
High-priority stream.
|
Normal |
Normal-priority stream.
|
Count |
Conventional termination of the enumeration.
|
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.