| Loop Id: 8 | Module: kmeans-clang-O3-ffast-math | Source: main.cpp:59-67 | Coverage: 2.52% |
|---|
| Loop Id: 8 | Module: kmeans-clang-O3-ffast-math | Source: main.cpp:59-67 | Coverage: 2.52% |
|---|
0x2d70 MOV -0x38(%RBP),%R13D |
0x2d74 LEA 0x1(%RAX),%R8 |
0x2d78 MOVSXD %R13D,%R9 |
0x2d7b CMP %R9,%RAX |
0x2d7e MOV %R8,%RAX |
0x2d81 JGE 2de3 |
0x2d83 TEST %ECX,%ECX |
0x2d85 JLE 2d74 |
0x2d87 MOV %RAX,%R8 |
0x2d8a SAL $0x4,%R8 |
0x2d8e VMOVUPD (%RSI,%R8,1),%XMM1 |
0x2d94 MOV (%RDX),%R8 |
0x2d97 MOV %RDI,%R9 |
0x2d9a XOR %R10D,%R10D |
0x2d9d VMOVAPD %XMM0,%XMM2 |
0x2da1 JMP 2dbf |
(9) 0x2db0 INC %R10 |
(9) 0x2db3 MOVSXD %ECX,%R11 |
(9) 0x2db6 ADD $0x10,%R9 |
(9) 0x2dba CMP %R11,%R10 |
(9) 0x2dbd JGE 2d70 |
(9) 0x2dbf VSUBPD (%R9),%XMM1,%XMM3 |
(9) 0x2dc4 VMULPD %XMM3,%XMM3,%XMM3 |
(9) 0x2dc8 VSHUFPD $0x1,%XMM3,%XMM3,%XMM4 |
(9) 0x2dcd VADDSD %XMM3,%XMM4,%XMM3 |
(9) 0x2dd1 VUCOMISD %XMM2,%XMM3 |
(9) 0x2dd5 JAE 2db0 |
(9) 0x2dd7 MOV %R10D,(%R8,%RAX,4) |
(9) 0x2ddb MOV (%RBX),%ECX |
(9) 0x2ddd VMOVAPD %XMM3,%XMM2 |
(9) 0x2de1 JMP 2db0 |
/home/fmusial/KMEANS_Benchmarks/kmeans/main.cpp: 59 - 67 |
-------------------------------------------------------------------------------- |
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; |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►100.00+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmp_fork_call | libomp.so | |
| ○ | __kmpc_fork_call | libomp.so | |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:58 | kmeans-clang-O3-ffast-math |
| ○ | main | main.cpp:125 | kmeans-clang-O3-ffast-math |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3-ffast-math |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►51.19+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_for_collapsed_init | libomp.so | |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►48.81+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmp_fork_call | libomp.so | |
| ○ | __kmpc_fork_call | libomp.so | |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:58 | kmeans-clang-O3-ffast-math |
| ○ | main | main.cpp:125 | kmeans-clang-O3-ffast-math |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3-ffast-math |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►75.40+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_for_collapsed_init | libomp.so | |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►24.38+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmp_fork_call | libomp.so | |
| ○ | __kmpc_fork_call | libomp.so | |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:58 | kmeans-clang-O3-ffast-math |
| ○ | main | main.cpp:125 | kmeans-clang-O3-ffast-math |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3-ffast-math |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►86.94+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_for_collapsed_init | libomp.so | |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►12.45+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmp_fork_call | libomp.so | |
| ○ | __kmpc_fork_call | libomp.so | |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:58 | kmeans-clang-O3-ffast-math |
| ○ | main | main.cpp:125 | kmeans-clang-O3-ffast-math |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3-ffast-math |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►93.97+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_for_collapsed_init | libomp.so | |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►4.31+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmp_fork_call | libomp.so | |
| ○ | __kmpc_fork_call | libomp.so | |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:58 | kmeans-clang-O3-ffast-math |
| ○ | main | main.cpp:125 | kmeans-clang-O3-ffast-math |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►96.13+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmpc_for_collapsed_init | libomp.so | |
| ○ | pthread_condattr_setpshared | libc.so.6 | |
| ○ | __clone | libc.so.6 | |
| ►3.57+ | __kmp_invoke_microtask | libomp.so | |
| ○ | __kmpc_end_scope | libomp.so | |
| ○ | __kmp_fork_call | libomp.so | |
| ○ | __kmpc_fork_call | libomp.so | |
| ○ | k_means(int, point_t*, point_t[...] | main.cpp:58 | kmeans-clang-O3-ffast-math |
| ○ | main | main.cpp:125 | kmeans-clang-O3-ffast-math |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3-ffast-math |
| 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.11 |
| CQA speedup if FP arith vectorized | 1.00 |
| CQA speedup if fully vectorized | 12.98 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.81 |
| Bottlenecks | |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .omp_outlined] |
| Source | main.cpp:59-61 |
| Source loop unroll info | NA |
| Source loop unroll confidence level | NA |
| Unroll/vectorization loop type | NA |
| Unroll factor | NA |
| CQA cycles | 3.17 |
| CQA cycles if no scalar integer | 1.50 |
| CQA cycles if FP arith vectorized | 3.17 |
| CQA cycles if fully vectorized | 0.24 |
| Front-end cycles | 3.17 |
| P0 cycles | 1.75 |
| P1 cycles | 1.75 |
| P2 cycles | 1.00 |
| P3 cycles | 1.00 |
| P4 cycles | 0.00 |
| P5 cycles | 1.75 |
| P6 cycles | 1.75 |
| P7 cycles | 0.00 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | 0 |
| FE+BE cycles (UFS) | 3.27 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 13.00 |
| Nb uops | 12.67 |
| Nb loads | 2.00 |
| Nb stores | 0.00 |
| Nb stack references | 0.67 |
| 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 | 4.67 |
| Bytes prefetched | 0.00 |
| Bytes loaded | 18.67 |
| Bytes stored | 0.00 |
| Stride 0 | NA |
| Stride 1 | NA |
| Stride n | NA |
| Stride unknown | NA |
| Stride indirect | NA |
| Vectorization ratio all | 19.05 |
| Vectorization ratio load | 50.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 | 13.33 |
| Vector-efficiency ratio all | 12.05 |
| Vector-efficiency ratio load | 15.63 |
| 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 | 11.46 |
| Metric | Value |
|---|---|
| CQA speedup if no scalar integer | 1.00 |
| CQA speedup if FP arith vectorized | 1.00 |
| CQA speedup if fully vectorized | 14.00 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.20 |
| Bottlenecks | micro-operation queue, |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .omp_outlined] |
| Source | main.cpp:59-61 |
| Source loop unroll info | NA |
| Source loop unroll confidence level | NA |
| Unroll/vectorization loop type | NA |
| Unroll factor | NA |
| CQA cycles | 1.50 |
| CQA cycles if no scalar integer | 1.50 |
| CQA cycles if FP arith vectorized | 1.50 |
| CQA cycles if fully vectorized | 0.11 |
| Front-end cycles | 1.50 |
| P0 cycles | 1.25 |
| P1 cycles | 1.25 |
| P2 cycles | 0.00 |
| P3 cycles | 0.00 |
| P4 cycles | 0.00 |
| P5 cycles | 1.25 |
| P6 cycles | 1.25 |
| P7 cycles | 0.00 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | 0 |
| FE+BE cycles (UFS) | 1.57 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 7.00 |
| Nb uops | 6.00 |
| Nb loads | 0.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 | 0.00 |
| Bytes prefetched | 0.00 |
| Bytes loaded | 0.00 |
| Bytes stored | 0.00 |
| Stride 0 | NA |
| Stride 1 | NA |
| Stride n | NA |
| Stride unknown | NA |
| Stride indirect | NA |
| Vectorization ratio all | 0.00 |
| Vectorization ratio load | NA |
| 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 | 0.00 |
| Vector-efficiency ratio all | 9.38 |
| Vector-efficiency ratio load | NA |
| 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 | 9.38 |
| Metric | Value |
|---|---|
| CQA speedup if no scalar integer | 2.67 |
| CQA speedup if FP arith vectorized | 1.00 |
| CQA speedup if fully vectorized | 12.80 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 2.00 |
| Bottlenecks | micro-operation queue, |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .omp_outlined] |
| Source | main.cpp:59-61 |
| Source loop unroll info | NA |
| Source loop unroll confidence level | NA |
| Unroll/vectorization loop type | NA |
| Unroll factor | NA |
| CQA cycles | 4.00 |
| CQA cycles if no scalar integer | 1.50 |
| CQA cycles if FP arith vectorized | 4.00 |
| CQA cycles if fully vectorized | 0.31 |
| Front-end cycles | 4.00 |
| P0 cycles | 2.00 |
| P1 cycles | 2.00 |
| P2 cycles | 1.50 |
| P3 cycles | 1.50 |
| P4 cycles | 0.00 |
| P5 cycles | 2.00 |
| P6 cycles | 2.00 |
| P7 cycles | 0.00 |
| DIV/SQRT cycles | 0.00 |
| Inter-iter dependencies cycles | 0 |
| FE+BE cycles (UFS) | 4.12 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 16.00 |
| Nb uops | 16.00 |
| Nb loads | 3.00 |
| Nb stores | 0.00 |
| Nb stack references | 1.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 | 7.00 |
| Bytes prefetched | 0.00 |
| Bytes loaded | 28.00 |
| Bytes stored | 0.00 |
| Stride 0 | 1.00 |
| Stride 1 | 1.00 |
| Stride n | 0.00 |
| Stride unknown | 1.00 |
| Stride indirect | 0.00 |
| Vectorization ratio all | 28.57 |
| Vectorization ratio load | 50.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 | 20.00 |
| Vector-efficiency ratio all | 13.39 |
| Vector-efficiency ratio load | 15.63 |
| 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 | 12.50 |
| Path / |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .omp_outlined] |
| Source file and lines | main.cpp:59-67 |
| Module | kmeans-clang-O3-ffast-math |
| nb instructions | 13 |
| nb uops | 12.67 |
| loop length | 40.33 |
| used x86 registers | 8.33 |
| used mmx registers | 0 |
| used xmm registers | 2 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0.67 |
| micro-operation queue | 3.17 cycles |
| front end | 3.17 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 1.75 | 1.75 | 1.00 | 1.00 | 0.00 | 1.75 | 1.75 | 0.00 |
| cycles | 1.75 | 1.75 | 1.00 | 1.00 | 0.00 | 1.75 | 1.75 | 0.00 |
| Cycles executing div or sqrt instructions | NA |
| Longest recurrence chain latency (RecMII) | 0.00 |
| FE+BE cycles | 3.27 |
| Stall cycles | 0.00 |
| Front-end | 3.17 |
| Dispatch | 1.75 |
| Data deps. | 0.00 |
| Overall L1 | 3.17 |
| 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) |
| 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 | 19% |
| load | 50% |
| 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 | 13% |
| all | 8% |
| load | 6% |
| 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 | 12% |
| load | 15% |
| 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 | 11% |
| Function | k_means(int, point_t*, point_t*, int*, point_t*, int, int) [clone .omp_outlined] |
| Source file and lines | main.cpp:59-67 |
| Module | kmeans-clang-O3-ffast-math |
| nb instructions | 7 |
| nb uops | 6 |
| loop length | 19 |
| used x86 registers | 5 |
| used mmx registers | 0 |
| used xmm registers | 0 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0 |
| micro-operation queue | 1.50 cycles |
| front end | 1.50 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 1.25 | 1.25 | 0.00 | 0.00 | 0.00 | 1.25 | 1.25 | 0.00 |
| cycles | 1.25 | 1.25 | 0.00 | 0.00 | 0.00 | 1.25 | 1.25 | 0.00 |
| Cycles executing div or sqrt instructions | NA |
| Longest recurrence chain latency (RecMII) | 0.00 |
| FE+BE cycles | 1.57 |
| Stall cycles | 0.00 |
| Front-end | 1.50 |
| Dispatch | 1.25 |
| Data deps. | 0.00 |
| Overall L1 | 1.50 |
| 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) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 0% |
| 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) |
| div/sqrt | NA (no div/sqrt vectorizable/vectorized instructions) |
| other | 9% |
| Instruction | Nb FU | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | Latency | Recip. throughput | Vectorization |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LEA 0x1(%RAX),%R8 | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| MOVSXD %R13D,%R9 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| CMP %R9,%RAX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (12.5%) |
| MOV %R8,%RAX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| JGE 2de3 <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0x133> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| TEST %ECX,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| JLE 2d74 <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0xc4> | 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_outlined] |
| Source file and lines | main.cpp:59-67 |
| Module | kmeans-clang-O3-ffast-math |
| nb instructions | 16 |
| nb uops | 16 |
| loop length | 51 |
| used x86 registers | 10 |
| used mmx registers | 0 |
| used xmm registers | 3 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 1 |
| micro-operation queue | 4.00 cycles |
| front end | 4.00 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 2.00 | 2.00 | 1.50 | 1.50 | 0.00 | 2.00 | 2.00 | 0.00 |
| cycles | 2.00 | 2.00 | 1.50 | 1.50 | 0.00 | 2.00 | 2.00 | 0.00 |
| Cycles executing div or sqrt instructions | NA |
| Longest recurrence chain latency (RecMII) | 0.00 |
| FE+BE cycles | 4.12 |
| Stall cycles | 0.00 |
| Front-end | 4.00 |
| Dispatch | 2.00 |
| Data deps. | 0.00 |
| Overall L1 | 4.00 |
| 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) |
| 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 | 28% |
| load | 50% |
| 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 | 20% |
| all | 8% |
| load | 6% |
| 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 | 13% |
| load | 15% |
| 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 | 12% |
| Instruction | Nb FU | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | Latency | Recip. throughput | Vectorization |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MOV -0x38(%RBP),%R13D | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (6.3%) |
| LEA 0x1(%RAX),%R8 | 1 | 0 | 0.50 | 0 | 0 | 0 | 0.50 | 0 | 0 | 1 | 0.50 | N/A |
| MOVSXD %R13D,%R9 | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (6.3%) |
| CMP %R9,%RAX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | scal (12.5%) |
| MOV %R8,%RAX | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| JGE 2de3 <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0x133> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| TEST %ECX,%ECX | 1 | 0.25 | 0.25 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 1 | 0.25 | N/A |
| JLE 2d74 <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0xc4> | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 0 | 0.50-1 | N/A |
| MOV %RAX,%R8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | N/A |
| SAL $0x4,%R8 | 1 | 0.50 | 0 | 0 | 0 | 0 | 0 | 0.50 | 0 | 1 | 0.50 | N/A |
| VMOVUPD (%RSI,%R8,1),%XMM1 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | vect (25.0%) |
| MOV (%RDX),%R8 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | N/A |
| MOV %RDI,%R9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | scal (12.5%) |
| XOR %R10D,%R10D | 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 2dbf <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0x10f> | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1-2 | 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.96 | 0.1 | 0.94 | 0.14 | 0.8 | 0.43 | 0.75 | 0.44 | 0.62 | 0.61 |
| Run | Number of threads | Efficiency (ideal is 1) | Speedup | Ideal Speedup | Time (s) | Coverage (%) |
|---|---|---|---|---|---|---|
| run_1_thread | 1 | 1 | 1 | 1 | 4.7699999809265 | 2.5211417675018 |
| run_2_threads | 2 | 0.96 | 1.92 | 2 | 2.4649996757507 | 2.4826626777649 |
| run_4_threads | 4 | 0.94 | 3.75 | 4 | 1.2099999189377 | 2.2870194911957 |
| run_8_threads | 8 | 0.8 | 6.44 | 8 | 0.66500002145767 | 2.2179319858551 |
| run_16_threads | 16 | 0.75 | 12.03 | 16 | 0.3649999499321 | 1.7796595096588 |
| run_26_threads | 26 | 0.62 | 16.25 | 26 | 0.27499997615814 | 1.6303467750549 |
