Implementation notes: amd64, icelake, crypto_kem/lightsaber2

Computer: icelake
Architecture: amd64
CPU ID: GenuineIntel-000706e5-bfebfbff
SUPERCOP version: 20200826
Operation: crypto_kem
Primitive: lightsaber2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
170694116746 32 0143360 4096 0T:avx2clang_-march=icelake-client_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
172454109213 32 0135168 4096 0T:avx2clang_-march=icelake-client_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
17744229199 32 053248 4096 0T:avx2clang_-march=icelake-client_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
23578364382 0 090112 4096 0T:refclang_-march=icelake-client_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
23645471323 0 098304 4096 0T:refclang_-march=icelake-client_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
63118317477 0 040960 4096 0T:refclang_-march=icelake-client_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
measure.c: ld: warning: could not create compact unwind for _crypto_stream_aes256ctr_dolbeau_aesenc_int_constbranchindex_xor: register 3 saved somewhere other than in frame

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang -march=icelake-client -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang -march=icelake-client -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: duplicate symbol '_inv9_avx' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_int45_avx' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_inv15_avx' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_inv3_avx' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_int0_avx' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_int30_avx' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_clock_matrix' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_matrix_vec_count' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_clock_secret' in:
try.c: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
SABER_indcpa.c: In file included from SABER_indcpa.c:6:
SABER_indcpa.c: ./poly_mul.inc:20:43: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
SABER_indcpa.c: printf(" Mod(%d,%lu)*x^%d + ", a[i], p,i);
SABER_indcpa.c: ~~~ ^
SABER_indcpa.c: %llu
SABER_indcpa.c: ./poly_mul.inc:22:41: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
SABER_indcpa.c: printf(" Mod(%d,%lu)*x^%d ", a[i], p,i);
SABER_indcpa.c: ~~~ ^
SABER_indcpa.c: %llu
SABER_indcpa.c: 2 warnings generated.
measure.c: ld: warning: could not create compact unwind for _crypto_stream_aes256ctr_dolbeau_aesenc_int_constbranchindex_xor: register 3 saved somewhere other than in frame

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=icelake-client -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=icelake-client -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: duplicate symbol '_clock_kp_mv' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_clock_cl_mv' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_clock_kp_sm' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_clock_cl_sm' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_clock2' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: duplicate symbol '_clock1' in:
try.c: crypto_kem_lightsaber2.a(kem.o)
try.c: crypto_kem_lightsaber2.a(SABER_indcpa.o)
try.c: ld: 6 duplicate symbols for architecture x86_64
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref