Implementation notes: amd64, beelink, crypto_kem/sntrup857

Computer: beelink
Microarchitecture: amd64; Zen3 (a50f00)
Architecture: amd64
CPU ID: AuthenticAMD-00a50f00-178bfbff
SUPERCOP version: 20221122
Operation: crypto_kem
Primitive: sntrup857
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
10240616484 0 0130387 836 1792avxgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
10252416232 0 0130042 876 1760avxclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
10260516430 0 0131019 836 1792avxgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
10268416430 0 0129259 828 1760avxgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
10270916214 0 0132074 876 1760avxclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
10303116214 0 0130648 868 1824avxclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
10307316214 0 0136306 876 1760avxclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
10557516430 0 0132859 836 1792avxgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
10592916214 0 0136290 876 1760avxclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122

Compiler output

Implementation: factored
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
kem.c: In file included from kem.c:4:
kem.c: In file included from /home/djb/supercop-20221122/supercop-data/beelink/amd64/include/constbranchindex/crypto_hash_sha512.h:4:
kem.c: In file included from /usr/include/openssl/rand.h:20:
kem.c: In file included from /usr/include/openssl/types.h:21:
kem.c: In file included from /usr/include/openssl/safestack.h:24:
kem.c: /usr/include/openssl/stack.h:45:60: error: expected ')'
kem.c: void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);
kem.c: ^
kem.c: ./params.h:4:11: note: expanded from macro 'p'
kem.c: #define p 857
kem.c: ^
kem.c: /usr/include/openssl/stack.h:45:28: note: to match this '('
kem.c: void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);
kem.c: ^
kem.c: In file included from kem.c:4:
kem.c: In file included from /home/djb/supercop-20221122/supercop-data/beelink/amd64/include/constbranchindex/crypto_hash_sha512.h:4:
kem.c: In file included from /usr/include/openssl/rand.h:23:
kem.c: In file included from /usr/include/openssl/evp.h:30:
kem.c: /usr/include/openssl/bio.h:734:51: error: expected ')'
kem.c: int BIO_ADDR_rawaddress(const BIO_ADDR *ap, void *p, size_t *l);
kem.c: ^
kem.c: ./params.h:4:11: note: expanded from macro 'p'
kem.c: #define p 857
kem.c: ^
kem.c: /usr/include/openssl/bio.h:734:24: note: to match this '('
kem.c: ...

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

Compiler output

Implementation: factored
Security model: constbranchindex
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
kem.c: In file included from kem.c:1:
kem.c: params.h:4:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 4 | #define p 857
kem.c: | ^~~
kem.c: params.h:4:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 4 | #define p 857
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 322
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 322
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 322
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 322
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 322
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 322
kem.c: | ^~~
kem.c: ...

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

Compiler output

Implementation: ref
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
kem.c: In file included from kem.c:5:
kem.c: In file included from /home/djb/supercop-20221122/supercop-data/beelink/amd64/include/constbranchindex/crypto_hash_sha512.h:4:
kem.c: In file included from /usr/include/openssl/rand.h:20:
kem.c: In file included from /usr/include/openssl/types.h:21:
kem.c: In file included from /usr/include/openssl/safestack.h:24:
kem.c: /usr/include/openssl/stack.h:45:60: error: expected ')'
kem.c: void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);
kem.c: ^
kem.c: ./params.h:41:11: note: expanded from macro 'p'
kem.c: #define p 857
kem.c: ^
kem.c: /usr/include/openssl/stack.h:45:28: note: to match this '('
kem.c: void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);
kem.c: ^
kem.c: In file included from kem.c:5:
kem.c: In file included from /home/djb/supercop-20221122/supercop-data/beelink/amd64/include/constbranchindex/crypto_hash_sha512.h:4:
kem.c: In file included from /usr/include/openssl/rand.h:23:
kem.c: In file included from /usr/include/openssl/evp.h:30:
kem.c: /usr/include/openssl/bio.h:734:51: error: expected ')'
kem.c: int BIO_ADDR_rawaddress(const BIO_ADDR *ap, void *p, size_t *l);
kem.c: ^
kem.c: ./params.h:41:11: note: expanded from macro 'p'
kem.c: #define p 857
kem.c: ^
kem.c: /usr/include/openssl/bio.h:734:24: note: to match this '('
kem.c: ...

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

Compiler output

Implementation: ref
Security model: constbranchindex
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
kem.c: In file included from kem.c:2:
kem.c: params.h:41:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 41 | #define p 857
kem.c: | ^~~
kem.c: params.h:41:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 41 | #define p 857
kem.c: | ^~~
kem.c: params.h:46:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 46 | #define w 322
kem.c: | ^~~
kem.c: params.h:46:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 46 | #define w 322
kem.c: | ^~~
kem.c: params.h:46:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 46 | #define w 322
kem.c: | ^~~
kem.c: params.h:46:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 46 | #define w 322
kem.c: | ^~~
kem.c: params.h:46:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 46 | #define w 322
kem.c: | ^~~
kem.c: params.h:46:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 46 | #define w 322
kem.c: | ^~~
kem.c: ...

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