Implementation notes: amd64, sliver, crypto_dh/claus

Computer: sliver
Architecture: amd64
CPU ID: GenuineIntel-00040651-bfebfbff
SUPERCOP version: 20160731
Operation: crypto_dh
Primitive: claus
TimeImplementationCompilerBenchmark dateSUPERCOP version
19805520gmpg++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072520160718
19870086gmpclang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072520160718
19870782gmpg++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072520160718
19952226opensslgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072520160718
20109390gmpg++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072520160718
20122692gmpg++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072520160718
20568960opensslgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072520160718
20603010opensslclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072520160718
20617266opensslgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072520160718
20651970opensslgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072520160718

Compiler output

Implementation: crypto_dh/claus/ntl
Compiler: clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
keypair.cpp: keypair.cpp:1:10: fatal error: 'NTL/ZZ.h' file not found
keypair.cpp: #include gt;
keypair.cpp: ^
keypair.cpp: 1 error generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ntl

Compiler output

Implementation: crypto_dh/claus/cryptopp
Compiler: clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
keypair.cpp: keypair.cpp:1:10: fatal error: 'cryptopp/dh.h' file not found
keypair.cpp: #include gt;
keypair.cpp: ^
keypair.cpp: 1 error generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments cryptopp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
try.cpp: /tmp/try-anything-9e9ac1.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp/try-anything-760081.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments gmp

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
try.c: /tmp/try-anything-97b68b.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp/try-anything-cc7520.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments openssl

Compiler output

Implementation: crypto_dh/claus/ntl
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
keypair.cpp: keypair.cpp:1:20: error: NTL/ZZ.h: No such file or directory
keypair.cpp: keypair.cpp:2: error: 'NTL' is not a namespace-name
keypair.cpp: keypair.cpp:2: error: expected namespace-name before ';' token
keypair.cpp: keypair.cpp: In function 'int crypto_dh_claus_ntl_keypair(unsigned char*, unsigned char*)':
keypair.cpp: keypair.cpp:18: error: 'ZZ' was not declared in this scope
keypair.cpp: keypair.cpp:18: error: expected `;' before 'a'
keypair.cpp: keypair.cpp:19: error: expected `;' before 'p'
keypair.cpp: keypair.cpp:20: error: expected `;' before 'base'
keypair.cpp: keypair.cpp:21: error: expected `;' before 'result'
keypair.cpp: keypair.cpp:22: error: 'base' was not declared in this scope
keypair.cpp: keypair.cpp:23: error: 'a' was not declared in this scope
keypair.cpp: keypair.cpp:23: error: 'ZZFromBytes' was not declared in this scope
keypair.cpp: keypair.cpp:24: error: 'p' was not declared in this scope
keypair.cpp: keypair.cpp:24: error: 'conv' was not declared in this scope
keypair.cpp: keypair.cpp:25: error: 'result' was not declared in this scope
keypair.cpp: keypair.cpp:25: error: 'PowerMod' was not declared in this scope
keypair.cpp: keypair.cpp:26: error: 'BytesFromZZ' was not declared in this scope

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv ntl
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv ntl
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv ntl
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv ntl

Compiler output

Implementation: crypto_dh/claus/cryptopp
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
keypair.cpp: keypair.cpp:1:25: error: cryptopp/dh.h: No such file or directory
keypair.cpp: keypair.cpp:8: error: 'CryptoPP' is not a namespace-name
keypair.cpp: keypair.cpp:8: error: expected namespace-name before ';' token
keypair.cpp: keypair.cpp: In function 'int crypto_dh_claus_cryptopp_keypair(unsigned char*, unsigned char*)':
keypair.cpp: keypair.cpp:16: error: 'Integer' does not name a type
keypair.cpp: keypair.cpp:17: error: 'Integer' does not name a type
keypair.cpp: keypair.cpp:18: error: 'Integer' was not declared in this scope
keypair.cpp: keypair.cpp:18: error: expected `;' before 'a'
keypair.cpp: keypair.cpp:19: error: expected `;' before 'result'
keypair.cpp: keypair.cpp:20: error: 'result' was not declared in this scope

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv cryptopp
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv cryptopp
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv cryptopp
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv cryptopp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
try.cpp: /tmp//ccFN1XuB.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp//ccA2rAS2.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv gmp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv
try.cpp: /tmp//cc21fAji.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp//ccyDa3YP.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv gmp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv
try.cpp: /tmp//ccRD2ZWb.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp//ccRuj1ZY.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv gmp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv
try.cpp: /tmp//ccXqqLb2.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp//ccDDHR0J.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv gmp

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
try.c: /tmp//ccCCwAB2.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccE0Bu81.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv openssl

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv
try.c: /tmp//cctsHC2C.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccBvR3AX.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv openssl

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv
try.c: /tmp//cc44sgau.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccr1C5A8.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv openssl

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv
try.c: /tmp//ccIwEtrQ.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccAzW2h8.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv openssl