Implementation notes: amd64, manny613, crypto_encrypt/pqrsa15

Computer: manny613
Architecture: amd64
CPU ID: GenuineIntel-000306e4-bfebfbff
SUPERCOP version: 20180818
Operation: crypto_encrypt
Primitive: pqrsa15
TimeImplementationCompilerBenchmark dateSUPERCOP version
198553368refgcc -m64 -march=nocona -O3 -fomit-frame-pointer2018090320180818
198621404refgcc -O3 -fomit-frame-pointer2018090320180818
198660784refgcc -m64 -march=corei7-avx -O3 -fomit-frame-pointer2018090320180818
198679380refgcc -m64 -O3 -fomit-frame-pointer2018090320180818
198685728refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2018090320180818
198689584refgcc -m64 -march=native -mtune=native -O3 -fomit-frame-pointer2018090320180818
198725976refgcc -march=k8 -O3 -fomit-frame-pointer2018090320180818
198780256refgcc -funroll-loops -m64 -march=k8 -O3 -fomit-frame-pointer2018090320180818
198795652refgcc -m64 -march=core2 -O3 -fomit-frame-pointer2018090320180818
198800040refgcc -funroll-loops -march=nocona -O2 -fomit-frame-pointer2018090320180818
198812336refgcc -funroll-loops -O3 -fomit-frame-pointer2018090320180818
198815616refgcc -funroll-loops -march=barcelona -O3 -fomit-frame-pointer2018090320180818
198824256refgcc -funroll-loops -m64 -march=nocona -O3 -fomit-frame-pointer2018090320180818
198834856refgcc -fno-schedule-insns -O3 -fomit-frame-pointer2018090320180818
198846252refgcc -m64 -march=corei7 -O3 -fomit-frame-pointer2018090320180818
198869720refgcc -m64 -march=nocona -O2 -fomit-frame-pointer2018090320180818
198878080refgcc -m64 -march=core2 -msse4 -O3 -fomit-frame-pointer2018090320180818
198886472refgcc -m64 -march=native -mtune=native -O2 -fomit-frame-pointer2018090320180818
198892736refgcc -m64 -march=core2 -msse4.1 -O3 -fomit-frame-pointer2018090320180818
198894044refgcc -m64 -march=core2 -msse4.1 -O2 -fomit-frame-pointer2018090320180818
198902448refgcc -funroll-loops -m64 -march=k8 -O -fomit-frame-pointer2018090320180818
198904660refgcc -m64 -march=nocona -O -fomit-frame-pointer2018090320180818
198906456refgcc -funroll-loops -m64 -O3 -fomit-frame-pointer2018090320180818
198910520refgcc -m64 -march=core-avx-i -O3 -fomit-frame-pointer2018090320180818
198913236refgcc -m64 -march=barcelona -O3 -fomit-frame-pointer2018090320180818
198914648refgcc -funroll-loops -m64 -march=k8 -O2 -fomit-frame-pointer2018090320180818
198917864refgcc -funroll-loops -O2 -fomit-frame-pointer2018090320180818
198918084refgcc -march=nocona -O3 -fomit-frame-pointer2018090320180818
198919340refgcc -march=k8 -O2 -fomit-frame-pointer2018090320180818
198919616refgcc -O2 -fomit-frame-pointer2018090320180818
198926880refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2018090320180818
198933816refgcc -m64 -O2 -fomit-frame-pointer2018090320180818
198934624refgcc -march=nocona -O -fomit-frame-pointer2018090320180818
198938252refgcc -funroll-loops -m64 -O -fomit-frame-pointer2018090320180818
198977800refgcc -funroll-loops -march=nocona -O -fomit-frame-pointer2018090320180818
198987592reficc -xAVX -O3 -fomit-frame-pointer2018090320180818
198996780refgcc -funroll-loops -march=barcelona -O2 -fomit-frame-pointer2018090320180818
199000004refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2018090320180818
199004044reficc -xSSE4.2 -O2 -fomit-frame-pointer2018090320180818
199011852refgcc -O -fomit-frame-pointer2018090320180818
199012012refgcc -m64 -march=core2 -msse4.1 -O -fomit-frame-pointer2018090320180818
199013060reficc -xSSE4.1 -O2 -fomit-frame-pointer2018090320180818
199020088refgcc -funroll-loops -m64 -march=nocona -O2 -fomit-frame-pointer2018090320180818
199021788refgcc -m64 -march=corei7 -O -fomit-frame-pointer2018090320180818
199023072refgcc -m64 -O -fomit-frame-pointer2018090320180818
199023380reficc -xSSE4.2 -O3 -fomit-frame-pointer2018090320180818
199023932refgcc -funroll-loops -m64 -march=barcelona -O2 -fomit-frame-pointer2018090320180818
199033352reficc -xAVX -O2 -fomit-frame-pointer2018090320180818
199037088refgcc -funroll-loops -m64 -march=barcelona -O -fomit-frame-pointer2018090320180818
199038024refgcc -funroll-loops -m64 -O2 -fomit-frame-pointer2018090320180818
199047196reficc -xCORE-AVX-I -O3 -fomit-frame-pointer2018090320180818
199061984refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2018090320180818
199080264refgcc -march=nocona -O2 -fomit-frame-pointer2018090320180818
199082624refgcc -funroll-loops -march=barcelona -O -fomit-frame-pointer2018090320180818
199089588refgcc -funroll-loops -O -fomit-frame-pointer2018090320180818
199096180refgcc -funroll-loops -march=barcelona -Os -fomit-frame-pointer2018090320180818
199103756refgcc -funroll-loops -m64 -march=nocona -O -fomit-frame-pointer2018090320180818
199106192refgcc -m64 -march=core2 -msse4 -O2 -fomit-frame-pointer2018090320180818
199111828refgcc -m64 -march=k8 -O -fomit-frame-pointer2018090320180818
199116252refgcc -m64 -march=corei7-avx -O2 -fomit-frame-pointer2018090320180818
199117236refgcc -funroll-loops -march=k8 -O3 -fomit-frame-pointer2018090320180818
199119488refgcc -Os -fomit-frame-pointer2018090320180818
199120840refgcc -m64 -Os -fomit-frame-pointer2018090320180818
199133704refgcc -fno-schedule-insns -O2 -fomit-frame-pointer2018090320180818
199134628reficc2018090320180818
199138600refgcc -m64 -march=k8 -O3 -fomit-frame-pointer2018090320180818
199139836refgcc -march=barcelona -O -fomit-frame-pointer2018090320180818
199141220refgcc -m64 -march=core2 -Os -fomit-frame-pointer2018090320180818
199143248refgcc -funroll-loops -m64 -march=nocona -Os -fomit-frame-pointer2018090320180818
199143360refgcc -m64 -march=core-avx-i -O -fomit-frame-pointer2018090320180818
199146464refgcc -funroll-loops -m64 -march=k8 -Os -fomit-frame-pointer2018090320180818
199146632refgcc -funroll-loops -march=k8 -O -fomit-frame-pointer2018090320180818
199153440refgcc -m64 -march=corei7-avx -O -fomit-frame-pointer2018090320180818
199166832reficc -xCORE-AVX-I -O2 -fomit-frame-pointer2018090320180818
199171204refgcc -funroll-loops -fno-schedule-insns -O2 -fomit-frame-pointer2018090320180818
199172044refgcc -m64 -march=core2 -O2 -fomit-frame-pointer2018090320180818
199186816refgcc -m64 -march=core2 -O -fomit-frame-pointer2018090320180818
199218464refgcc -m64 -march=native -mtune=native -O -fomit-frame-pointer2018090320180818
199222724refgcc -m64 -march=nocona -Os -fomit-frame-pointer2018090320180818
199232816refgcc -m64 -march=barcelona -O2 -fomit-frame-pointer2018090320180818
199235484refgcc -funroll-loops -march=nocona -Os -fomit-frame-pointer2018090320180818
199272000refgcc -march=nocona -Os -fomit-frame-pointer2018090320180818
199272712refgcc -fno-schedule-insns -Os -fomit-frame-pointer2018090320180818
199272780refgcc -funroll-loops -fno-schedule-insns -O -fomit-frame-pointer2018090320180818
199275156refgcc -fno-schedule-insns -O -fomit-frame-pointer2018090320180818
199275752refgcc -m64 -march=k8 -O2 -fomit-frame-pointer2018090320180818
199279860refgcc -m64 -march=corei7 -O2 -fomit-frame-pointer2018090320180818
199281496refgcc -funroll-loops -march=k8 -O2 -fomit-frame-pointer2018090320180818
199286100refgcc -m64 -march=core-avx-i -Os -fomit-frame-pointer2018090320180818
199286456refgcc -m64 -march=barcelona -O -fomit-frame-pointer2018090320180818
199298000refgcc -m64 -march=native -mtune=native -Os -fomit-frame-pointer2018090320180818
199302772refgcc -m64 -march=k8 -Os -fomit-frame-pointer2018090320180818
199304080refgcc -m64 -march=corei7-avx -Os -fomit-frame-pointer2018090320180818
199313932refgcc -m64 -march=core2 -msse4.1 -Os -fomit-frame-pointer2018090320180818
199314876refgcc -funroll-loops -m64 -march=barcelona -O3 -fomit-frame-pointer2018090320180818
199323720refgcc -march=barcelona -O3 -fomit-frame-pointer2018090320180818
199337380refgcc -funroll-loops -m64 -Os -fomit-frame-pointer2018090320180818
199345616refgcc -march=barcelona -Os -fomit-frame-pointer2018090320180818
199353836reficc -xSSE4.1 -O3 -fomit-frame-pointer2018090320180818
199355784refgcc -m64 -march=core-avx-i -O2 -fomit-frame-pointer2018090320180818
199357568refgcc -march=barcelona -O2 -fomit-frame-pointer2018090320180818
199361092refgcc -funroll-loops -march=nocona -O3 -fomit-frame-pointer2018090320180818
199403088refgcc -funroll-loops -fno-schedule-insns -Os -fomit-frame-pointer2018090320180818
199406360refgcc -m64 -march=core2 -msse4 -O -fomit-frame-pointer2018090320180818
199411016refgcc -m64 -march=barcelona -Os -fomit-frame-pointer2018090320180818
199435436refgcc -march=k8 -Os -fomit-frame-pointer2018090320180818
199439588refgcc -funroll-loops -m64 -march=barcelona -Os -fomit-frame-pointer2018090320180818
199444512refgcc -march=k8 -O -fomit-frame-pointer2018090320180818
199461924refgcc -funroll-loops -fno-schedule-insns -O3 -fomit-frame-pointer2018090320180818
199503104refgcc -funroll-loops -march=k8 -Os -fomit-frame-pointer2018090320180818
199532796refgcc -m64 -march=core2 -msse4 -Os -fomit-frame-pointer2018090320180818
199660500refgcc -funroll-loops -Os -fomit-frame-pointer2018090320180818
199741204refgcc -m64 -march=corei7 -Os -fomit-frame-pointer2018090320180818
199858380reficc -no-vec2018090320180818
200344992refgcc -funroll-loops2018090320180818
200521800refgcc2018090320180818

