Implementation notes: amd64, latour, crypto_kem/bike2l1sc

Computer: latour
Architecture: amd64
CPU ID: GenuineIntel-000006fb-bfebfbff
SUPERCOP version: 20200530
Operation: crypto_kem
Primitive: bike2l1sc
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
6120903613853 32 032569 1016 1576ref_osslclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020042620200409
6126319813879 32 032713 1016 1576ref_osslclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020042620200409
6127807513463 32 031361 1016 1576ref_osslclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020042620200409
6131132113463 32 031361 1016 1576ref_osslclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020042620200409
6150035710975 32 027807 1008 1576ref_osslclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020042620200409
6182622911082 32 028759 984 1608ref_osslgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020042620200409
630107289779 32 026858 976 1576ref_osslgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020042620200409
6392361617443 32 037575 984 1608ref_osslgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020042620200409
6401131211080 32 029127 984 1608ref_osslgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020042620200409

Test failure

Implementation: crypto_kem/bike2l1sc/avx2_ossl
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
error 111

Number of similar (compiler,implementation) pairs: 8, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2_ossl avx512_ossl
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2_ossl avx512_ossl
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2_ossl avx512_ossl
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2_ossl avx512_ossl

Compiler output

Implementation: crypto_kem/bike2l1sc/avx2_ntl
Compiler: clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
aes.c: clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
aes.c: aes.c:27:17: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes256_enc' that is compiled without support for 'aes'
aes.c: block = _mm_aesenc_si128(block, ks->keys[i]);
aes.c: ^
aes.c: aes.c:29:13: error: always_inline function '_mm_aesenclast_si128' requires target feature 'aes', but would be inlined into function 'aes256_enc' that is compiled without support for 'aes'
aes.c: block = _mm_aesenclast_si128(block, ks->keys[AES256_ROUNDS]);
aes.c: ^
aes.c: 2 errors generated.

Number of similar (compiler,implementation) pairs: 12, namely:
CompilerImplementations
clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ntl avx512_ntl ref_ntl
clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ntl avx512_ntl ref_ntl
clang++ -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ntl avx512_ntl ref_ntl
clang++ -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ntl avx512_ntl ref_ntl

Compiler output

Implementation: crypto_kem/bike2l1sc/avx2_ossl
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
converts.S: converts.S:47:11: error: unknown token in expression
converts.S: .set out, %rdi
converts.S: ^
converts.S: converts.S:47:11: error: missing expression
converts.S: .set out, %rdi
converts.S: ^
converts.S: converts.S:49:11: error: unknown token in expression
converts.S: .set len, %rdx
converts.S: ^
converts.S: converts.S:49:11: error: missing expression
converts.S: .set len, %rdx
converts.S: ^
converts.S: converts.S:51:14: error: unknown token in expression
converts.S: .set in_itr, %r8
converts.S: ^
converts.S: converts.S:51:14: error: missing expression
converts.S: .set in_itr, %r8
converts.S: ^
converts.S: converts.S:53:15: error: unknown token in expression
converts.S: .set out_itr, %r10
converts.S: ^
converts.S: converts.S:53:15: error: missing expression
converts.S: .set out_itr, %r10
converts.S: ^
converts.S: converts.S:55:12: error: unknown token in expression
converts.S: ...

Number of similar (compiler,implementation) pairs: 10, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ossl avx512_ossl
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ossl avx512_ossl
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ossl avx512_ossl
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ossl avx512_ossl
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2_ossl avx512_ossl

Compiler output

Implementation: crypto_kem/bike2l1sc/avx2_ntl
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
aes.c: In file included from aes.h:21:0,
aes.c: from aes.c:12:
aes.c: /usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h: In function 'void aes256_enc(uint8_t*, const uint8_t*, const aes256_ks_t*)':
aes.c: /usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline '__m128i _mm_aesenc_si128(__m128i, __m128i)': target specific option mismatch
aes.c: _mm_aesenc_si128 (__m128i __X, __m128i __Y)
aes.c: ^
aes.c: aes.c:27:33: error: called from here
aes.c: block = _mm_aesenc_si128(block, ks->keys[i]);
aes.c: ^
aes.c: In file included from aes.h:21:0,
aes.c: from aes.c:12:
aes.c: /usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:69:1: error: inlining failed in call to always_inline '__m128i _mm_aesenclast_si128(__m128i, __m128i)': target specific option mismatch
aes.c: _mm_aesenclast_si128 (__m128i __X, __m128i __Y)
aes.c: ^
aes.c: aes.c:29:33: error: called from here
aes.c: block = _mm_aesenclast_si128(block, ks->keys[AES256_ROUNDS]);
aes.c: ^
aes.c: In file included from aes.h:21:0,
aes.c: from aes.c:12:
aes.c: /usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline '__m128i _mm_aesenc_si128(__m128i, __m128i)': target specific option mismatch
aes.c: _mm_aesenc_si128 (__m128i __X, __m128i __Y)
aes.c: ^
aes.c: aes.c:27:33: error: called from here
aes.c: block = _mm_aesenc_si128(block, ks->keys[i]);
aes.c: ^
aes.c: ...

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2_ntl avx512_ntl ref_ntl
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2_ntl avx512_ntl ref_ntl
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2_ntl avx512_ntl ref_ntl

Compiler output

Implementation: crypto_kem/bike2l1sc/avx2_ntl
Compiler: g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
aes.c: In file included from aes.h:21:0,
aes.c: from aes.c:12:
aes.c: /usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h: In function 'void aes256_enc(uint8_t*, const uint8_t*, const aes256_ks_t*)':
aes.c: /usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline '__m128i _mm_aesenc_si128(__m128i, __m128i)': target specific option mismatch
aes.c: _mm_aesenc_si128 (__m128i __X, __m128i __Y)
aes.c: ^
aes.c: aes.c:27:33: error: called from here
aes.c: block = _mm_aesenc_si128(block, ks->keys[i]);
aes.c: ^
aes.c: In file included from aes.h:21:0,
aes.c: from aes.c:12:
aes.c: /usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:69:1: error: inlining failed in call to always_inline '__m128i _mm_aesenclast_si128(__m128i, __m128i)': target specific option mismatch
aes.c: _mm_aesenclast_si128 (__m128i __X, __m128i __Y)
aes.c: ^
aes.c: aes.c:29:33: error: called from here
aes.c: block = _mm_aesenclast_si128(block, ks->keys[AES256_ROUNDS]);
aes.c: ^

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2_ntl avx512_ntl ref_ntl

Namespace violations

Implementation: crypto_kem/bike2l1sc/ref_ossl
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
aes_ctr_prf.o aes_ctr_prf T
aes_ctr_prf.o init_aes_ctr_prf_state T
converts_portable.o convert_to_redundant_rep T
converts_portable.o count_ones T
decode.o compute_syndrome T
decode.o decode T
decode.o recompute_syndrome T
decode.o split_e T
openssl_utils.o cyclic_product T
openssl_utils.o mod_inv T
openssl_utils.o ossl_add T
openssl_utils.o ossl_split_polynomial T
parallel_hash.o parallel_hash T
sampling.o generate_sparse_fake_rep T
sampling.o generate_sparse_rep T
sampling.o sample_uniform_r_bits T
sampling_portable.o secure_set_bits T
secure_decode_portable.o compute_counter_of_unsat T
secure_decode_portable.o find_error1 T
secure_decode_portable.o find_error2 T
utilities.o print_BE T
utilities.o print_LE T

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref_ossl
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref_ossl
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref_ossl
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref_ossl
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref_ossl
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref_ossl
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref_ossl
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE ref_ossl
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref_ossl