glinscott / leela-chess

**MOVED TO https://github.com/LeelaChessZero/leela-chess ** A chess adaption of GCP's Leela Zero
http://lczero.org
GNU General Public License v3.0
760 stars 299 forks source link

Failed Colaboratory compilation #404

Open lsiem opened 6 years ago

lsiem commented 6 years ago

Log:

Scanning dependencies of target objs [ 3%] Building CXX object CMakeFiles/objs.dir/src/Bitboard.cpp.o [ 6%] Building CXX object CMakeFiles/objs.dir/src/Movegen.cpp.o [ 9%] Building CXX object CMakeFiles/objs.dir/src/NNCache.cpp.o [ 12%] Building CXX object CMakeFiles/objs.dir/src/Network.cpp.o In file included from /content/leela-chess/src/OpenCL.h:27:0, from /content/leela-chess/src/OpenCLScheduler.h:26, from /content/leela-chess/src/Network.cpp:49: /content/leela-chess/src/CL/cl2.hpp:5857:63: warning: ignoring attributes on template argument ‘cl_int {aka int}’ [-Wignored-attributes] typename std::enable_if<!std::is_pointer::value, cl_int>::type ^ /content/leela-chess/src/CL/cl2.hpp:6157:22: warning: ignoring attributes on template argument ‘cl_int {aka int}’ [-Wignored-attributes] vector* binaryStatus = NULL, ^ /content/leela-chess/src/Network.cpp: In static member function ‘static void Network::initialize()’: /content/leela-chess/src/Network.cpp:507:33: error: ‘openblas_get_corename’ was not declared in this scope myprintf("BLAS Core: %s\n", openblas_get_corename()); ^~~~~ /content/leela-chess/src/Network.cpp:507:33: note: suggested alternative: ‘openblas_set_num_threads’ myprintf("BLAS Core: %s\n", openblas_get_corename()); ^~~~~ openblas_set_num_threads CMakeFiles/objs.dir/build.make:134: recipe for target 'CMakeFiles/objs.dir/src/Network.cpp.o' failed make[2]: [CMakeFiles/objs.dir/src/Network.cpp.o] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/objs.dir/all' failed make[1]: [CMakeFiles/objs.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

JABirchall commented 6 years ago

Replace the first block with this

!apt-get update
!apt --fix-broken install
!apt-get install -y cmake nvidia-cuda-toolkit git-all libboost-all-dev libopenblas-dev opencl-headers ocl-icd-libopencl1 ocl-icd-opencl-dev zlib1g-dev
!apt-get install -y clinfo && clinfo

and rerun the build

lsiem commented 6 years ago

It worked! :)