Implementation notes: amd64, beelink, crypto_kem/sntrup653

Computer: beelink
Microarchitecture: amd64; Zen3 (a50f00)
Architecture: amd64
CPU ID: AuthenticAMD-00a50f00-178bfbff
SUPERCOP version: 20221122
Operation: crypto_kem
Primitive: sntrup653
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
7932614964 0 0136296 868 1824avxclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
7943315234 0 0136051 836 1792avxgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
7954915180 0 0134859 828 1760avxgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
7958614964 0 0141890 876 1760avxclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
7958914964 0 0137674 876 1760avxclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
7968315180 0 0136651 836 1792avxgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023010420221122
7979814964 0 0141906 876 1760avxclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
8002014982 0 0135642 876 1760avxclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023010420221122
8255715180 0 0138555 836 1792avxgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-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 653
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 653
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 653
kem.c: | ^~~
kem.c: params.h:4:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 4 | #define p 653
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 288
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 288
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 288
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 288
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 288
kem.c: | ^~~
kem.c: params.h:6:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 6 | #define w 288
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:26:11: note: expanded from macro 'p'
kem.c: #define p 653
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:26:11: note: expanded from macro 'p'
kem.c: #define p 653
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:26:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 26 | #define p 653
kem.c: | ^~~
kem.c: params.h:26:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 26 | #define p 653
kem.c: | ^~~
kem.c: params.h:31:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 31 | #define w 288
kem.c: | ^~~
kem.c: params.h:31:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 31 | #define w 288
kem.c: | ^~~
kem.c: params.h:31:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 31 | #define w 288
kem.c: | ^~~
kem.c: params.h:31:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 31 | #define w 288
kem.c: | ^~~
kem.c: params.h:31:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 31 | #define w 288
kem.c: | ^~~
kem.c: params.h:31:11: error: expected ';', ',' or ')' before numeric constant
kem.c: 31 | #define w 288
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