Implementation notes: amd64, hertz, crypto_hash/keccakc256treed2
Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240808
Operation: crypto_hash
Primitive: keccakc256treed2
Time | Object size | Test size | Implementation | Compiler | Benchmark date | SUPERCOP version |
4923 | 19782 0 0 | 37463 828 968 | T:sseu4 | clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
4940 | 101266 0 0 | 115157 804 1032 | T:sseu24 | gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
4948 | 101135 0 0 | 112973 804 968 | T:sseu24 | gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
4968 | 19782 0 0 | 37575 828 968 | T:sseu4 | clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
5023 | 21055 0 0 | 32893 804 968 | T:sseu4 | gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
5025 | 21186 0 0 | 35077 804 1032 | T:sseu4 | gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
5037 | 19646 0 0 | 31208 820 968 | T:sseu4 | clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
5046 | 20112 0 0 | 30344 780 936 | T:sseu4 | gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
5130 | 98225 0 0 | 108488 780 936 | T:sseu24 | gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240809 | 20240808 |
Test failure
error 111
Number of similar (implementation,compiler) pairs: 3, namely:
Implementation | Compiler |
T:sseu24 | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:sseu24 | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:sseu24 | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
Compiler output
DoublePermutation.c: DoublePermutation.c:507:5: error: '__builtin_ia32_vprotqi' needs target feature xop
DoublePermutation.c: 507 | rounds
DoublePermutation.c: | ^
DoublePermutation.c: ./KeccakF-1600-unrolling.macros:17:5: note: expanded from macro 'rounds'
DoublePermutation.c: 17 | thetaRhoPiChiIotaPrepareTheta( 0, A, E) \
DoublePermutation.c: | ^
DoublePermutation.c: DoublePermutation.c:78:21: note: expanded from macro 'thetaRhoPiChiIotaPrepareTheta'
DoublePermutation.c: 78 | Da = XOR128(Cu, ROL64in128(Ce, 1)); \
DoublePermutation.c: | ^
DoublePermutation.c: DoublePermutation.c:33:37: note: expanded from macro 'ROL64in128'
DoublePermutation.c: 33 | #define ROL64in128(a, o) _mm_roti_epi64(a, o)
DoublePermutation.c: | ^
DoublePermutation.c: /usr/lib/llvm-18/lib/clang/18/include/xopintrin.h:237:13: note: expanded from macro '_mm_roti_epi64'
DoublePermutation.c: 237 | ((__m128i)__builtin_ia32_vprotqi((__v2di)(__m128i)(A), (N)))
DoublePermutation.c: | ^
DoublePermutation.c: DoublePermutation.c:507:5: error: '__builtin_ia32_vprotqi' needs target feature xop
DoublePermutation.c: ./KeccakF-1600-unrolling.macros:17:5: note: expanded from macro 'rounds'
DoublePermutation.c: 17 | thetaRhoPiChiIotaPrepareTheta( 0, A, E) \
DoublePermutation.c: | ^
DoublePermutation.c: DoublePermutation.c:79:21: note: expanded from macro 'thetaRhoPiChiIotaPrepareTheta'
DoublePermutation.c: 79 | De = XOR128(Ca, ROL64in128(Ci, 1)); \
DoublePermutation.c: | ^
DoublePermutation.c: DoublePermutation.c:33:37: note: expanded from macro 'ROL64in128'
DoublePermutation.c: 33 | #define ROL64in128(a, o) _mm_roti_epi64(a, o)
DoublePermutation.c: | ^
DoublePermutation.c: ...
Number of similar (implementation,compiler) pairs: 3, namely:
Implementation | Compiler |
T:xopu24 | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:xopu24 | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:xopu24 | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
Compiler output
DoublePermutation.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/13/include/x86intrin.h:38,
DoublePermutation.c: from DoublePermutation.c:17:
DoublePermutation.c: /usr/lib/gcc/x86_64-linux-gnu/13/include/xopintrin.h: In function 'KeccakDoublePermutationOnWords':
DoublePermutation.c: /usr/lib/gcc/x86_64-linux-gnu/13/include/xopintrin.h:272:1: error: inlining failed in call to 'always_inline' '_mm_roti_epi64': target specific option mismatch
DoublePermutation.c: 272 | _mm_roti_epi64(__m128i __A, const int __B)
DoublePermutation.c: | ^~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:33:37: note: called from here
DoublePermutation.c: 33 | #define ROL64in128(a, o) _mm_roti_epi64(a, o)
DoublePermutation.c: | ^~~~~~~~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:276:11: note: in expansion of macro 'ROL64in128'
DoublePermutation.c: 276 | Bsu = ROL64in128(A##se, 2); \
DoublePermutation.c: | ^~~~~~~~~~
DoublePermutation.c: KeccakF-1600-unrolling.macros:40:5: note: in expansion of macro 'thetaRhoPiChiIota'
DoublePermutation.c: 40 | thetaRhoPiChiIota(23, E, A) \
DoublePermutation.c: | ^~~~~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:507:5: note: in expansion of macro 'rounds'
DoublePermutation.c: 507 | rounds
DoublePermutation.c: | ^~~~~~
DoublePermutation.c: /usr/lib/gcc/x86_64-linux-gnu/13/include/xopintrin.h:272:1: error: inlining failed in call to 'always_inline' '_mm_roti_epi64': target specific option mismatch
DoublePermutation.c: 272 | _mm_roti_epi64(__m128i __A, const int __B)
DoublePermutation.c: | ^~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:33:37: note: called from here
DoublePermutation.c: 33 | #define ROL64in128(a, o) _mm_roti_epi64(a, o)
DoublePermutation.c: | ^~~~~~~~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:273:11: note: in expansion of macro 'ROL64in128'
DoublePermutation.c: ...
Number of similar (implementation,compiler) pairs: 3, namely:
Implementation | Compiler |
T:xopu24 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:xopu24 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:xopu24 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
Namespace violations
DoublePermutation.o KeccakDoublePermutationOnWords T
DoublePermutation.o KeccakDoublePermutationOnWordsAfterXoring2x1024bits T
DoublePermutation.o KeccakDoublePermutationOnWordsAfterXoring2x1088bits T
DoublePermutation.o KeccakDoublePermutationOnWordsAfterXoring2x1344bits T
DoublePermutation.o KeccakDoublePermutationOnWordsAfterXoring2x512bits T
DoublePermutation.o KeccakF1600DoubleRoundConstants R
DoublePermutation.o KeccakInitializeDoubleState T
DoublePermutation.o rho56 R
DoublePermutation.o rho8 R
Number of similar (implementation,compiler) pairs: 9, namely:
Implementation | Compiler |
T:sseu24 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:sseu24 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:sseu24 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:sseu4 | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:sseu4 | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:sseu4 | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1)) |
T:sseu4 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:sseu4 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:sseu4 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |