Poplar and PopLibs
DataStreamType.hpp
1// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
2
3#ifndef poplar_DataStreamType_hpp
4#define poplar_DataStreamType_hpp
5
6namespace poplar {
7
14enum class DataStreamType {
19};
20
21bool isDeviceToHost(DataStreamType type);
22bool isHostToDevice(DataStreamType type);
23bool isRemoteBuffer(DataStreamType type);
24
25} // namespace poplar
26
27#endif // poplar_DataStreamType_hpp
Poplar classes and functions.
Definition: ArrayRef.hpp:14
DataStreamType
An enumeration to represent the different types of DataStream or stream components of a RemoteBuffer.
Definition: DataStreamType.hpp:14
@ HostToDeviceFIFO
A DataStream from host to device.
@ DeviceToHostBuffer
A stream from device to host in a remote buffer.
@ HostToDeviceBuffer
A stream from host to device in a remote buffer.
@ DeviceToHostFIFO
A DataStream from device to host.