| Loop Id: 13 | Module: kmeans-icpx-O3 | Source: main.cpp:59-70 | Coverage: 3.69% |
|---|
| Loop Id: 13 | Module: kmeans-icpx-O3 | Source: main.cpp:59-70 | Coverage: 3.69% |
|---|
0x4037b0 LEA 0x1(%R8),%R9 |
0x4037b4 CMP %RCX,%R8 |
0x4037b7 MOV %R9,%R8 |
0x4037ba JE 4038d5 |
0x4037c0 LEA (%R8,%RAX,1),%R9 |
0x4037c4 MOV %R9,%R10 |
0x4037c7 SAL $0x4,%R10 |
0x4037cb VMOVUPD (%R15,%R10,1),%XMM1 |
0x4037d1 VMOVAPD %XMM0,%XMM2 |
0x4037d5 CMP $0x4,%EDX |
0x4037d8 JAE 403820 |
0x4037da CMP %RDX,%RSI |
0x4037dd JAE 4037b0 |
0x4037df MOV %RBX,%R10 |
0x4037e2 MOV %RSI,%R11 |
0x4037e5 JMP 4037fc |
(14) 0x4037f0 INC %R11 |
(14) 0x4037f3 ADD $0x10,%R10 |
(14) 0x4037f7 CMP %R11,%RDX |
(14) 0x4037fa JE 4037b0 |
(14) 0x4037fc VSUBPD (%R10),%XMM1,%XMM3 |
(14) 0x403801 VMULPD %XMM3,%XMM3,%XMM3 |
(14) 0x403805 VSHUFPD $0x1,%XMM3,%XMM3,%XMM4 |
(14) 0x40380a VADDSD %XMM3,%XMM4,%XMM3 |
(14) 0x40380e VUCOMISD %XMM3,%XMM2 |
(14) 0x403812 JBE 4037f0 |
(14) 0x403814 MOV %R11D,(%R14,%R9,4) |
(14) 0x403818 VMOVAPD %XMM3,%XMM2 |
(14) 0x40381c JMP 4037f0 |
0x403820 MOV %RDI,%R10 |
0x403823 XOR %R11D,%R11D |
0x403826 VMOVAPD %XMM0,%XMM2 |
0x40382a JMP 40383d |
(15) 0x403830 ADD $0x4,%R11 |
(15) 0x403834 ADD $0x40,%R10 |
(15) 0x403838 CMP %R11,%RSI |
(15) 0x40383b JE 4037da |
(15) 0x40383d VSUBPD -0x30(%R10),%XMM1,%XMM3 |
(15) 0x403843 VMULPD %XMM3,%XMM3,%XMM3 |
(15) 0x403847 VSHUFPD $0x1,%XMM3,%XMM3,%XMM4 |
(15) 0x40384c VADDSD %XMM3,%XMM4,%XMM3 |
(15) 0x403850 VUCOMISD %XMM3,%XMM2 |
(15) 0x403854 JBE 40385e |
(15) 0x403856 MOV %R11D,(%R14,%R9,4) |
(15) 0x40385a VMOVAPD %XMM3,%XMM2 |
(15) 0x40385e VSUBPD -0x20(%R10),%XMM1,%XMM3 |
(15) 0x403864 VMULPD %XMM3,%XMM3,%XMM3 |
(15) 0x403868 VSHUFPD $0x1,%XMM3,%XMM3,%XMM4 |
(15) 0x40386d VADDSD %XMM3,%XMM4,%XMM3 |
(15) 0x403871 VUCOMISD %XMM3,%XMM2 |
(15) 0x403875 JBE 403883 |
(15) 0x403877 LEA 0x1(%R11),%R13D |
(15) 0x40387b MOV %R13D,(%R14,%R9,4) |
(15) 0x40387f VMOVAPD %XMM3,%XMM2 |
(15) 0x403883 VSUBPD -0x10(%R10),%XMM1,%XMM3 |
(15) 0x403889 VMULPD %XMM3,%XMM3,%XMM3 |
(15) 0x40388d VSHUFPD $0x1,%XMM3,%XMM3,%XMM4 |
(15) 0x403892 VADDSD %XMM3,%XMM4,%XMM3 |
(15) 0x403896 VUCOMISD %XMM3,%XMM2 |
(15) 0x40389a JBE 4038a8 |
(15) 0x40389c LEA 0x2(%R11),%R13D |
(15) 0x4038a0 MOV %R13D,(%R14,%R9,4) |
(15) 0x4038a4 VMOVAPD %XMM3,%XMM2 |
(15) 0x4038a8 VSUBPD (%R10),%XMM1,%XMM3 |
(15) 0x4038ad VMULPD %XMM3,%XMM3,%XMM3 |
(15) 0x4038b1 VSHUFPD $0x1,%XMM3,%XMM3,%XMM4 |
(15) 0x4038b6 VADDSD %XMM3,%XMM4,%XMM3 |
(15) 0x4038ba VUCOMISD %XMM3,%XMM2 |
(15) 0x4038be JBE 403830 |
(15) 0x4038c4 LEA 0x3(%R11),%R13D |
(15) 0x4038c8 MOV %R13D,(%R14,%R9,4) |
(15) 0x4038cc VMOVAPD %XMM3,%XMM2 |
(15) 0x4038d0 JMP 403830 |
/home/fmusial/KMEANS_Benchmarks/kmeans/main.cpp: 59 - 70 |
-------------------------------------------------------------------------------- |
59: for (int i = 0; i < n; ++i) { |
60: double optimal_dist = DBL_MAX; |
61: for (int j = 0; j < k; ++j) { |
62: double dist = |
63: (points[i].x - centroids[j].x) * (points[i].x - centroids[j].x) + |
64: (points[i].y - centroids[j].y) * (points[i].y - centroids[j].y); |
65: if (dist < optimal_dist) { |
66: optimal_dist = dist; |
67: assignment[i] = j; |
68: } |
69: } |
70: } |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►98.34+ | __kmp_invoke_microtask | libiomp5.so | |
| ○ | __kmp_serial_fork_call(ident*,[...] | libiomp5.so | |
| ○ | __kmp_fork_call | libiomp5.so | |
| ○ | __kmpc_fork_call | libiomp5.so | |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:58 | kmeans-icpx-O3 |
| ○ | main | main.cpp:125 | kmeans-icpx-O3 |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-icpx-O3 |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►93.89+ | __kmp_invoke_microtask | libiomp5.so | |
| ○ | __kmp_invoke_task_func | libiomp5.so |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►98.20+ | __kmp_invoke_microtask | libiomp5.so | |
| ○ | __kmp_invoke_task_func | libiomp5.so |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►99.29+ | __kmp_invoke_microtask | libiomp5.so | |
| ○ | __kmp_invoke_task_func | libiomp5.so |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►100.00+ | __kmp_invoke_microtask | libiomp5.so | |
| ○ | __kmp_invoke_task_func | libiomp5.so |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►99.63+ | __kmp_invoke_microtask | libiomp5.so | |
| ○ | __kmp_invoke_task_func | libiomp5.so |
| min | med | avg | max |
|---|---|---|---|
| Percentile Index | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 |
|---|---|---|---|---|---|---|---|---|---|---|
| Value |
| min | med | avg | max |
|---|---|---|---|
| Percentile Index | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 |
|---|---|---|---|---|---|---|---|---|---|---|
| Value |
| Path / |
| Metric | Value |
|---|---|
| CQA speedup if no scalar integer | 2.86 |
| CQA speedup if FP arith vectorized | 1.00 |
| CQA speedup if fully vectorized | 13.33 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.67 |
| Bottlenecks | micro-operation queue, |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .extracted] |
| Source | main.cpp:59-59,main.cpp:63-63,main.cpp:67-67,main.cpp:70-70 |
| Source loop unroll info | NA |
| Source loop unroll confidence level | NA |
| Unroll/vectorization loop type | NA |
| Unroll factor | NA |
| CQA cycles | 5.00 |
| CQA cycles if no scalar integer | 1.75 |
| CQA cycles if FP arith vectorized | 5.00 |
| CQA cycles if fully vectorized | 0.38 |
| Front-end cycles | 5.00 |
| P0 cycles | 3.00 |
| P1 cycles | 2.50 |
| P2 cycles | 0.50 |
| P3 cycles | 0.50 |
| P4 cycles | 0.00 |
| P5 cycles | 2.50 |
| P6 cycles | 3.00 |
| P7 cycles | 0.00 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | NA |
| FE+BE cycles (UFS) | 5.11 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 20.00 |
| Nb uops | 20.00 |
| Nb loads | 1.00 |
| Nb stores | 0.00 |
| Nb stack references | 0.00 |
| FLOP/cycle | 0.00 |
| Nb FLOP add-sub | 0.00 |
| Nb FLOP mul | 0.00 |
| Nb FLOP fma | 0.00 |
| Nb FLOP div | 0.00 |
| Nb FLOP rcp | 0.00 |
| Nb FLOP sqrt | 0.00 |
| Nb FLOP rsqrt | 0.00 |
| Bytes/cycle | 3.20 |
| Bytes prefetched | 0.00 |
| Bytes loaded | 16.00 |
| Bytes stored | 0.00 |
| Stride 0 | NA |
| Stride 1 | NA |
| Stride n | NA |
| Stride unknown | NA |
| Stride indirect | NA |
| Vectorization ratio all | 42.86 |
| Vectorization ratio load | 100.00 |
| Vectorization ratio store | NA |
| Vectorization ratio mul | NA |
| Vectorization ratio add_sub | NA |
| Vectorization ratio fma | NA |
| Vectorization ratio div_sqrt | NA |
| Vectorization ratio other | 33.33 |
| Vector-efficiency ratio all | 16.07 |
| Vector-efficiency ratio load | 25.00 |
| Vector-efficiency ratio store | NA |
| Vector-efficiency ratio mul | NA |
| Vector-efficiency ratio add_sub | NA |
| Vector-efficiency ratio fma | NA |
| Vector-efficiency ratio div_sqrt | NA |
| Vector-efficiency ratio other | 14.58 |
| Metric | Value |
|---|---|
| CQA speedup if no scalar integer | 2.86 |
| CQA speedup if FP arith vectorized | 1.00 |
| CQA speedup if fully vectorized | 13.33 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.67 |
| Bottlenecks | micro-operation queue, |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .extracted] |
| Source | main.cpp:59-59,main.cpp:63-63,main.cpp:67-67,main.cpp:70-70 |
| Source loop unroll info | NA |
| Source loop unroll confidence level | NA |
| Unroll/vectorization loop type | NA |
| Unroll factor | NA |
| CQA cycles | 5.00 |
| CQA cycles if no scalar integer | 1.75 |
| CQA cycles if FP arith vectorized | 5.00 |
| CQA cycles if fully vectorized | 0.38 |
| Front-end cycles | 5.00 |
| P0 cycles | 3.00 |
| P1 cycles | 2.50 |
| P2 cycles | 0.50 |
| P3 cycles | 0.50 |
| P4 cycles | 0.00 |
| P5 cycles | 2.50 |
| P6 cycles | 3.00 |
| P7 cycles | 0.00 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | NA |
| FE+BE cycles (UFS) | 5.11 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 20.00 |
| Nb uops | 20.00 |
| Nb loads | 1.00 |
| Nb stores | 0.00 |
| Nb stack references | 0.00 |
| FLOP/cycle | 0.00 |
| Nb FLOP add-sub | 0.00 |
| Nb FLOP mul | 0.00 |
| Nb FLOP fma | 0.00 |
| Nb FLOP div | 0.00 |
| Nb FLOP rcp | 0.00 |
| Nb FLOP sqrt | 0.00 |
| Nb FLOP rsqrt | 0.00 |
| Bytes/cycle | 3.20 |
| Bytes prefetched | 0.00 |
| Bytes loaded | 16.00 |
| Bytes stored | 0.00 |
| Stride 0 | NA |
| Stride 1 | NA |
| Stride n | NA |
| Stride unknown | NA |
| Stride indirect | NA |
| Vectorization ratio all | 42.86 |
| Vectorization ratio load | 100.00 |
| Vectorization ratio store | NA |
| Vectorization ratio mul | NA |
| Vectorization ratio add_sub | NA |
| Vectorization ratio fma | NA |
| Vectorization ratio div_sqrt | NA |
| Vectorization ratio other | 33.33 |
| Vector-efficiency ratio all | 16.07 |
| Vector-efficiency ratio load | 25.00 |
| Vector-efficiency ratio store | NA |
| Vector-efficiency ratio mul | NA |
| Vector-efficiency ratio add_sub | NA |
| Vector-efficiency ratio fma | NA |
| Vector-efficiency ratio div_sqrt | NA |
| Vector-efficiency ratio other | 14.58 |
| Path / |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .extracted] |
| Source file and lines | main.cpp:59-70 |
| Module | kmeans-icpx-O3 |
| nb instructions | 20 |
| nb uops | 20 |
| loop length | 67 |
| used x86 registers | 11 |
| used mmx registers | 0 |
| used xmm registers | 3 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0 |
| micro-operation queue | 5.00 cycles |
| front end | 5.00 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 3.00 | 2.50 | 0.50 | 0.50 | 0.00 | 2.50 | 3.00 | 0.00 |
| cycles | 3.00 | 2.50 | 0.50 | 0.50 | 0.00 | 2.50 | 3.00 | 0.00 |
| Cycles executing div or sqrt instructions | NA |
| FE+BE cycles | 5.11 |
| Stall cycles | 0.00 |
| Front-end | 5.00 |
| Dispatch | 3.00 |
| Overall L1 | 5.00 |
| all | 0% |
| load | NA (no load vectorizable/vectorized instructions) |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 0% |
| all | 100% |
| load | 100% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 100% |
| all | 42% |
| load | 100% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 33% |
| all | 9% |
| load | NA (no load vectorizable/vectorized instructions) |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 9% |
| all | 25% |
| load | 25% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 25% |
| all | 16% |
| load | 25% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 14% |
| Instruction | Nb FU | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | Latency | Recip. throughput | Vectorization |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LEA 0x1(%R8),%R9 | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| CMP %RCX,%R8 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (12.5%) |
| MOV %R9,%R8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| JE 4038d5 <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0x1e5> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| LEA (%R8,%RAX,1),%R9 | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| MOV %R9,%R10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| SAL $0x4,%R10 | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| VMOVUPD (%R15,%R10,1),%XMM1 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | vect (25.0%) |
| VMOVAPD %XMM0,%XMM2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| CMP $0x4,%EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JAE 403820 <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0x130> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| CMP %RDX,%RSI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| JAE 4037b0 <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0xc0> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %RBX,%R10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| MOV %RSI,%R11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (12.5%) |
| JMP 4037fc <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0x10c> | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1-2 | N/A |
| MOV %RDI,%R10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| XOR %R11D,%R11D | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| VMOVAPD %XMM0,%XMM2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| JMP 40383d <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0x14d> | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1-2 | N/A |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .extracted] |
| Source file and lines | main.cpp:59-70 |
| Module | kmeans-icpx-O3 |
| nb instructions | 20 |
| nb uops | 20 |
| loop length | 67 |
| used x86 registers | 11 |
| used mmx registers | 0 |
| used xmm registers | 3 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0 |
| micro-operation queue | 5.00 cycles |
| front end | 5.00 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 3.00 | 2.50 | 0.50 | 0.50 | 0.00 | 2.50 | 3.00 | 0.00 |
| cycles | 3.00 | 2.50 | 0.50 | 0.50 | 0.00 | 2.50 | 3.00 | 0.00 |
| Cycles executing div or sqrt instructions | NA |
| FE+BE cycles | 5.11 |
| Stall cycles | 0.00 |
| Front-end | 5.00 |
| Dispatch | 3.00 |
| Overall L1 | 5.00 |
| all | 0% |
| load | NA (no load vectorizable/vectorized instructions) |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 0% |
| all | 100% |
| load | 100% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 100% |
| all | 42% |
| load | 100% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 33% |
| all | 9% |
| load | NA (no load vectorizable/vectorized instructions) |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 9% |
| all | 25% |
| load | 25% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 25% |
| all | 16% |
| load | 25% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | NA (no add-sub vectorizable/vectorized instructions) |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 14% |
| Instruction | Nb FU | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | Latency | Recip. throughput | Vectorization |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LEA 0x1(%R8),%R9 | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| CMP %RCX,%R8 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (12.5%) |
| MOV %R9,%R8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| JE 4038d5 <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0x1e5> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| LEA (%R8,%RAX,1),%R9 | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| MOV %R9,%R10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| SAL $0x4,%R10 | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| VMOVUPD (%R15,%R10,1),%XMM1 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | vect (25.0%) |
| VMOVAPD %XMM0,%XMM2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| CMP $0x4,%EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JAE 403820 <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0x130> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| CMP %RDX,%RSI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| JAE 4037b0 <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0xc0> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %RBX,%R10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| MOV %RSI,%R11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (12.5%) |
| JMP 4037fc <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0x10c> | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1-2 | N/A |
| MOV %RDI,%R10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| XOR %R11D,%R11D | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| VMOVAPD %XMM0,%XMM2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| JMP 40383d <_Z7k_meansiP7point_tS0_PiS0_ii.extracted+0x14d> | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1-2 | N/A |
| Run run_1_thread | Number processes: 1Number nodes: 1Number processes per node: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: closeOMP_NUM_THREADS: 1 |
|---|---|
| Run run_2_threads | Number processes: 1Number nodes: 1Number processes per node: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: closeOMP_NUM_THREADS: 2 |
| Run run_4_threads | Number processes: 1Number nodes: 1Number processes per node: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: closeOMP_NUM_THREADS: 4 |
| Run run_8_threads | Number processes: 1Number nodes: 1Number processes per node: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: closeOMP_NUM_THREADS: 8 |
| Run run_16_threads | Number processes: 1Number nodes: 1Number processes per node: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: closeOMP_NUM_THREADS: 16 |
| Run run_26_threads | Number processes: 1Number nodes: 1Number processes per node: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: closeOMP_NUM_THREADS: 26 |
| (run_1_thread) Efficiency | (run_1_thread) Potential Speed-Up (%) | (run_2_threads) Efficiency | (run_2_threads) Potential Speed-Up (%) | (run_4_threads) Efficiency | (run_4_threads) Potential Speed-Up (%) | (run_8_threads) Efficiency | (run_8_threads) Potential Speed-Up (%) | (run_16_threads) Efficiency | (run_16_threads) Potential Speed-Up (%) | (run_26_threads) Efficiency | (run_26_threads) Potential Speed-Up (%) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 0.95 | 0.19 | 0.88 | 0.42 | 0.82 | 0.53 | 0.73 | 0.67 | 0.67 | 0.65 |
| Run | Number of threads | Efficiency (ideal is 1) | Speedup | Ideal Speedup | Time (s) | Coverage (%) |
|---|---|---|---|---|---|---|
| run_1_thread | 1 | 1 | 1 | 1 | 5.7200002670288 | 3.688419342041 |
| run_2_threads | 2 | 0.95 | 1.89 | 2 | 3.0649995803833 | 3.6324982643127 |
| run_4_threads | 4 | 0.88 | 3.52 | 4 | 1.5700001716614 | 3.4495985507965 |
| run_8_threads | 8 | 0.82 | 6.57 | 8 | 0.74499994516373 | 2.9849953651428 |
| run_16_threads | 16 | 0.73 | 11.63 | 16 | 0.42999997735023 | 2.4405837059021 |
| run_26_threads | 26 | 0.67 | 17.4 | 26 | 0.25999999046326 | 1.9664614200592 |