Test failure

Implementation: crypto_encrypt/pqrsa15/ref
Compiler: gcc -m64 -march=core-avx2 -O2 -fomit-frame-pointer
error 111

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
gcc -m64 -march=core-avx2 -O2 -fomit-frame-pointer ref
gcc -m64 -march=core-avx2 -O -fomit-frame-pointer ref
gcc -m64 -march=core-avx2 -Os -fomit-frame-pointer ref

Compiler output

Implementation: crypto_encrypt/pqrsa15/ref
Compiler: cc
dec.c: dec.c: In function 'remainders_via_tree':
dec.c: dec.c:102:3: warning: passing argument 3 of 'remainders_via_tree' from incompatible pointer type [enabled by default]
dec.c: remainders_via_tree(xmodq,x,q,qlen);
dec.c: ^
dec.c: dec.c:75:13: note: expected 'const struct __mpz_struct (*)[1]' but argument is of type 'struct __mpz_struct (*)[1]'
dec.c: static void remainders_via_tree(mpz_t *xmodp,const mpz_t x,const mpz_t *p,long long plen)
dec.c: ^
dec.c: dec.c: In function 'cuberoot':
dec.c: dec.c:185:3: warning: passing argument 3 of 'sumfrac' from incompatible pointer type [enabled by default]
dec.c: sumfrac(x,t,xmodp,p,K);
dec.c: ^
dec.c: dec.c:31:13: note: expected 'const struct __mpz_struct (*)[1]' but argument is of type 'struct __mpz_struct (*)[1]'
dec.c: static void sumfrac(mpz_t num,mpz_t den,const mpz_t *x,const mpz_t *p,long long plen)
dec.c: ^
dec.c: dec.c: In function 'crypto_encrypt_pqrsa15_ref_open':
dec.c: dec.c:246:3: warning: passing argument 2 of 'cuberoot' from incompatible pointer type [enabled by default]
dec.c: cuberoot(xint,p,pinv,N);
dec.c: ^
dec.c: dec.c:142:12: note: expected 'const struct __mpz_struct (*)[1]' but argument is of type 'struct __mpz_struct (*)[1]'
dec.c: static int cuberoot(mpz_t x,const mpz_t *p,const mpz_t *pinv,const mpz_t N)
dec.c: ^
dec.c: dec.c:246:3: warning: passing argument 3 of 'cuberoot' from incompatible pointer type [enabled by default]
dec.c: cuberoot(xint,p,pinv,N);
dec.c: ^
dec.c: dec.c:142:12: note: expected 'const struct __mpz_struct (*)[1]' but argument is of type 'struct __mpz_struct (*)[1]'
dec.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
cc ref

