| Function: k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] | Module: kmeans-gcc-O3-all | Source: main.cpp:70-79 | Coverage (incl. loops): 93.10% | (excl. loops): 0.00% |
|---|
| Function: k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0] | Module: kmeans-gcc-O3-all | Source: main.cpp:70-79 | Coverage (incl. loops): 93.10% | (excl. loops): 0.00% |
|---|
/home/fmusial/KMEANS_Benchmarks/kmeans/main.cpp: 70 - 79 |
-------------------------------------------------------------------------------- |
70: #pragma omp parallel for |
71: for (int i = 0; i < n; ++i) { |
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; |
0x2a20 PUSH %RBP |
0x2a21 MOV %RSP,%RBP |
0x2a24 PUSH %R12 |
0x2a26 PUSH %RBX |
0x2a27 MOV %RDI,%RBX |
0x2a2a CALL 2290 <omp_get_num_threads@plt> |
0x2a2f MOV %EAX,%R12D |
0x2a32 CALL 2200 <omp_get_thread_num@plt> |
0x2a37 MOV $0,%EDI |
0x2a3c MOV %EAX,%ECX |
0x2a3e MOV 0x18(%RBX),%EAX |
0x2a41 CLTD |
0x2a42 IDIV %R12D |
0x2a45 CMP %EDX,%ECX |
0x2a47 LEA 0x1(%RAX),%ESI |
0x2a4a CMOVL %ESI,%EAX |
0x2a4d CMOVL %EDI,%EDX |
0x2a50 IMUL %EAX,%ECX |
0x2a53 ADD %ECX,%EDX |
0x2a55 LEA (%RAX,%RDX,1),%R8D |
0x2a59 CMP %R8D,%EDX |
0x2a5c JGE 2bfa |
0x2a62 MOV 0x1c(%RBX),%R8D |
0x2a66 TEST %R8D,%R8D |
0x2a69 JLE 2bfa |
0x2a6f MOV 0x10(%RBX),%R9 |
0x2a73 MOVSXD %EDX,%R11 |
0x2a76 MOV (%RBX),%R12 |
0x2a79 MOV %R11,%RDI |
0x2a7c MOV 0x8(%RBX),%R10 |
0x2a80 VMOVSD 0x16d0(%RIP),%XMM4 |
0x2a88 LEA (%R9,%R11,4),%RSI |
0x2a8c MOV %EAX,%R9D |
0x2a8f SAL $0x4,%RDI |
0x2a93 ADD %R11,%R9 |
0x2a96 ADD %R12,%RDI |
0x2a99 SAL $0x4,%R9 |
0x2a9d ADD %R12,%R9 |
(2) 0x2aa0 VMOVSD (%RDI),%XMM5 |
(2) 0x2aa4 MOV %R8D,%EBX |
(2) 0x2aa7 MOV %R10,%R12 |
(2) 0x2aaa XOR %EAX,%EAX |
(2) 0x2aac VMOVAPD %XMM4,%XMM0 |
(2) 0x2ab0 VMOVHPD 0x8(%RDI),%XMM5,%XMM3 |
(2) 0x2ab5 AND $0x3,%EBX |
(2) 0x2ab8 JE 2b4b |
(2) 0x2abe CMP $0x1,%EBX |
(2) 0x2ac1 JE 2b1a |
(2) 0x2ac3 CMP $0x2,%EBX |
(2) 0x2ac6 JE 2af2 |
(2) 0x2ac8 VSUBPD (%R10),%XMM3,%XMM1 |
(2) 0x2acd VMULPD %XMM1,%XMM1,%XMM6 |
(2) 0x2ad1 VUNPCKHPD %XMM6,%XMM6,%XMM2 |
(2) 0x2ad5 VADDPD %XMM6,%XMM2,%XMM7 |
(2) 0x2ad9 VCOMISD %XMM7,%XMM4 |
(2) 0x2add JBE 2ae9 |
(2) 0x2adf MOVL $0,(%RSI) |
(2) 0x2ae5 VMOVAPD %XMM7,%XMM0 |
(2) 0x2ae9 MOV $0x1,%EAX |
(2) 0x2aee LEA 0x10(%R10),%R12 |
(2) 0x2af2 VSUBPD (%R12),%XMM3,%XMM8 |
(2) 0x2af8 VMULPD %XMM8,%XMM8,%XMM9 |
(2) 0x2afd VUNPCKHPD %XMM9,%XMM9,%XMM10 |
(2) 0x2b02 VADDPD %XMM9,%XMM10,%XMM11 |
(2) 0x2b07 VCOMISD %XMM11,%XMM0 |
(2) 0x2b0c JBE 2b14 |
(2) 0x2b0e MOV %EAX,(%RSI) |
(2) 0x2b10 VMOVAPD %XMM11,%XMM0 |
(2) 0x2b14 INC %EAX |
(2) 0x2b16 ADD $0x10,%R12 |
(2) 0x2b1a VSUBPD (%R12),%XMM3,%XMM12 |
(2) 0x2b20 VMULPD %XMM12,%XMM12,%XMM13 |
(2) 0x2b25 VUNPCKHPD %XMM13,%XMM13,%XMM14 |
(2) 0x2b2a VADDPD %XMM13,%XMM14,%XMM15 |
(2) 0x2b2f VCOMISD %XMM15,%XMM0 |
(2) 0x2b34 JBE 2b3c |
(2) 0x2b36 MOV %EAX,(%RSI) |
(2) 0x2b38 VMOVAPD %XMM15,%XMM0 |
(2) 0x2b3c INC %EAX |
(2) 0x2b3e ADD $0x10,%R12 |
(2) 0x2b42 CMP %EAX,%R8D |
(2) 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 |
(2) 0x2be9 ADD $0x10,%RDI |
(2) 0x2bed ADD $0x4,%RSI |
(2) 0x2bf1 CMP %RDI,%R9 |
(2) 0x2bf4 JNE 2aa0 |
0x2bfa POP %RBX |
0x2bfb POP %R12 |
0x2bfd POP %RBP |
0x2bfe RET |
0x2bff NOP |
| 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 |
|---|---|---|---|
| ►50.01+ | 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 |
| ►49.99+ | 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 |
|---|---|---|---|
| ►75.02+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►24.98+ | 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.63+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►12.37+ | 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 |
|---|---|---|---|
| ►90.26+ | gomp_thread_start | team.c:130 | libgomp.so.1.0.0 |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►9.74+ | 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 / |
The code analyzed by CQA in that panel excludes loops and represents 0.00% of application time for run run_1_thread
| Source file and lines | main.cpp:70-79 |
| Module | kmeans-gcc-O3-all |
| nb instructions | 43 |
| nb uops | 54 |
| loop length | 134 |
| used x86 registers | 13 |
| used mmx registers | 0 |
| used xmm registers | 1 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0 |
| micro-operation queue | 13.50 cycles |
| front end | 13.50 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 8.25 | 8.25 | 5.17 | 4.83 | 5.00 | 8.25 | 8.25 | 5.00 |
| cycles | 8.25 | 8.25 | 5.17 | 4.83 | 5.00 | 8.25 | 8.25 | 5.00 |
| Cycles executing div or sqrt instructions | 6.00 |
| FE+BE cycles | 14.28 |
| Stall cycles | 2.53 |
| RS full (events) | 5.32 |
| Front-end | 13.50 |
| Dispatch | 8.25 |
| DIV/SQRT | 6.00 |
| Overall L1 | 13.50 |
| all | 0% |
| load | 0% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 0% |
| add-sub | 0% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 0% |
| all | 0% |
| load | 0% |
| 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 | NA (no other vectorizable/vectorized instructions) |
| all | 0% |
| load | 0% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 0% |
| add-sub | 0% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | 0% |
| other | 0% |
| all | 8% |
| load | 9% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 6% |
| add-sub | 12% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 8% |
| all | 12% |
| load | 12% |
| 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 | NA (no other vectorizable/vectorized instructions) |
| all | 8% |
| load | 10% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 6% |
| add-sub | 12% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | 6% |
| other | 8% |
| Instruction | Nb FU | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | Latency | Recip. throughput | Vectorization |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PUSH %RBP | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | N/A |
| MOV %RSP,%RBP | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (12.5%) |
| PUSH %R12 | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | N/A |
| PUSH %RBX | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | N/A |
| MOV %RDI,%RBX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| CALL 2290 <omp_get_num_threads@plt> | 2 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 1 | 0.33 | 0 | 1 | N/A |
| MOV %EAX,%R12D | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| CALL 2200 <omp_get_thread_num@plt> | 2 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 1 | 0.33 | 0 | 1 | N/A |
| MOV $0,%EDI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| MOV %EAX,%ECX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| MOV 0x18(%RBX),%EAX | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | N/A |
| CLTD | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | scal (6.3%) |
| IDIV %R12D | 10 | 2.50 | 2.50 | 0 | 0 | 0 | 2.50 | 2.50 | 0 | 26 | 6 | scal (6.3%) |
| CMP %EDX,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| LEA 0x1(%RAX),%ESI | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| CMOVL %ESI,%EAX | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| CMOVL %EDI,%EDX | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| IMUL %EAX,%ECX | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (6.3%) |
| ADD %ECX,%EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| LEA (%RAX,%RDX,1),%R8D | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| CMP %R8D,%EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JGE 2bfa <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x1da> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV 0x1c(%RBX),%R8D | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (6.3%) |
| TEST %R8D,%R8D | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JLE 2bfa <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x1da> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV 0x10(%RBX),%R9 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | N/A |
| MOVSXD %EDX,%R11 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| MOV (%RBX),%R12 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | N/A |
| MOV %R11,%RDI | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (12.5%) |
| MOV 0x8(%RBX),%R10 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| VMOVSD 0x16d0(%RIP),%XMM4 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| LEA (%R9,%R11,4),%RSI | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| MOV %EAX,%R9D | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| SAL $0x4,%RDI | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | scal (12.5%) |
| ADD %R11,%R9 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| ADD %R12,%RDI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (12.5%) |
| SAL $0x4,%R9 | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| ADD %R12,%R9 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| POP %RBX | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 2 | 0.50 | N/A |
| POP %R12 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 2 | 0.50 | N/A |
| POP %RBP | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 2 | 0.50 | N/A |
| RET | 1 | 0 | 0 | 0.33 | 0.33 | 0 | 0 | 1 | 0.33 | 0 | 1 | N/A |
| NOP | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
The code analyzed by CQA in that panel excludes loops and represents 0.00% of application time for run run_1_thread
| Source file and lines | main.cpp:70-79 |
| Module | kmeans-gcc-O3-all |
| nb instructions | 43 |
| nb uops | 54 |
| loop length | 134 |
| used x86 registers | 13 |
| used mmx registers | 0 |
| used xmm registers | 1 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0 |
| micro-operation queue | 13.50 cycles |
| front end | 13.50 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 8.25 | 8.25 | 5.17 | 4.83 | 5.00 | 8.25 | 8.25 | 5.00 |
| cycles | 8.25 | 8.25 | 5.17 | 4.83 | 5.00 | 8.25 | 8.25 | 5.00 |
| Cycles executing div or sqrt instructions | 6.00 |
| FE+BE cycles | 14.28 |
| Stall cycles | 2.53 |
| RS full (events) | 5.32 |
| Front-end | 13.50 |
| Dispatch | 8.25 |
| DIV/SQRT | 6.00 |
| Overall L1 | 13.50 |
| all | 0% |
| load | 0% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 0% |
| add-sub | 0% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 0% |
| all | 0% |
| load | 0% |
| 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 | NA (no other vectorizable/vectorized instructions) |
| all | 0% |
| load | 0% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 0% |
| add-sub | 0% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | 0% |
| other | 0% |
| all | 8% |
| load | 9% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 6% |
| add-sub | 12% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| other | 8% |
| all | 12% |
| load | 12% |
| 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 | NA (no other vectorizable/vectorized instructions) |
| all | 8% |
| load | 10% |
| store | NA (no store vectorizable/vectorized instructions) |
| mul | 6% |
| add-sub | 12% |
| fma | NA (no fma vectorizable/vectorized instructions) |
| div/sqrt | 6% |
| other | 8% |
| Instruction | Nb FU | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | Latency | Recip. throughput | Vectorization |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PUSH %RBP | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | N/A |
| MOV %RSP,%RBP | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (12.5%) |
| PUSH %R12 | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | N/A |
| PUSH %RBX | 1 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 0 | 0.33 | 3 | 1 | N/A |
| MOV %RDI,%RBX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| CALL 2290 <omp_get_num_threads@plt> | 2 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 1 | 0.33 | 0 | 1 | N/A |
| MOV %EAX,%R12D | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| CALL 2200 <omp_get_thread_num@plt> | 2 | 0 | 0 | 0.33 | 0.33 | 1 | 0 | 1 | 0.33 | 0 | 1 | N/A |
| MOV $0,%EDI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| MOV %EAX,%ECX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (6.3%) |
| MOV 0x18(%RBX),%EAX | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | N/A |
| CLTD | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | scal (6.3%) |
| IDIV %R12D | 10 | 2.50 | 2.50 | 0 | 0 | 0 | 2.50 | 2.50 | 0 | 26 | 6 | scal (6.3%) |
| CMP %EDX,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| LEA 0x1(%RAX),%ESI | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| CMOVL %ESI,%EAX | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| CMOVL %EDI,%EDX | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| IMUL %EAX,%ECX | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | scal (6.3%) |
| ADD %ECX,%EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| LEA (%RAX,%RDX,1),%R8D | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| CMP %R8D,%EDX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JGE 2bfa <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x1da> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV 0x1c(%RBX),%R8D | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (6.3%) |
| TEST %R8D,%R8D | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| JLE 2bfa <_Z7k_meansiP7point_tS0_PiS0_ii._omp_fn.0+0x1da> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV 0x10(%RBX),%R9 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | N/A |
| MOVSXD %EDX,%R11 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| MOV (%RBX),%R12 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | N/A |
| MOV %R11,%RDI | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (12.5%) |
| MOV 0x8(%RBX),%R10 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| VMOVSD 0x16d0(%RIP),%XMM4 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| LEA (%R9,%R11,4),%RSI | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| MOV %EAX,%R9D | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| SAL $0x4,%RDI | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | scal (12.5%) |
| ADD %R11,%R9 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| ADD %R12,%RDI | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (12.5%) |
| SAL $0x4,%R9 | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| ADD %R12,%R9 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| POP %RBX | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 2 | 0.50 | N/A |
| POP %R12 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 2 | 0.50 | N/A |
| POP %RBP | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 2 | 0.50 | N/A |
| RET | 1 | 0 | 0 | 0.33 | 0.33 | 0 | 0 | 1 | 0.33 | 0 | 1 | N/A |
| NOP | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 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.92 | 7.48 | 0.78 | 20.3 | 0.63 | 33.79 | 0.59 | 38.21 |
| Run | Number of threads | Efficiency (ideal is 1) | Speedup | Ideal Speedup | Time (s) | Coverage (%) |
|---|---|---|---|---|---|---|
| run_1_thread | 1 | 1 | 1 | 1 | 96.870002746582 | 93.099472045898 |
| run_2_threads | 2 | 0.92 | 1.84 | 2 | 49.414993286133 | 93.107192993164 |
| run_4_threads | 4 | 0.78 | 3.13 | 4 | 26.084995269775 | 93.217384338379 |
| run_8_threads | 8 | 0.63 | 5.08 | 8 | 13.644998550415 | 92.538284301758 |
| run_10_threads | 10 | 0.59 | 5.86 | 10 | 11.084998130798 | 92.263793945313 |
| Name | Coverage (%) | Time (s) |
|---|---|---|
| ▼k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone ._omp_fn.0]– | 93.10 | 96.87 |
| ▼Loop 2 - main.cpp:72-79 - kmeans-gcc-O3-all– | 6.72 | 6.99 |
| ○Loop 1 - main.cpp:73-79 - kmeans-gcc-O3-all | 86.38 | 89.88 |
