• Click to hide sidebar Click to show sidebar
  • 并行 - 课程笔记

    Course notes about Parallel Computing

    SIMD

    运算操作及运算数数据类型一致

    SIMD Types:

    featuresMMXSSEAVX[/2]AVX512
    vector size(bit)64128256512
    data types(bit)8,16,32int: 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:

    1
    
    gcc -march=native
    

    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.