Skip to content

Commit

Permalink
Addressed warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
TFiFiE committed May 17, 2020
1 parent cd7f51c commit fe6ddb9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/CPUPipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void CPUPipe::winograd_transform_in(const std::vector<float>& in,

constexpr auto buffersize = 32;

std::array<std::array<float, Wpad>, Wpad> in_pad{0.0f};
std::array<std::array<float, Wpad>, Wpad> in_pad{{{0.0f}}};

std::array<float, buffersize * WINOGRAD_ALPHA * WINOGRAD_ALPHA> buffer;
auto buffer_offset = 0;
Expand Down
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ THE_OS := $(shell uname -s)
default:
@echo "Detected OS: ${THE_OS}"
$(MAKE) CC=gcc CXX=g++ \
CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-ignored-attributes -Wno-deprecated-copy -pipe -O3 -g -ffast-math -flto -march=native -std=c++14 -DNDEBUG' \
CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-deprecated-copy -pipe -O3 -g -ffast-math -flto -march=native -std=c++14 -DNDEBUG' \
LDFLAGS='$(LDFLAGS) -flto -g' \
leelaz

debug:
@echo "Detected OS: ${THE_OS}"
$(MAKE) CC=gcc CXX=g++ \
CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-ignored-attributes -Wno-deprecated-copy -pipe -Og -g -std=c++14' \
CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-deprecated-copy -pipe -Og -g -std=c++14' \
LDFLAGS='$(LDFLAGS) -g' \
leelaz

clang:
@echo "Detected OS: ${THE_OS}"
$(MAKE) CC=clang CXX=clang++ \
CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-missing-braces -O3 -ffast-math -flto -march=native -std=c++14 -DNDEBUG' \
CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-deprecated-copy -O3 -ffast-math -flto -march=native -std=c++14 -DNDEBUG' \
LDFLAGS='$(LDFLAGS) -flto -fuse-linker-plugin' \
leelaz

Expand Down
2 changes: 2 additions & 0 deletions src/Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ class Network {
using PolicyVertexPair = std::pair<float,int>;
using Netresult = NNCache::Netresult;

virtual ~Network() = default;

Netresult get_output(const GameState* const state,
const Ensemble ensemble,
const int symmetry = -1,
Expand Down

0 comments on commit fe6ddb9

Please sign in to comment.