Compiler output

Implementation: crypto_encrypt/pqrsa15/ref
Compiler: icc
dec.c: dec.c(102): warning #167: argument of type "mpz_t *" is incompatible with parameter of type "const mpz_t *"
dec.c: remainders_via_tree(xmodq,x,q,qlen);
dec.c: ^
dec.c:
dec.c: dec.c(185): warning #167: argument of type "mpz_t *" is incompatible with parameter of type "const mpz_t *"
dec.c: sumfrac(x,t,xmodp,p,K);
dec.c: ^
dec.c:
dec.c: dec.c(246): warning #167: argument of type "mpz_t *" is incompatible with parameter of type "const mpz_t *"
dec.c: cuberoot(xint,p,pinv,N);
dec.c: ^
dec.c:
dec.c: dec.c(246): warning #167: argument of type "mpz_t *" is incompatible with parameter of type "const mpz_t *"
dec.c: cuberoot(xint,p,pinv,N);
dec.c: ^
dec.c:
dec.c: dec.c(334): warning #167: argument of type "mpz_t *" is incompatible with parameter of type "const mpz_t *"
dec.c: sumfrac(q,N,0,p,K);
dec.c: ^
dec.c:
dec.c: dec.c(335): warning #167: argument of type "mpz_t *" is incompatible with parameter of type "const mpz_t *"
dec.c: remainders(qmodp,q,p);
dec.c: ^
dec.c:

Number of similar (compiler,implementation) pairs: 10, namely:
CompilerImplementations
icc ref
icc -no-vec ref
icc -xAVX -O2 -fomit-frame-pointer ref
icc -xAVX -O3 -fomit-frame-pointer ref
icc -xCORE-AVX-I -O2 -fomit-frame-pointer ref
icc -xCORE-AVX-I -O3 -fomit-frame-pointer ref
icc -xSSE4.1 -O2 -fomit-frame-pointer ref
icc -xSSE4.1 -O3 -fomit-frame-pointer ref
icc -xSSE4.2 -O2 -fomit-frame-pointer ref
icc -xSSE4.2 -O3 -fomit-frame-pointer ref