| Loop Id: 2 | Module: kmeans-gcc-O3-all | Source: main.cpp:72-79 | Coverage: 6.72% |
|---|
| Loop Id: 2 | Module: kmeans-gcc-O3-all | Source: main.cpp:72-79 | Coverage: 6.72% |
|---|
0x2aa0 VMOVSD (%RDI),%XMM5 |
0x2aa4 MOV %R8D,%EBX |
0x2aa7 MOV %R10,%R12 |
0x2aaa XOR %EAX,%EAX |
0x2aac VMOVAPD %XMM4,%XMM0 |
0x2ab0 VMOVHPD 0x8(%RDI),%XMM5,%XMM3 |
0x2ab5 AND $0x3,%EBX |
0x2ab8 JE 2b4b |
0x2abe CMP $0x1,%EBX |
0x2ac1 JE 2b1a |
0x2ac3 CMP $0x2,%EBX |
0x2ac6 JE 2af2 |
0x2ac8 VSUBPD (%R10),%XMM3,%XMM1 |
0x2acd VMULPD %XMM1,%XMM1,%XMM6 |
0x2ad1 VUNPCKHPD %XMM6,%XMM6,%XMM2 |
0x2ad5 VADDPD %XMM6,%XMM2,%XMM7 |
0x2ad9 VCOMISD %XMM7,%XMM4 |
0x2add JBE 2ae9 |
0x2adf MOVL $0,(%RSI) |
0x2ae5 VMOVAPD %XMM7,%XMM0 |
0x2ae9 MOV $0x1,%EAX |
0x2aee LEA 0x10(%R10),%R12 |
0x2af2 VSUBPD (%R12),%XMM3,%XMM8 |
0x2af8 VMULPD %XMM8,%XMM8,%XMM9 |
0x2afd VUNPCKHPD %XMM9,%XMM9,%XMM10 |
0x2b02 VADDPD %XMM9,%XMM10,%XMM11 |
0x2b07 VCOMISD %XMM11,%XMM0 |
0x2b0c JBE 2b14 |
0x2b0e MOV %EAX,(%RSI) |
0x2b10 VMOVAPD %XMM11,%XMM0 |
0x2b14 INC %EAX |
0x2b16 ADD $0x10,%R12 |
0x2b1a VSUBPD (%R12),%XMM3,%XMM12 |
0x2b20 VMULPD %XMM12,%XMM12,%XMM13 |
0x2b25 VUNPCKHPD %XMM13,%XMM13,%XMM14 |
0x2b2a VADDPD %XMM13,%XMM14,%XMM15 |
0x2b2f VCOMISD %XMM15,%XMM0 |
0x2b34 JBE 2b3c |
0x2b36 MOV %EAX,(%RSI) |
0x2b38 VMOVAPD %XMM15,%XMM0 |
0x2b3c INC %EAX |
0x2b3e ADD $0x10,%R12 |
0x2b42 CMP %EAX,%R8D |
0x2b45 JE 2be9 |
(1) 0x2b4b VSUBPD (%R12),%XMM3,%XMM5 |
(1) 0x2b51 VMULPD %XMM5,%XMM5,%XMM1 |
(1) 0x2b55 VUNPCKHPD %XMM1,%XMM1,%XMM6 |
(1) 0x2b59 VADDPD %XMM1,%XMM6,%XMM2 |
(1) 0x2b5d VCOMISD %XMM2,%XMM0 |
(1) 0x2b61 JBE 2b69 |
(1) 0x2b63 MOV %EAX,(%RSI) |
(1) 0x2b65 VMOVAPD %XMM2,%XMM0 |
(1) 0x2b69 VSUBPD 0x10(%R12),%XMM3,%XMM7 |
(1) 0x2b70 INC %EAX |
(1) 0x2b72 LEA 0x10(%R12),%RCX |
(1) 0x2b77 VMULPD %XMM7,%XMM7,%XMM8 |
(1) 0x2b7b VUNPCKHPD %XMM8,%XMM8,%XMM9 |
(1) 0x2b80 VADDPD %XMM8,%XMM9,%XMM10 |
(1) 0x2b85 VCOMISD %XMM10,%XMM0 |
(1) 0x2b8a JBE 2b92 |
(1) 0x2b8c MOV %EAX,(%RSI) |
(1) 0x2b8e VMOVAPD %XMM10,%XMM0 |
(1) 0x2b92 VSUBPD 0x10(%RCX),%XMM3,%XMM11 |
(1) 0x2b97 LEA 0x1(%RAX),%EDX |
(1) 0x2b9a VMULPD %XMM11,%XMM11,%XMM12 |
(1) 0x2b9f VUNPCKHPD %XMM12,%XMM12,%XMM13 |
(1) 0x2ba4 VADDPD %XMM12,%XMM13,%XMM14 |
(1) 0x2ba9 VCOMISD %XMM14,%XMM0 |
(1) 0x2bae JBE 2bb6 |
(1) 0x2bb0 MOV %EDX,(%RSI) |
(1) 0x2bb2 VMOVAPD %XMM14,%XMM0 |
(1) 0x2bb6 VSUBPD 0x20(%RCX),%XMM3,%XMM15 |
(1) 0x2bbb LEA 0x2(%RAX),%R11D |
(1) 0x2bbf VMULPD %XMM15,%XMM15,%XMM5 |
(1) 0x2bc4 VUNPCKHPD %XMM5,%XMM5,%XMM1 |
(1) 0x2bc8 VADDPD %XMM5,%XMM1,%XMM6 |
(1) 0x2bcc VCOMISD %XMM6,%XMM0 |
(1) 0x2bd0 JBE 2bd9 |
(1) 0x2bd2 MOV %R11D,(%RSI) |
(1) 0x2bd5 VMOVAPD %XMM6,%XMM0 |
(1) 0x2bd9 ADD $0x3,%EAX |
(1) 0x2bdc LEA 0x30(%RCX),%R12 |
(1) 0x2be0 CMP %EAX,%R8D |
(1) 0x2be3 JNE 2b4b |
0x2be9 ADD $0x10,%RDI |
0x2bed ADD $0x4,%RSI |
0x2bf1 CMP %RDI,%R9 |
0x2bf4 JNE 2aa0 |
/home/fmusial/KMEANS_Benchmarks/kmeans/main.cpp: 72 - 79 |
-------------------------------------------------------------------------------- |
72: double optimal_dist = DBL_MAX; |
73: for (int j = 0; j < k; ++j) { |
74: double dist = |
75: (points[i].x - centroids[j].x) * (points[i].x - centroids[j].x) + |
76: (points[i].y - centroids[j].y) * (points[i].y - centroids[j].y); |
77: if (dist < optimal_dist) { |
78: optimal_dist = dist; |
79: assignment[i] = j; |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►100.00+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:86 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:139 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:896 | kmeans-gcc-O3-all |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►52.49+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:86 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:139 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:896 | kmeans-gcc-O3-all |
| ►47.51+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►74.10+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►25.90+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:86 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:139 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:896 | kmeans-gcc-O3-all |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►87.78+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►12.22+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:86 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:139 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:896 | kmeans-gcc-O3-all |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►89.15+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►10.85+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:86 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:139 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:896 | kmeans-gcc-O3-all |
| 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 | 1.57 |
| CQA speedup if FP arith vectorized | 1.86 |
| CQA speedup if fully vectorized | 8.55 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.31 |
| Bottlenecks | micro-operation queue, |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] |
| Source | main.cpp:72-73,main.cpp:76-79 |
| Source loop unroll info | NA |
| Source loop unroll confidence level | NA |
| Unroll/vectorization loop type | NA |
| Unroll factor | NA |
| CQA cycles | 11.75 |
| CQA cycles if no scalar integer | 7.50 |
| CQA cycles if FP arith vectorized | 6.33 |
| CQA cycles if fully vectorized | 1.38 |
| Front-end cycles | 11.75 |
| P0 cycles | 9.00 |
| P1 cycles | 9.00 |
| P2 cycles | 2.83 |
| P3 cycles | 2.50 |
| P4 cycles | 3.00 |
| P5 cycles | 9.00 |
| P6 cycles | 9.00 |
| P7 cycles | 2.67 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | NA |
| FE+BE cycles (UFS) | 12.10 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 48.00 |
| Nb uops | 47.00 |
| Nb loads | 5.00 |
| Nb stores | 3.00 |
| Nb stack references | 0.00 |
| FLOP/cycle | 1.53 |
| Nb FLOP add-sub | 12.00 |
| Nb FLOP mul | 6.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 | 6.47 |
| Bytes prefetched | 0.00 |
| Bytes loaded | 64.00 |
| Bytes stored | 12.00 |
| Stride 0 | NA |
| Stride 1 | NA |
| Stride n | NA |
| Stride unknown | NA |
| Stride indirect | NA |
| Vectorization ratio all | 39.39 |
| Vectorization ratio load | 60.00 |
| Vectorization ratio store | 0.00 |
| Vectorization ratio mul | 100.00 |
| Vectorization ratio add_sub | 75.00 |
| Vectorization ratio fma | NA |
| Vectorization ratio div_sqrt | NA |
| Vectorization ratio other | 23.53 |
| Vector-efficiency ratio all | 15.15 |
| Vector-efficiency ratio load | 20.00 |
| Vector-efficiency ratio store | 6.25 |
| Vector-efficiency ratio mul | 25.00 |
| Vector-efficiency ratio add_sub | 20.31 |
| Vector-efficiency ratio fma | NA |
| Vector-efficiency ratio div_sqrt | NA |
| Vector-efficiency ratio other | 12.87 |
| Metric | Value |
|---|---|
| CQA speedup if no scalar integer | 1.57 |
| CQA speedup if FP arith vectorized | 1.86 |
| CQA speedup if fully vectorized | 8.55 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.31 |
| Bottlenecks | micro-operation queue, |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] |
| Source | main.cpp:72-73,main.cpp:76-79 |
| Source loop unroll info | NA |
| Source loop unroll confidence level | NA |
| Unroll/vectorization loop type | NA |
| Unroll factor | NA |
| CQA cycles | 11.75 |
| CQA cycles if no scalar integer | 7.50 |
| CQA cycles if FP arith vectorized | 6.33 |
| CQA cycles if fully vectorized | 1.38 |
| Front-end cycles | 11.75 |
| P0 cycles | 9.00 |
| P1 cycles | 9.00 |
| P2 cycles | 2.83 |
| P3 cycles | 2.50 |
| P4 cycles | 3.00 |
| P5 cycles | 9.00 |
| P6 cycles | 9.00 |
| P7 cycles | 2.67 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | NA |
| FE+BE cycles (UFS) | 12.10 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 48.00 |
| Nb uops | 47.00 |
| Nb loads | 5.00 |
| Nb stores | 3.00 |
| Nb stack references | 0.00 |
| FLOP/cycle | 1.53 |
| Nb FLOP add-sub | 12.00 |
| Nb FLOP mul | 6.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 | 6.47 |
| Bytes prefetched | 0.00 |
| Bytes loaded | 64.00 |
| Bytes stored | 12.00 |
| Stride 0 | NA |
| Stride 1 | NA |
| Stride n | NA |
| Stride unknown | NA |
| Stride indirect | NA |
| Vectorization ratio all | 39.39 |
| Vectorization ratio load | 60.00 |
| Vectorization ratio store | 0.00 |
| Vectorization ratio mul | 100.00 |
| Vectorization ratio add_sub | 75.00 |
| Vectorization ratio fma | NA |
| Vectorization ratio div_sqrt | NA |
| Vectorization ratio other | 23.53 |
| Vector-efficiency ratio all | 15.15 |
| Vector-efficiency ratio load | 20.00 |
| Vector-efficiency ratio store | 6.25 |
| Vector-efficiency ratio mul | 25.00 |
| Vector-efficiency ratio add_sub | 20.31 |
| Vector-efficiency ratio fma | NA |
| Vector-efficiency ratio div_sqrt | NA |
| Vector-efficiency ratio other | 12.87 |
| Path / |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] |
| Source file and lines | main.cpp:72-79 |
| Module | kmeans-gcc-O3-all |
| nb instructions | 48 |
| nb uops | 47 |
| loop length | 188 |
| used x86 registers | 8 |
| used mmx registers | 0 |
| used xmm registers | 16 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0 |
| ADD-SUB / MUL ratio | 2.00 |
| micro-operation queue | 11.75 cycles |
| front end | 11.75 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 9.00 | 9.00 | 2.83 | 2.50 | 3.00 | 9.00 | 9.00 | 2.67 |
| cycles | 9.00 | 9.00 | 2.83 | 2.50 | 3.00 | 9.00 | 9.00 | 2.67 |
| Cycles executing div or sqrt instructions | NA |
| FE+BE cycles | 12.10 |
| Stall cycles | 0.00 |
| Front-end | 11.75 |
| Dispatch | 9.00 |
| Overall L1 | 11.75 |
| all | 0% |
| load | NA (no load vectorizable/vectorized instructions) |
| store | 0% |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | 0% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 0% |
| all | 61% |
| load | 60% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 100% |
| add-sub | 100% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 40% |
| all | 39% |
| load | 60% |
| store | 0% |
| mul | 100% |
| add-sub | 75% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 23% |
| all | 6% |
| load | NA (no load vectorizable/vectorized instructions) |
| store | 6% |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | 6% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 6% |
| all | 20% |
| load | 20% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 25% |
| add-sub | 25% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 17% |
| all | 15% |
| load | 20% |
| store | 6% |
| mul | 25% |
| add-sub | 20% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 12% |
| Instruction | Nb FU | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | Latency | Recip. throughput | Vectorization |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VMOVSD (%RDI),%XMM5 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| MOV %R8D,%EBX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| MOV %R10,%R12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| XOR %EAX,%EAX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| VMOVAPD %XMM4,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| VMOVHPD 0x8(%RDI),%XMM5,%XMM3 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 1 | 0 | 0 | 4 | 1 | scal (12.5%) |
| AND $0x3,%EBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2b4b <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x12b> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| CMP $0x1,%EBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2b1a <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xfa> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| CMP $0x2,%EBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2af2 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xd2> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| VSUBPD (%R10),%XMM3,%XMM1 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VMULPD %XMM1,%XMM1,%XMM6 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VUNPCKHPD %XMM6,%XMM6,%XMM2 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | scal (12.5%) |
| VADDPD %XMM6,%XMM2,%XMM7 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VCOMISD %XMM7,%XMM4 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2ae9 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xc9> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOVL $0,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 2 | 1 | scal (6.3%) |
| VMOVAPD %XMM7,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| MOV $0x1,%EAX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| LEA 0x10(%R10),%R12 | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| VSUBPD (%R12),%XMM3,%XMM8 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VMULPD %XMM8,%XMM8,%XMM9 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VUNPCKHPD %XMM9,%XMM9,%XMM10 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | scal (12.5%) |
| VADDPD %XMM9,%XMM10,%XMM11 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VCOMISD %XMM11,%XMM0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2b14 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xf4> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %EAX,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | scal (6.3%) |
| VMOVAPD %XMM11,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| INC %EAX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| ADD $0x10,%R12 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| VSUBPD (%R12),%XMM3,%XMM12 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VMULPD %XMM12,%XMM12,%XMM13 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VUNPCKHPD %XMM13,%XMM13,%XMM14 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | scal (12.5%) |
| VADDPD %XMM13,%XMM14,%XMM15 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VCOMISD %XMM15,%XMM0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2b3c <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x11c> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %EAX,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | scal (6.3%) |
| VMOVAPD %XMM15,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| INC %EAX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| ADD $0x10,%R12 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| CMP %EAX,%R8D | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2be9 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x1c9> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| ADD $0x10,%RDI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| ADD $0x4,%RSI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| CMP %RDI,%R9 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| JNE 2aa0 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x80> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] |
| Source file and lines | main.cpp:72-79 |
| Module | kmeans-gcc-O3-all |
| nb instructions | 48 |
| nb uops | 47 |
| loop length | 188 |
| used x86 registers | 8 |
| used mmx registers | 0 |
| used xmm registers | 16 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0 |
| ADD-SUB / MUL ratio | 2.00 |
| micro-operation queue | 11.75 cycles |
| front end | 11.75 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 9.00 | 9.00 | 2.83 | 2.50 | 3.00 | 9.00 | 9.00 | 2.67 |
| cycles | 9.00 | 9.00 | 2.83 | 2.50 | 3.00 | 9.00 | 9.00 | 2.67 |
| Cycles executing div or sqrt instructions | NA |
| FE+BE cycles | 12.10 |
| Stall cycles | 0.00 |
| Front-end | 11.75 |
| Dispatch | 9.00 |
| Overall L1 | 11.75 |
| all | 0% |
| load | NA (no load vectorizable/vectorized instructions) |
| store | 0% |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | 0% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 0% |
| all | 61% |
| load | 60% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 100% |
| add-sub | 100% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 40% |
| all | 39% |
| load | 60% |
| store | 0% |
| mul | 100% |
| add-sub | 75% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 23% |
| all | 6% |
| load | NA (no load vectorizable/vectorized instructions) |
| store | 6% |
| mul | NA (no mul vectorizable/vectorized instructions) |
| add-sub | 6% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 6% |
| all | 20% |
| load | 20% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 25% |
| add-sub | 25% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 17% |
| all | 15% |
| load | 20% |
| store | 6% |
| mul | 25% |
| add-sub | 20% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 12% |
| Instruction | Nb FU | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | Latency | Recip. throughput | Vectorization |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VMOVSD (%RDI),%XMM5 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| MOV %R8D,%EBX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| MOV %R10,%R12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| XOR %EAX,%EAX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| VMOVAPD %XMM4,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| VMOVHPD 0x8(%RDI),%XMM5,%XMM3 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 1 | 0 | 0 | 4 | 1 | scal (12.5%) |
| AND $0x3,%EBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2b4b <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x12b> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| CMP $0x1,%EBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2b1a <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xfa> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| CMP $0x2,%EBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2af2 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xd2> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| VSUBPD (%R10),%XMM3,%XMM1 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VMULPD %XMM1,%XMM1,%XMM6 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VUNPCKHPD %XMM6,%XMM6,%XMM2 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | scal (12.5%) |
| VADDPD %XMM6,%XMM2,%XMM7 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VCOMISD %XMM7,%XMM4 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2ae9 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xc9> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOVL $0,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 2 | 1 | scal (6.3%) |
| VMOVAPD %XMM7,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| MOV $0x1,%EAX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| LEA 0x10(%R10),%R12 | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| VSUBPD (%R12),%XMM3,%XMM8 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VMULPD %XMM8,%XMM8,%XMM9 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VUNPCKHPD %XMM9,%XMM9,%XMM10 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | scal (12.5%) |
| VADDPD %XMM9,%XMM10,%XMM11 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VCOMISD %XMM11,%XMM0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2b14 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xf4> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %EAX,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | scal (6.3%) |
| VMOVAPD %XMM11,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| INC %EAX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| ADD $0x10,%R12 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| VSUBPD (%R12),%XMM3,%XMM12 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VMULPD %XMM12,%XMM12,%XMM13 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VUNPCKHPD %XMM13,%XMM13,%XMM14 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | scal (12.5%) |
| VADDPD %XMM13,%XMM14,%XMM15 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | vect (25.0%) |
| VCOMISD %XMM15,%XMM0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2b3c <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x11c> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %EAX,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | scal (6.3%) |
| VMOVAPD %XMM15,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| INC %EAX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| ADD $0x10,%R12 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| CMP %EAX,%R8D | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2be9 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x1c9> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| ADD $0x10,%RDI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| ADD $0x4,%RSI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| CMP %RDI,%R9 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| JNE 2aa0 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x80> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| Run run_1_thread | Number processes: 1Number nodes: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: trueOMP_NUM_THREADS: 1 |
|---|---|
| Run run_2_threads | Number processes: 1Number nodes: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: trueOMP_NUM_THREADS: 2 |
| Run run_4_threads | Number processes: 1Number nodes: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: trueOMP_NUM_THREADS: 4 |
| Run run_8_threads | Number processes: 1Number nodes: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: trueOMP_NUM_THREADS: 8 |
| Run run_10_threads | Number processes: 1Number nodes: 1Run Command: <executable> input/100000000.in 1000 100000000 50 25MPI Command: Dataset: Run Directory: /home/fmusial/KMEANS_BenchmarksOMP_PROC_BIND: trueOMP_NUM_THREADS: 10 |
| (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_10_threads) Efficiency | (run_10_threads) Potential Speed-Up (%) |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 0.95 | 0.33 | 0.77 | 1.59 | 0.64 | 2.35 | 0.57 | 2.95 |
| Run | Number of threads | Efficiency (ideal is 1) | Speedup | Ideal Speedup | Time (s) | Coverage (%) |
|---|---|---|---|---|---|---|
| run_1_thread | 1 | 1 | 1 | 1 | 6.9949998855591 | 6.7227296829224 |
| run_2_threads | 2 | 0.95 | 1.9 | 2 | 3.6300001144409 | 6.5159020423889 |
| run_4_threads | 4 | 0.77 | 3.07 | 4 | 2.0099999904633 | 6.8541536331177 |
| run_8_threads | 8 | 0.64 | 5.15 | 8 | 1.1150000095367 | 6.5954809188843 |
| run_10_threads | 10 | 0.57 | 5.69 | 10 | 0.87999987602234 | 6.8569021224976 |
