Commit
* gzipped protobuf compressed neural networks * remove debug info and bump version (corresponds with tf) * clang-format * clang-format style=Google * make protobuf a submodule * add protobuf.wrap * update submodule for appveyor * update submodule for appveyor try 2 * update submodule using https * fix pr comments * add clang-format and fix format in loader * store clangformat delta only * update submodule * various fixes * check for v1 weights and conform google style * temporary protobuf wrap until windows fixes are upstreamed * add compiler to docker for circleci * protobuf compiler for circleci * protobuf may be installed without protoc * [CircleCI] Install protobuf dependency on the docker image (#172) * [CircleCI] Install protobuf dependency on the docker image * [CircleCI] Add a step to pull git submodules * [CircleCI] Use protoc version 3.5.1 * [CircleCI] Don't install protobuf deps from Ubuntu repos * [CircleCI] Use the docker image with the latest changes * pr review fixes * update lczero-common * check buffer size < 2 * moar pr comments
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
FROM floopcz/tensorflow_cc:ubuntu-shared-cuda:0.0.1 | ||
FROM floopcz/tensorflow_cc:ubuntu-shared-cuda | ||
|
||
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB && apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB && sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list' && apt-get update && apt-get install -y intel-mkl-64bit-2018.2-046 | ||
RUN apt-get install -y clang-6.0 ninja-build python3-pip nvidia-opencl-dev libopenblas-dev libboost-dev nvidia-cuda-dev nvidia-cuda-toolkit libgtest-dev libprotobuf-dev git ssh tar gzip ca-certificates sudo | ||
RUN apt-get install -y clang-6.0 ninja-build python3-pip nvidia-opencl-dev libopenblas-dev libboost-dev nvidia-cuda-dev nvidia-cuda-toolkit libgtest-dev git ssh tar gzip ca-certificates sudo | ||
RUN pip3 install meson | ||
RUN ln -s /usr/include/ /usr/include/openblas | ||
|
||
RUN curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip | ||
RUN unzip protoc-3.5.1-linux-x86_64.zip -d protoc3 | ||
RUN sudo mv protoc3/bin/* /usr/local/bin/ | ||
RUN sudo mv protoc3/include/* /usr/local/include/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
DerivePointerAlignment: false | ||
... | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "libs/lczero-common"] | ||
path = libs/lczero-common | ||
url = https://github.com/LeelaChessZero/lczero-common.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#define LC0_VERSION_MAJOR 0 | ||
#define LC0_VERSION_MINOR 14 | ||
#define LC0_VERSION_MINOR 15 | ||
This comment has been minimized.
Sorry, something went wrong. |
||
#define LC0_VERSION_PATCH 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[wrap-file] | ||
directory = protobuf-3.5.1 | ||
|
||
source_url = https://github.com/google/protobuf/releases/download/v3.5.1/protobuf-all-3.5.1.tar.gz | ||
source_filename = protobuf-all-3.5.1.tar.gz | ||
source_hash = 72d43863f58567a9ea2054671fdb667867f9cf7865df623c7be630978ff97dff | ||
|
||
patch_url = https://github.com/borg323/protobuf/releases/download/3.5.1-2w/protobuf-3.5.1-2w-wrap.zip | ||
patch_filename = protobuf-3.5.1-2w-wrap.zip | ||
patch_hash = 5185ae7252941e252b075d3f845768296b079516f9f6feb0bd3ae63de7e9a52e |
3 comments
on commit a530848
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see this critical work make it into main! Promotion inc (never mind faster loading times)!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Do I need to install something else now? The Raspberry Pi build has worked every time until this latest push.
Thanks,
Al.
Here’s the error log:
Build started at 2018-07-16T11:55:16.497689
Main binary: /usr/bin/python3
Python system: Linux
The Meson build system
Version: 0.46.1
Source dir: /home/Al/lc0
Build dir: /home/Al/lc0/build/release
Build type: native build
Project name: lc0
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ /home/Al/lc0/build/release/meson-private/sanitycheckcpp.cc -o /home/Al/lc0/build/release/meson-private/sanitycheckcpp.exe
Sanity check compile stdout:
Sanity check compile stderr:
Running test binary command: /home/Al/lc0/build/release/meson-private/sanitycheckcpp.exe
Native C++ compiler: c++ (gcc 6.3.0 "c++ (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516")
Build machine cpu family: arm
Build machine cpu: armv7l
Found pkg-config: /usr/bin/pkg-config (0.29)
Determining dependency 'protobuf' with pkg-config executable '/usr/bin/pkg-config'
Using protobuf from cache.
Using protobuf-3.5.1-2w-wrap.zip from cache.
Executing subproject protobuf.
Project name: protobuf
Native C++ compiler: c++ (gcc 6.3.0 "c++ (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516")
Running compile:
Working directory: /tmp/tmpdtwn0zv3
Command line: c++ /tmp/tmpdtwn0zv3/testfile.cpp -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpdtwn0zv3/output.obj -O0 -fpermissive -DHAVE_PTHREAD
Code:
int i;
Compiler stdout:
Compiler stderr:
Compiler for C++ supports arguments -DHAVE_PTHREAD: YES
Running compile:
Working directory: /tmp/tmpbszx1ije
Command line: c++ /tmp/tmpbszx1ije/testfile.cpp -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpbszx1ije/output.obj -O0 -fpermissive -Wno-sign-compare -Wsign-compare
Code:
int i;
Compiler stdout:
Compiler stderr:
Compiler for C++ supports arguments -Wno-sign-compare -Wsign-compare: YES
Running compile:
Working directory: /tmp/tmpsekrudwt
Command line: c++ /tmp/tmpsekrudwt/testfile.cpp -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpsekrudwt/output.obj -O0 -fpermissive -Wno-unused-parameter -Wunused-parameter
Code:
int i;
Compiler stdout:
Compiler stderr:
Compiler for C++ supports arguments -Wno-unused-parameter -Wunused-parameter: YES
Running compile:
Working directory: /tmp/tmpa7hvdlcj
Command line: c++ /tmp/tmpa7hvdlcj/testfile.cpp -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpa7hvdlcj/output.obj -O0 -fpermissive -Wno-ignored-qualifiers -Wignored-qualifiers
Code:
int i;
Compiler stdout:
Compiler stderr:
Compiler for C++ supports arguments -Wno-ignored-qualifiers -Wignored-qualifiers: YES
Running compile:
Working directory: /tmp/tmpxicp7jmu
Command line: c++ /tmp/tmpxicp7jmu/testfile.cpp -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpxicp7jmu/output.obj -O0 -fpermissive /wd4146
Code:
int i;
Compiler stdout:
Compiler stderr:
c++: error: /wd4146: No such file or directory
Compiler for C++ supports arguments /wd4146: NO
Running compile:
Working directory: /tmp/tmphawir1fw
Command line: c++ /tmp/tmphawir1fw/testfile.cpp -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmphawir1fw/output.obj -O0 -fpermissive /wd4244
Code:
int i;
Compiler stdout:
Compiler stderr:
c++: error: /wd4244: No such file or directory
Compiler for C++ supports arguments /wd4244: NO
Running compile:
Working directory: /tmp/tmp94kbjw6x
Command line: c++ /tmp/tmp94kbjw6x/testfile.cpp -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmp94kbjw6x/output.obj -O0 -fpermissive /wd4305
Code:
int i;
Compiler stdout:
Compiler stderr:
c++: error: /wd4305: No such file or directory
Compiler for C++ supports arguments /wd4305: NO
Running compile:
Working directory: /tmp/tmps91un10j
Command line: c++ /tmp/tmps91un10j/testfile.cpp -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmps91un10j/output.obj -O0 -fpermissive /wd4506
Code:
int i;
Compiler stdout:
Compiler stderr:
c++: error: /wd4506: No such file or directory
Compiler for C++ supports arguments /wd4506: NO
Dependency threads found: YES
Build targets in project: 6
Subproject protobuf finished.
Dependency protobuf from subproject subprojects/protobuf found: YES
Program protoc found: NO
Message: protoc will be built from the subproject
meson.build:52:0: ERROR: File libs/lczero-common/proto/net.proto does not exist.
This was a major mistake. The rule for this project ought to be that a commit (or PR) either changes only the version, or it changes anything else at all -- never both.