Implementation notes: amd64, hunsnivy, crypto_kem/kyber90s1024

Computer: hunsnivy
Microarchitecture: amd64; Ivy Bridge+AES (306a9)
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_kem
Primitive: kyber90s1024
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
148036363744 0 082520 820 1720refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625
150952360289 0 080720 820 1720refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625
154789454936 0 073000 788 1752refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625
162354743604 0 059694 812 1720refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625
165958554953 0 073648 820 1720refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625
172211742639 0 059872 788 1752refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625
184623742087 0 058944 788 1752refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625
210568344359 0 061198 812 1720refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625
253847640371 0 056040 780 1720refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070920240625

Compiler output


cbd.c: cbd.c:28:10: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c:     f1 = _mm256_srli_epi16(f0, 1);
cbd.c:          ^
cbd.c: cbd.c:29:10: error: always_inline function '_mm256_and_si256' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c:     f0 = _mm256_and_si256(mask55, f0);
cbd.c:          ^
cbd.c: cbd.c:30:10: error: always_inline function '_mm256_and_si256' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c:     f1 = _mm256_and_si256(mask55, f1);
cbd.c:          ^
cbd.c: cbd.c:31:10: error: always_inline function '_mm256_add_epi8' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c:     f0 = _mm256_add_epi8(f0, f1);
cbd.c:          ^
cbd.c: cbd.c:33:10: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c:     f1 = _mm256_srli_epi16(f0, 2);
cbd.c:          ^
cbd.c: cbd.c:34:10: error: always_inline function '_mm256_and_si256' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c:     f0 = _mm256_and_si256(mask33, f0);
cbd.c:          ^
cbd.c: cbd.c:35:10: error: always_inline function '_mm256_and_si256' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c:     f1 = _mm256_and_si256(mask33, f1);
cbd.c:          ^
cbd.c: cbd.c:36:10: error: always_inline function '_mm256_add_epi8' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c:     f0 = _mm256_add_epi8(f0, mask33);
cbd.c:          ^
cbd.c: cbd.c:37:10: error: always_inline function '_mm256_sub_epi8' requires target feature 'avx2', but would be inlined into function 'cbd2' that is compiled without support for 'avx2'
cbd.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
avx2clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
avx2clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
avx2clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
avx2clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


aes256ctr.c: aes256ctr.c:90:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c:   BLOCK1(0x01);
aes256ctr.c:   ^
aes256ctr.c: aes256ctr.c:71:11: note: expanded from macro 'BLOCK1'
aes256ctr.c:   temp1 = _mm_aeskeygenassist_si128(temp2, IMM);                        \
aes256ctr.c:           ^
aes256ctr.c: /usr/lib/llvm-11/lib/clang/11.0.1/include/__wmmintrin_aes.h:136:12: note: expanded from macro '_mm_aeskeygenassist_si128'
aes256ctr.c:   (__m128i)__builtin_ia32_aeskeygenassist128((__v2di)(__m128i)(C), (int)(R))
aes256ctr.c:            ^
aes256ctr.c: aes256ctr.c:91:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c:   BLOCK2(0x01);
aes256ctr.c:   ^
aes256ctr.c: aes256ctr.c:81:11: note: expanded from macro 'BLOCK2'
aes256ctr.c:   temp1 = _mm_aeskeygenassist_si128(temp0, IMM);                        \
aes256ctr.c:           ^
aes256ctr.c: /usr/lib/llvm-11/lib/clang/11.0.1/include/__wmmintrin_aes.h:136:12: note: expanded from macro '_mm_aeskeygenassist_si128'
aes256ctr.c:   (__m128i)__builtin_ia32_aeskeygenassist128((__v2di)(__m128i)(C), (int)(R))
aes256ctr.c:            ^
aes256ctr.c: aes256ctr.c:93:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c:   BLOCK1(0x02);
aes256ctr.c:   ^
aes256ctr.c: aes256ctr.c:71:11: note: expanded from macro 'BLOCK1'
aes256ctr.c:   temp1 = _mm_aeskeygenassist_si128(temp2, IMM);                        \
aes256ctr.c:           ^
aes256ctr.c: /usr/lib/llvm-11/lib/clang/11.0.1/include/__wmmintrin_aes.h:136:12: note: expanded from macro '_mm_aeskeygenassist_si128'
aes256ctr.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
avx2clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


cbd.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
cbd.c:                  from cbd.c:2:
cbd.c: cbd.c: In function 'cbd2':
cbd.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:440:1: error: inlining failed in call to 'always_inline' '_mm256_cvtepi8_epi16': target specific option mismatch
cbd.c:   440 | _mm256_cvtepi8_epi16 (__m128i __X)
cbd.c:       | ^~~~~~~~~~~~~~~~~~~~
cbd.c: cbd.c:51:10: note: called from here
cbd.c:    51 |     f3 = _mm256_cvtepi8_epi16(_mm256_extracti128_si256(f3,1));
cbd.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbd.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
cbd.c:                  from cbd.c:2:
cbd.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:1093:1: error: inlining failed in call to 'always_inline' '_mm256_extracti128_si256': target specific option mismatch
cbd.c:  1093 | _mm256_extracti128_si256 (__m256i __X, const int __M)
cbd.c:       | ^~~~~~~~~~~~~~~~~~~~~~~~
cbd.c: cbd.c:51:10: note: called from here
cbd.c:    51 |     f3 = _mm256_cvtepi8_epi16(_mm256_extracti128_si256(f3,1));
cbd.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbd.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
cbd.c:                  from cbd.c:2:
cbd.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:440:1: error: inlining failed in call to 'always_inline' '_mm256_cvtepi8_epi16': target specific option mismatch
cbd.c:   440 | _mm256_cvtepi8_epi16 (__m128i __X)
cbd.c:       | ^~~~~~~~~~~~~~~~~~~~
cbd.c: cbd.c:50:10: note: called from here
cbd.c:    50 |     f2 = _mm256_cvtepi8_epi16(_mm256_castsi256_si128(f3));
cbd.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbd.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
avx2gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
avx2gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
avx2gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
avx2gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Passed TIMECOP


TIMECOP iterations: 1

Number of similar (implementation,compiler) pairs: 9, namely:
ImplementationCompiler
refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)