Input Stream Types | Output Stream Types |
---|---|
input_stream<int8>
|
output_stream<int8>
|
input_stream<int16>
|
output_stream<int16>
|
input_stream<int32>
|
output_stream<int32>
|
input_stream<int64>
|
output_stream<int64>
|
input_stream<uint8>
|
output_stream<uint8>
|
input_stream<uint16>
|
output_stream<uint16>
|
input_stream<uint32>
|
output_stream<uint32>
|
input_stream<uint64>
|
output_stream<uint64>
|
input_stream<cint16>
|
output_stream<cint16>
|
input_stream<cint32>
|
output_stream<cint32>
|
input_stream<acc48>
|
output_stream<acc48>
|
input_stream<cacc48>
|
output_stream<cacc48>
|
input_stream<acc80>
|
output_stream_acc80
|
input_stream<cacc80>
|
output_stream<cacc80>
|
input_stream<accfloat>
|
output_stream<accfloat>
|
input_stream<caccfloat>
|
output_stream<caccfloat>
|
input_stream<float>
|
output_stream<float>
|
input_stream<cfloat>
|
output_stream<cfloat>
|
Each of the data types in the table can be read or written from the AI Engine as either scalars or in vector groups. However, there are certain restrictions on valid groupings based on the bus data width supported on the AI Engine to programmable logic interface ports or through the stream-switch network. The valid combinations for AI Engine kernels are vector bundles totaling up to 32-bits or 128-bits. The accumulator data types are only used to specify cascade-stream connections between adjacent AI Engines. Its valid groupings are based on the 384-bit wide cascade channel between two processors.
Note: To use these data
types, it is necessary to use
#include
<adf.h>
in the kernel source file.