| Loop Id: 8 | Module: kmeans-clang-O3 | Source: main.cpp:59-67 | Coverage: 2.50% |
|---|
| Loop Id: 8 | Module: kmeans-clang-O3 | Source: main.cpp:59-67 | Coverage: 2.50% |
|---|
0x2d50 MOV -0x38(%RBP),%R13D |
0x2d54 LEA 0x1(%RAX),%R8 |
0x2d58 MOVSXD %R13D,%R9 |
0x2d5b CMP %R9,%RAX |
0x2d5e MOV %R8,%RAX |
0x2d61 JGE 2dc5 |
0x2d63 TEST %ECX,%ECX |
0x2d65 JLE 2d54 |
0x2d67 MOV %RAX,%R8 |
0x2d6a SAL $0x4,%R8 |
0x2d6e VMOVSD (%RSI,%R8,1),%XMM1 |
0x2d74 VMOVSD 0x8(%RSI,%R8,1),%XMM2 |
0x2d7b MOV (%RDX),%R8 |
0x2d7e MOV %RDI,%R9 |
0x2d81 XOR %R10D,%R10D |
0x2d84 VMOVAPD %XMM0,%XMM3 |
0x2d88 JMP 2d9f |
(9) 0x2d90 INC %R10 |
(9) 0x2d93 MOVSXD %ECX,%R11 |
(9) 0x2d96 ADD $0x10,%R9 |
(9) 0x2d9a CMP %R11,%R10 |
(9) 0x2d9d JGE 2d50 |
(9) 0x2d9f VSUBSD -0x8(%R9),%XMM1,%XMM5 |
(9) 0x2da5 VSUBSD (%R9),%XMM2,%XMM4 |
(9) 0x2daa VMULSD %XMM4,%XMM4,%XMM4 |
(9) 0x2dae VFMADD231SD %XMM5,%XMM5,%XMM4 |
(9) 0x2db3 VUCOMISD %XMM4,%XMM3 |
(9) 0x2db7 JBE 2d90 |
(9) 0x2db9 MOV %R10D,(%R8,%RAX,4) |
(9) 0x2dbd MOV (%RBX),%ECX |
(9) 0x2dbf VMOVAPD %XMM4,%XMM3 |
(9) 0x2dc3 JMP 2d90 |
/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 |
| ○ | main | main.cpp:125 | kmeans-clang-O3 |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3 |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►52.03+ | __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 |
| ○ | main | main.cpp:125 | kmeans-clang-O3 |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3 | |
| ►47.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 |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►75.28+ | __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.51+ | __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 |
| ○ | main | main.cpp:125 | kmeans-clang-O3 |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3 |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►86.59+ | __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.65+ | __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 |
| ○ | main | main.cpp:125 | kmeans-clang-O3 |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3 |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►92.01+ | __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 | |
| ►7.05+ | __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 |
| ○ | main | main.cpp:125 | kmeans-clang-O3 |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3 |
| Coverage (%) | Name | Source Location | Module |
|---|---|---|---|
| ►96.53+ | __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.26+ | __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 |
| ○ | main | main.cpp:125 | kmeans-clang-O3 |
| ○ | __libc_init_first | libc.so.6 | |
| ○ | __libc_start_main | libc.so.6 | |
| ○ | _start | kmeans-clang-O3 |
| 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.00 |
| CQA speedup if FP arith vectorized | 1.00 |
| CQA speedup if fully vectorized | 13.66 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 1.90 |
| 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.33 |
| CQA cycles if no scalar integer | 1.67 |
| CQA cycles if FP arith vectorized | 3.33 |
| CQA cycles if fully vectorized | 0.24 |
| Front-end cycles | 3.33 |
| P0 cycles | 1.75 |
| P1 cycles | 1.75 |
| P2 cycles | 1.33 |
| P3 cycles | 1.33 |
| 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.44 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 13.67 |
| Nb uops | 13.33 |
| Nb loads | 2.67 |
| 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.39 |
| 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 | 8.33 |
| Vectorization ratio load | 0.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 | 10.94 |
| Vector-efficiency ratio load | 10.42 |
| 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.43 |
| CQA speedup if FP arith vectorized | 1.00 |
| CQA speedup if fully vectorized | 13.60 |
| CQA speedup if no inter-iteration dependency | NA |
| CQA speedup if next bottleneck killed | 2.13 |
| 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.25 |
| CQA cycles if no scalar integer | 1.75 |
| CQA cycles if FP arith vectorized | 4.25 |
| CQA cycles if fully vectorized | 0.31 |
| Front-end cycles | 4.25 |
| P0 cycles | 2.00 |
| P1 cycles | 2.00 |
| P2 cycles | 2.00 |
| P3 cycles | 2.00 |
| 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.37 |
| Stall cycles (UFS) | 0.00 |
| Nb insns | 17.00 |
| Nb uops | 17.00 |
| Nb loads | 4.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 | 6.59 |
| 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 | 12.50 |
| Vectorization ratio load | 0.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 | 11.72 |
| Vector-efficiency ratio load | 10.42 |
| 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 |
| nb instructions | 13.67 |
| nb uops | 13.33 |
| loop length | 45 |
| used x86 registers | 8.33 |
| used mmx registers | 0 |
| used xmm registers | 2.67 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 0.67 |
| micro-operation queue | 3.33 cycles |
| front end | 3.33 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 1.75 | 1.75 | 1.33 | 1.33 | 0.00 | 1.75 | 1.75 | 0.00 |
| cycles | 1.75 | 1.75 | 1.33 | 1.33 | 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.44 |
| Stall cycles | 0.00 |
| Front-end | 3.33 |
| Dispatch | 1.75 |
| Data deps. | 0.00 |
| Overall L1 | 3.33 |
| 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 | 33% |
| 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 | 100% |
| all | 8% |
| 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 | 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 | 16% |
| 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 | 25% |
| all | 10% |
| load | 10% |
| 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 |
| 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 2dc5 <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0x145> | 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 2d54 <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0xd4> | 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 |
| nb instructions | 17 |
| nb uops | 17 |
| loop length | 58 |
| used x86 registers | 10 |
| used mmx registers | 0 |
| used xmm registers | 4 |
| used ymm registers | 0 |
| used zmm registers | 0 |
| nb stack references | 1 |
| micro-operation queue | 4.25 cycles |
| front end | 4.25 cycles |
| P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | |
|---|---|---|---|---|---|---|---|---|
| uops | 2.00 | 2.00 | 2.00 | 2.00 | 0.00 | 2.00 | 2.00 | 0.00 |
| cycles | 2.00 | 2.00 | 2.00 | 2.00 | 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.37 |
| Stall cycles | 0.00 |
| Front-end | 4.25 |
| Dispatch | 2.00 |
| Data deps. | 0.00 |
| Overall L1 | 4.25 |
| 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 | 33% |
| 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 | 100% |
| all | 12% |
| 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 | 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 | 16% |
| 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 | 25% |
| all | 11% |
| load | 10% |
| 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 2dc5 <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0x145> | 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 2d54 <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0xd4> | 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 |
| VMOVSD (%RSI,%R8,1),%XMM1 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| VMOVSD 0x8(%RSI,%R8,1),%XMM2 | 1 | 0 | 0 | 0.50 | 0.50 | 0 | 0 | 0 | 0 | 4-5 | 0.50 | scal (12.5%) |
| 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,%XMM3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | vect (25.0%) |
| JMP 2d9f <_Z7k_meansiP7point_tS0_PiS0_ii.omp_outlined+0x11f> | 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 | 1.02 | 0 | 0.9 | 0.23 | 0.87 | 0.26 | 0.75 | 0.46 | 0.67 | 0.5 |
| Run | Number of threads | Efficiency (ideal is 1) | Speedup | Ideal Speedup | Time (s) | Coverage (%) |
|---|---|---|---|---|---|---|
| run_1_thread | 1 | 1 | 1 | 1 | 4.8099994659424 | 2.4974689483643 |
| run_2_threads | 2 | 1.02 | 2.05 | 2 | 2.3699996471405 | 2.3086669445038 |
| run_4_threads | 4 | 0.9 | 3.61 | 4 | 1.3200000524521 | 2.3659918308258 |
| run_8_threads | 8 | 0.87 | 6.98 | 8 | 0.62999993562698 | 2.0459623336792 |
| run_16_threads | 16 | 0.75 | 11.95 | 16 | 0.34499999880791 | 1.7996025085449 |
| run_26_threads | 26 | 0.67 | 17.51 | 26 | 0.22500003874302 | 1.5230621099472 |
