Gongrats now you have the currently most advanced C++ compiler installed on your machine. I think compilation is ok but now the error is during linktime. Cant you use ubuntu?maksimKorzh wrote: ↑Sun Oct 10, 2021 4:22 amOk, this worked, actually only redefining __blsr_u64(X) and __blsi_u64(X) was enough, than it was compiling for... more than 5 minutes for sure (why so long???) and then finally I got a linker error which is obviously not related to the movegen but maybe you can tell me what's wrong:dangi12012 wrote: ↑Sun Oct 10, 2021 1:51 amSure we are almost there replace the instances of / redefine:
_blsr_u64(X) => (X & (X-1))
_tzcnt_u64(X) => __builtin_ctz(X)
_blsi_u64(X) => (X & -X)
Then we have it finished. No more intrinsics needed.
Performance? I cant tell - should still be very very fast. Weak Intel with lower clocks and without intrinsics.
My gut feeling tells me maybe 30% of a Zen3 thread performance.
Greetings - DanielCode: Select all
../../clang/bin/clang-12 -march=native -std=c++20 -lstdc++ -O3 Gigantua.cpp -flto -o giga_clang /usr/bin/ld: /home/maksim/Downloads/clang/bin/../lib/LLVMgold.so: error loading plugin: /home/maksim/Downloads/clang/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
Anyways you also need llvm-12 as it seems:
Code: Select all
printf "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-12 main" |sudo tee /etc/apt/sources.list.d/llvm-toolchain-xenial-12.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key |sudo apt-key add -
sudo apt update
sudo apt install llvm-12
clang-12 -march=native -std=c++20 -lstdc++ -O3 Gigantua.cpp -flto -v -o giga_clang
