Life In 19x19 http://lifein19x19.com/ |
|
Compiling some engines for linux http://lifein19x19.com/viewtopic.php?f=18&t=16046 |
Page 2 of 2 |
Author: | pnprog [ Sat Mar 16, 2019 3:02 am ] |
Post subject: | Re: Compiling some engines for linux |
xela wrote: Phoenix Go This is just to mention that the instructions for compilation were added on the github project page. Easy enough for me to be able to compile and run it.
I gave up on this one. I tried following the instructions at https://github.com/Tencent/PhoenixGo The problem is that it uses bazel as its build system, which is new to me, so I'm not well qualified to troubleshoot the problems. Bazel will download a few hundred megabytes of stuff, then try to build TensorFlow configured according to the selected PhoenixGo options, spit out a bunch of compiler warnings, then fail on one of the TensorFlow components. I didn't want to keep retrying it because it's downloading an awful lot of stuff each time. I did find some old forum posts saying that TensorFlow won't work with bazel version 12 or 13, so you should use bazel 11. I tried that, as well as the newest bazel (version 17), with the same results each time. |
Author: | xela [ Sat Mar 16, 2019 3:44 am ] |
Post subject: | Re: Compiling some engines for linux |
pnprog wrote: This is just to mention that the instructions for compilation were added on the github project page. Easy enough for me to be able to compile and run it. Glad to hear that it worked for you! The instructions don't seem to have changed since I tried in September, except that the current version of bazel is now 19 not 17. Maybe a bazel update has fixed the problem? |
Author: | pnprog [ Sat Mar 16, 2019 7:53 am ] |
Post subject: | Re: Compiling some engines for linux |
xela wrote: pnprog wrote: This is just to mention that the instructions for compilation were added on the github project page. Easy enough for me to be able to compile and run it. Glad to hear that it worked for you! The instructions don't seem to have changed since I tried in September, except that the current version of bazel is now 19 not 17. Maybe a bazel update has fixed the problem? Here are the condensed instructions that are working for me: https://github.com/Tencent/PhoenixGo/blob/master/docs/FAQ.md/#b0-it-is-too-hard-to-install-bazel-or-start-bazel It tells how to install bazel which is useful to install AQ (i am on it right now). |
Author: | pnprog [ Sat Mar 16, 2019 10:01 am ] |
Post subject: | Re: Compiling some engines for linux |
I also went again through the compilation of Ray. One thing is different now, git needs the --recursive option to fetch some code for the src/lz/Eigen folder. Code: sudo apt install libatlas-base-dev #there are other dependancy, but that one in particular was missing for me git clone --recursive https://github.com/zakki/Ray.git --branch lz --single-branch . make The compilation will still fail, with errors such as: Code: src/UctSearch.cpp:1694:41: error: no matching function for call to ‘atomic_fetch_add(std::atomic<long unsigned int>*, int&)’ atomic_fetch_add(&depth_sum, c.depth); ... ^ src/UctSearch.cpp:1695:37: error: no matching function for call to ‘atomic_fetch_add(std::atomic<long unsigned int>*, int)’ atomic_fetch_add(&depth_count, 1); ^ ... Makefile:24: recipe for target 'src/UctSearch.o' failed make: *** [src/UctSearch.o] Error 1 I found out that replacing lines 219/220 in src/UctSearch.cpp as follow fixes the issue: Before: Code: static std::atomic<uint64_t> depth_count; static std::atomic<uint64_t> depth_sum; After: Code: static std::atomic<double> depth_count; static std::atomic<double> depth_sum; This also work, but I have no idea what the difference mean: Code: static std::atomic<double_t> depth_count; static std::atomic<double_t> depth_sum; It's used to calculate and display the average tree search depth, so nothing critical I guess. Anyway, I sent a PR to the project. |
Author: | pnprog [ Sat Mar 16, 2019 9:04 pm ] |
Post subject: | Re: Compiling some engines for linux |
pnprog wrote: It tells how to install bazel which is useful to install AQ (i am on it right now). I must admit I could not make that one work. I can compile, but the binary crashes when issuing genmove b command Maybe I should try with an older version of bazel (I have been using version 19) |
Author: | xela [ Sat Oct 19, 2019 8:48 pm ] |
Post subject: | Re: Compiling some engines for linux |
Not an engine as such, but just as useful: I've just installed the fantastic q5Go version 9. Getting the source code from GitHub was easy, and it should build and install exactly as per the instructions, except for one minor but annoying detail. q5Go relies on Qt version 5.10, but the official Ubuntu repositories only have Q5 version 5.9, and there are conflicting and confusing instructions on how to upgrade. It turns out that you can install Qt 5.12 into its own folder without messing up your "official" Ubuntu installation.
From here you should be able to follow the instructions on GitHub. |
Page 2 of 2 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |