Skip to content

Commit

Permalink
last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucametehau committed Mar 26, 2022
1 parent 068b95b commit b4ddfa7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 1 addition & 2 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CC = g++
SRC = *.cpp tbprobe.c
EXE = Clover.3.1-dev29
EXE = Clover.3.1
EVALFILE = Clover_3_1_590mil_e32_512_eval.nn

ifeq ($(OS), Windows_NT)
Expand Down Expand Up @@ -32,5 +32,4 @@ native:
debug:
$(CC) $(SRC) $(EVALFILEFLAGS) $(RFLAGS) $(LIBS) $(NATIVEFLAGS) -g -o $(EXE)-debug$(EXT)
run:
$(CC) $(SRC) $(EVALFILEFLAGS) $(RFLAGS) $(LIBS) $(BMI2FLAGS) -o $(EXE)-bmi2$(EXT)
$(CC) $(SRC) $(EVALFILEFLAGS) $(RFLAGS) $(LIBS) $(POPCNTFLAGS) $(AVX2FLAGS) -o $(EXE)-avx2$(EXT)
12 changes: 11 additions & 1 deletion net.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,16 @@ class Network {
}
}

std::vector <Layer> layers;
int lg = sizeof(__m256) / sizeof(float);
int batches = HIDDEN_NEURONS / lg;

int histSz, updateSz;

float inputBiases[HIDDEN_NEURONS], outputBias __attribute__((aligned(32)));
float histOutput[1005][HIDDEN_NEURONS] __attribute__((aligned(32)));
float inputWeights[INPUT_NEURONS][HIDDEN_NEURONS] __attribute__((aligned(32)));
float outputWeights[HIDDEN_NEURONS] __attribute__((aligned(32)));

std::vector <Update> updates;
};

2 changes: 1 addition & 1 deletion uci.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "perft.h"
#include "generate.h"

const std::string VERSION = "3.1-dev29"; /// 2.0 was "FM"
const std::string VERSION = "3.1"; /// 2.0 was "FM"

class UCI {
public:
Expand Down

0 comments on commit b4ddfa7

Please sign in to comment.