SIMD
运算操作及运算数数据类型一致
SIMD Types:
features | MMX | SSE | AVX[/2] | AVX512 |
---|---|---|---|---|
vector size(bit) | 64 | 128 | 256 | 512 |
data types(bit) | 8,16,32 | int: 8,16,32,64 float: 32,64 | int: 8,16,32,64 float: 32,64 | int: 32 float: 32,64 |
avoid mixing SSE and AVX
intel intrinsics compile:
|
|
icc generate report:
To generate a vectorization report, use the qopt-report-phase=vec compiler options together with qopt-report=1 or qopt-report=2.