| Loop Id: 2 | Module: kmeans-gcc-O3-all | Source: main.cpp:60-67 | Coverage: 5.97% |
|---|
| Loop Id: 2 | Module: kmeans-gcc-O3-all | Source: main.cpp:60-67 | Coverage: 5.97% |
|---|
0x2a80 MOV %R8D,%ECX |
0x2a83 VMOVSD (%RDI),%XMM3 |
0x2a87 VMOVSD 0x8(%RDI),%XMM2 |
0x2a8c MOV %R9,%RBX |
0x2a8f XOR %EDX,%EDX |
0x2a91 VMOVAPD %XMM5,%XMM0 |
0x2a95 AND $0x3,%ECX |
0x2a98 JE 2b29 |
0x2a9e CMP $0x1,%ECX |
0x2aa1 JE 2afa |
0x2aa3 CMP $0x2,%ECX |
0x2aa6 JE 2ad5 |
0x2aa8 VSUBSD 0x8(%R9),%XMM2,%XMM4 |
0x2aae VSUBSD (%R9),%XMM3,%XMM1 |
0x2ab3 VMULSD %XMM4,%XMM4,%XMM6 |
0x2ab7 VFMADD132SD %XMM1,%XMM6,%XMM1 |
0x2abc VCOMISD %XMM1,%XMM5 |
0x2ac0 JBE 2acc |
0x2ac2 MOVL $0,(%RSI) |
0x2ac8 VMOVAPD %XMM1,%XMM0 |
0x2acc MOV $0x1,%EDX |
0x2ad1 LEA 0x10(%R9),%RBX |
0x2ad5 VSUBSD 0x8(%RBX),%XMM2,%XMM8 |
0x2ada VSUBSD (%RBX),%XMM3,%XMM7 |
0x2ade VMULSD %XMM8,%XMM8,%XMM9 |
0x2ae3 VFMADD132SD %XMM7,%XMM9,%XMM7 |
0x2ae8 VCOMISD %XMM7,%XMM0 |
0x2aec JBE 2af4 |
0x2aee MOV %EDX,(%RSI) |
0x2af0 VMOVAPD %XMM7,%XMM0 |
0x2af4 INC %EDX |
0x2af6 ADD $0x10,%RBX |
0x2afa VSUBSD 0x8(%RBX),%XMM2,%XMM11 |
0x2aff VSUBSD (%RBX),%XMM3,%XMM10 |
0x2b03 VMULSD %XMM11,%XMM11,%XMM12 |
0x2b08 VFMADD132SD %XMM10,%XMM12,%XMM10 |
0x2b0d VCOMISD %XMM10,%XMM0 |
0x2b12 JBE 2b1a |
0x2b14 MOV %EDX,(%RSI) |
0x2b16 VMOVAPD %XMM10,%XMM0 |
0x2b1a INC %EDX |
0x2b1c ADD $0x10,%RBX |
0x2b20 CMP %EDX,%R8D |
0x2b23 JE 2bcb |
(1) 0x2b29 VSUBSD 0x8(%RBX),%XMM2,%XMM14 |
(1) 0x2b2e VSUBSD (%RBX),%XMM3,%XMM13 |
(1) 0x2b32 VMULSD %XMM14,%XMM14,%XMM15 |
(1) 0x2b37 VFMADD132SD %XMM13,%XMM15,%XMM13 |
(1) 0x2b3c VCOMISD %XMM13,%XMM0 |
(1) 0x2b41 JBE 2b49 |
(1) 0x2b43 MOV %EDX,(%RSI) |
(1) 0x2b45 VMOVAPD %XMM13,%XMM0 |
(1) 0x2b49 VSUBSD 0x18(%RBX),%XMM2,%XMM4 |
(1) 0x2b4e VSUBSD 0x10(%RBX),%XMM3,%XMM1 |
(1) 0x2b53 INC %EDX |
(1) 0x2b55 LEA 0x10(%RBX),%R11 |
(1) 0x2b59 VMULSD %XMM4,%XMM4,%XMM6 |
(1) 0x2b5d VFMADD132SD %XMM1,%XMM6,%XMM1 |
(1) 0x2b62 VCOMISD %XMM1,%XMM0 |
(1) 0x2b66 JBE 2b6e |
(1) 0x2b68 MOV %EDX,(%RSI) |
(1) 0x2b6a VMOVAPD %XMM1,%XMM0 |
(1) 0x2b6e VSUBSD 0x18(%R11),%XMM2,%XMM8 |
(1) 0x2b74 VSUBSD 0x10(%R11),%XMM3,%XMM7 |
(1) 0x2b7a LEA 0x1(%RDX),%EAX |
(1) 0x2b7d VMULSD %XMM8,%XMM8,%XMM9 |
(1) 0x2b82 VFMADD132SD %XMM7,%XMM9,%XMM7 |
(1) 0x2b87 VCOMISD %XMM7,%XMM0 |
(1) 0x2b8b JBE 2b93 |
(1) 0x2b8d MOV %EAX,(%RSI) |
(1) 0x2b8f VMOVAPD %XMM7,%XMM0 |
(1) 0x2b93 VSUBSD 0x28(%R11),%XMM2,%XMM11 |
(1) 0x2b99 VSUBSD 0x20(%R11),%XMM3,%XMM10 |
(1) 0x2b9f LEA 0x2(%RDX),%R12D |
(1) 0x2ba3 VMULSD %XMM11,%XMM11,%XMM12 |
(1) 0x2ba8 VFMADD132SD %XMM10,%XMM12,%XMM10 |
(1) 0x2bad VCOMISD %XMM10,%XMM0 |
(1) 0x2bb2 JBE 2bbb |
(1) 0x2bb4 MOV %R12D,(%RSI) |
(1) 0x2bb7 VMOVAPD %XMM10,%XMM0 |
(1) 0x2bbb ADD $0x3,%EDX |
(1) 0x2bbe LEA 0x30(%R11),%RBX |
(1) 0x2bc2 CMP %EDX,%R8D |
(1) 0x2bc5 JNE 2b29 |
0x2bcb ADD $0x10,%RDI |
0x2bcf ADD $0x4,%RSI |
0x2bd3 CMP %RDI,%R10 |
0x2bd6 JNE 2a80 |
/home/fmusial/KMEANS_Benchmarks/kmeans/main.cpp: 60 - 67 |
-------------------------------------------------------------------------------- |
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; |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►98.87+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:73 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:19 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:809 | kmeans-gcc-O3-all |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►48.73+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►45.83+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:73 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:19 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:809 | kmeans-gcc-O3-all |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►72.35+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►22.71+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:73 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:19 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:809 | kmeans-gcc-O3-all |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►87.21+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►12.63+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:73 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:19 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:809 | kmeans-gcc-O3-all |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►93.09+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►6.27+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:73 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:19 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:809 | kmeans-gcc-O3-all |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►96.57+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►3.11+ | GOMP_parallel | parallel.c:140 | libgomp.so.1.0.0 |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:73 | kmeans-gcc-O3-all |
| ○ | main | main.cpp:19 | kmeans-gcc-O3-all |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | basic_string.h:809 | 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.47 |
| CQA speedup if FP arith vectorized | 2.30 |
| CQA speedup if fully vectorized | 11.82 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.34 |
| Bottlenecks | micro-operation queue, |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] |
| Source | main.cpp:60-67 |
| 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 | 8.00 |
| CQA cycles if FP arith vectorized | 5.11 |
| CQA cycles if fully vectorized | 0.99 |
| Front-end cycles | 11.75 |
| P0 cycles | 8.75 |
| P1 cycles | 8.75 |
| P2 cycles | 4.00 |
| P3 cycles | 4.00 |
| P4 cycles | 3.00 |
| P5 cycles | 8.75 |
| P6 cycles | 8.75 |
| P7 cycles | 3.00 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | NA |
| FE+BE cycles (UFS) | 12.02 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 48.00 |
| Nb uops | 47.00 |
| Nb loads | 8.00 |
| Nb stores | 3.00 |
| Nb stack references | 0.00 |
| FLOP/cycle | 1.28 |
| Nb FLOP add-sub | 6.00 |
| Nb FLOP mul | 3.00 |
| Nb FLOP fma | 3.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 | 12.12 |
| Vectorization ratio load | 0.00 |
| Vectorization ratio store | 0.00 |
| Vectorization ratio mul | 0.00 |
| Vectorization ratio add_sub | 0.00 |
| Vectorization ratio fma | 0.00 |
| Vectorization ratio div_sqrt | NA |
| Vectorization ratio other | 28.57 |
| Vector-efficiency ratio all | 11.74 |
| Vector-efficiency ratio load | 12.50 |
| Vector-efficiency ratio store | 6.25 |
| Vector-efficiency ratio mul | 12.50 |
| Vector-efficiency ratio add_sub | 10.94 |
| Vector-efficiency ratio fma | 12.50 |
| Vector-efficiency ratio div_sqrt | NA |
| Vector-efficiency ratio other | 12.95 |
| Metric | Value |
|---|---|
| CQA speedup if no scalar integer | 1.47 |
| CQA speedup if FP arith vectorized | 2.30 |
| CQA speedup if fully vectorized | 11.82 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.34 |
| Bottlenecks | micro-operation queue, |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] |
| Source | main.cpp:60-67 |
| 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 | 8.00 |
| CQA cycles if FP arith vectorized | 5.11 |
| CQA cycles if fully vectorized | 0.99 |
| Front-end cycles | 11.75 |
| P0 cycles | 8.75 |
| P1 cycles | 8.75 |
| P2 cycles | 4.00 |
| P3 cycles | 4.00 |
| P4 cycles | 3.00 |
| P5 cycles | 8.75 |
| P6 cycles | 8.75 |
| P7 cycles | 3.00 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | NA |
| FE+BE cycles (UFS) | 12.02 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 48.00 |
| Nb uops | 47.00 |
| Nb loads | 8.00 |
| Nb stores | 3.00 |
| Nb stack references | 0.00 |
| FLOP/cycle | 1.28 |
| Nb FLOP add-sub | 6.00 |
| Nb FLOP mul | 3.00 |
| Nb FLOP fma | 3.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 | 12.12 |
| Vectorization ratio load | 0.00 |
| Vectorization ratio store | 0.00 |
| Vectorization ratio mul | 0.00 |
| Vectorization ratio add_sub | 0.00 |
| Vectorization ratio fma | 0.00 |
| Vectorization ratio div_sqrt | NA |
| Vectorization ratio other | 28.57 |
| Vector-efficiency ratio all | 11.74 |
| Vector-efficiency ratio load | 12.50 |
| Vector-efficiency ratio store | 6.25 |
| Vector-efficiency ratio mul | 12.50 |
| Vector-efficiency ratio add_sub | 10.94 |
| Vector-efficiency ratio fma | 12.50 |
| Vector-efficiency ratio div_sqrt | NA |
| Vector-efficiency ratio other | 12.95 |
| Path / |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] |
| Source file and lines | main.cpp:60-67 |
| Module | kmeans-gcc-O3-all |
| nb instructions | 48 |
| nb uops | 47 |
| loop length | 186 |
| used x86 registers | 8 |
| used mmx registers | 0 |
| used xmm registers | 13 |
| 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 | 8.75 | 8.75 | 4.00 | 4.00 | 3.00 | 8.75 | 8.75 | 3.00 |
| cycles | 8.75 | 8.75 | 4.00 | 4.00 | 3.00 | 8.75 | 8.75 | 3.00 |
| Cycles executing div or sqrt instructions | NA |
| FE+BE cycles | 12.02 |
| Stall cycles | 0.00 |
| Front-end | 11.75 |
| Dispatch | 8.75 |
| 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 | 19% |
| load | 0% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 0% |
| add-sub | 0% |
| fma | 0% |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 57% |
| all | 12% |
| load | 0% |
| store | 0% |
| mul | 0% |
| add-sub | 0% |
| fma | 0% |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 28% |
| 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 | 14% |
| load | 12% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 12% |
| add-sub | 12% |
| fma | 12% |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 19% |
| all | 11% |
| load | 12% |
| store | 6% |
| mul | 12% |
| add-sub | 10% |
| fma | 12% |
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MOV %R8D,%ECX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| VMOVSD (%RDI),%XMM3 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| VMOVSD 0x8(%RDI),%XMM2 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| MOV %R9,%RBX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| XOR %EDX,%EDX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| VMOVAPD %XMM5,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| AND $0x3,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2b29 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x129> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| CMP $0x1,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2afa <_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,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2ad5 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xd5> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| VSUBSD 0x8(%R9),%XMM2,%XMM4 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VSUBSD (%R9),%XMM3,%XMM1 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VMULSD %XMM4,%XMM4,%XMM6 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VFMADD132SD %XMM1,%XMM6,%XMM1 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VCOMISD %XMM1,%XMM5 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2acc <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xcc> | 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 %XMM1,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| MOV $0x1,%EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| LEA 0x10(%R9),%RBX | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| VSUBSD 0x8(%RBX),%XMM2,%XMM8 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VSUBSD (%RBX),%XMM3,%XMM7 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VMULSD %XMM8,%XMM8,%XMM9 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VFMADD132SD %XMM7,%XMM9,%XMM7 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VCOMISD %XMM7,%XMM0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2af4 <_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 %EDX,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | scal (6.3%) |
| VMOVAPD %XMM7,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| INC %EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| ADD $0x10,%RBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| VSUBSD 0x8(%RBX),%XMM2,%XMM11 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VSUBSD (%RBX),%XMM3,%XMM10 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VMULSD %XMM11,%XMM11,%XMM12 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VFMADD132SD %XMM10,%XMM12,%XMM10 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VCOMISD %XMM10,%XMM0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2b1a <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x11a> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %EDX,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | scal (6.3%) |
| VMOVAPD %XMM10,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| INC %EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| ADD $0x10,%RBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| CMP %EDX,%R8D | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2bcb <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x1cb> | 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,%R10 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| JNE 2a80 <_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:60-67 |
| Module | kmeans-gcc-O3-all |
| nb instructions | 48 |
| nb uops | 47 |
| loop length | 186 |
| used x86 registers | 8 |
| used mmx registers | 0 |
| used xmm registers | 13 |
| 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 | 8.75 | 8.75 | 4.00 | 4.00 | 3.00 | 8.75 | 8.75 | 3.00 |
| cycles | 8.75 | 8.75 | 4.00 | 4.00 | 3.00 | 8.75 | 8.75 | 3.00 |
| Cycles executing div or sqrt instructions | NA |
| FE+BE cycles | 12.02 |
| Stall cycles | 0.00 |
| Front-end | 11.75 |
| Dispatch | 8.75 |
| 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 | 19% |
| load | 0% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 0% |
| add-sub | 0% |
| fma | 0% |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 57% |
| all | 12% |
| load | 0% |
| store | 0% |
| mul | 0% |
| add-sub | 0% |
| fma | 0% |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 28% |
| 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 | 14% |
| load | 12% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 12% |
| add-sub | 12% |
| fma | 12% |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 19% |
| all | 11% |
| load | 12% |
| store | 6% |
| mul | 12% |
| add-sub | 10% |
| fma | 12% |
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MOV %R8D,%ECX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| VMOVSD (%RDI),%XMM3 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| VMOVSD 0x8(%RDI),%XMM2 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| MOV %R9,%RBX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| XOR %EDX,%EDX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| VMOVAPD %XMM5,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| AND $0x3,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2b29 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x129> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| CMP $0x1,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2afa <_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,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2ad5 <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xd5> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| VSUBSD 0x8(%R9),%XMM2,%XMM4 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VSUBSD (%R9),%XMM3,%XMM1 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VMULSD %XMM4,%XMM4,%XMM6 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VFMADD132SD %XMM1,%XMM6,%XMM1 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VCOMISD %XMM1,%XMM5 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2acc <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0xcc> | 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 %XMM1,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| MOV $0x1,%EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| LEA 0x10(%R9),%RBX | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| VSUBSD 0x8(%RBX),%XMM2,%XMM8 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VSUBSD (%RBX),%XMM3,%XMM7 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VMULSD %XMM8,%XMM8,%XMM9 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VFMADD132SD %XMM7,%XMM9,%XMM7 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VCOMISD %XMM7,%XMM0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2af4 <_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 %EDX,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | scal (6.3%) |
| VMOVAPD %XMM7,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| INC %EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| ADD $0x10,%RBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| VSUBSD 0x8(%RBX),%XMM2,%XMM11 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VSUBSD (%RBX),%XMM3,%XMM10 | 1 | 0.50 | 0.50 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VMULSD %XMM11,%XMM11,%XMM12 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VFMADD132SD %XMM10,%XMM12,%XMM10 | 1 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.50 | scal (12.5%) |
| VCOMISD %XMM10,%XMM0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (12.5%) |
| JBE 2b1a <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x11a> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %EDX,(%RSI) | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | scal (6.3%) |
| VMOVAPD %XMM10,%XMM0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| INC %EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| ADD $0x10,%RBX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| CMP %EDX,%R8D | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JE 2bcb <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x1cb> | 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,%R10 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| JNE 2a80 <_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: closeOMP_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: closeOMP_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: closeOMP_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: closeOMP_NUM_THREADS: 8 |
| Run run_16_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: closeOMP_NUM_THREADS: 16 |
| Run run_26_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: 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.93 | 0.43 | 0.83 | 1 | 0.71 | 1.66 | 0.54 | 2.52 | 0.42 | 3.13 |
| Run | Number of threads | Efficiency (ideal is 1) | Speedup | Ideal Speedup | Time (s) | Coverage (%) |
|---|---|---|---|---|---|---|
| run_1_thread | 1 | 1 | 1 | 1 | 9.7149991989136 | 5.9733152389526 |
| run_2_threads | 2 | 0.93 | 1.86 | 2 | 5.1350002288818 | 6.0310750007629 |
| run_4_threads | 4 | 0.83 | 3.33 | 4 | 2.5349996089935 | 5.974871635437 |
| run_8_threads | 8 | 0.71 | 5.68 | 8 | 1.2799999713898 | 5.7278380393982 |
| run_16_threads | 16 | 0.54 | 8.67 | 16 | 0.6599999666214 | 5.4993567466736 |
| run_26_threads | 26 | 0.42 | 10.81 | 26 | 0.44999998807907 | 5.3658404350281 |
