Community
cancel
Showing results for 
Search instead for 
Did you mean: 
zhou_y_1
Beginner
149 Views

why MKL doesn't use the SIMD?

I have a program a.out build with MKL. I exec different command:

1. 

export MKL_ENABLE_INSTRUCTIONS=AVX2;export MKL_NUM_THREADS=1;export MKL_DYNAMIC=TRUE;export OMP_NUM_THREADS=1;amplxe-cl -c hpc-performance ./a.out

The FPU Utilization is 0.0%

2.

export MKL_ENABLE_INSTRUCTIONS=AVX2;export MKL_NUM_THREADS=2;export MKL_DYNAMIC=TRUE;export OMP_NUM_THREADS=2;amplxe-cl -c hpc-performance ./a.out

The FPU Utilization is 0.6%

FP Instruction Mix 

    % of Packed FP Instr.: 100.0%

        % of 256-bit: 100.0%

3. export MKL_ENABLE_INSTRUCTIONS=AVX2;export MKL_NUM_THREADS=2;export MKL_DYNAMIC=TRUE;export OMP_NUM_THREADS=2;amplxe-cl -c hpc-performance taskset -c 1,2 ./a.out

 

The FPU Utilization is 0.0%

4. export MKL_ENABLE_INSTRUCTIONS=AVX2;export MKL_NUM_THREADS=2;export MKL_DYNAMIC=TRUE;export OMP_NUM_THREADS=2;amplxe-cl -c hpc-performance taskset -c 1,2,3,4,5,6 ./a.out

 

The FPU Utilization is 1.3%

FP Instruction Mix

    % of Packed FP Instr.: 85.7%

          % of 256-bit: 85.7%

    % of Scalar FP Instr.: 14.3%

 

I wonder the behavior of MKL?

0 Kudos
0 Replies
Reply