Skip to content

Commit f0d32c7

Browse files
committed
Berserk 10
Bench: 4467773
1 parent f47d7fb commit f0d32c7

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
EXE = berserk
55
SRC = *.c pyrrhic/tbprobe.c
66
CC = gcc
7-
VERSION = 20221003
7+
VERSION = 10
88
MAIN_NETWORK = networks/berserk-c982d9682d4e.nn
99
EVALFILE = $(MAIN_NETWORK)
1010
DEFS = -DVERSION=\"$(VERSION)\" -DEVALFILE=\"$(EVALFILE)\" -DNDEBUG
@@ -66,13 +66,10 @@ pgo: clone-networks
6666

6767
release: clone-networks
6868
$(RELEASE)-$(VERSION)-x64$(EXT) -march=core2
69-
strip $(EXE)-$(VERSION)-x64$(EXT)
70-
7169
$(RELEASE)-$(VERSION)-x64-avx2$(EXT) -march=core-avx2
72-
strip $(EXE)-$(VERSION)-x64-avx2$(EXT)
73-
74-
$(RELEASE)-$(VERSION)-x64-avx2-pext$(EXT) -march=core-avx2 -DUSE_PEXT
75-
strip $(EXE)-$(VERSION)-x64-avx2-pext$(EXT)
70+
$(RELEASE)-$(VERSION)-x64-avx2-pext$(EXT) -march=core-avx2 -DUSE_PEXT
71+
$(RELEASE)-$(VERSION)-x64-avx512$(EXT) -march=core-avx2 -mavx512f -mavx512bw -mavx512dq
72+
$(RELEASE)-$(VERSION)-x64-avx512-pext$(EXT) -march=core-avx2 -mavx512f -mavx512bw -mavx512dq -DUSE_PEXT
7673

7774
clone-networks:
7875
ifeq ($(EVALFILE), $(MAIN_NETWORK))

src/nn.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ int16_t INPUT_BIASES[N_HIDDEN] ALIGN;
3939
int16_t OUTPUT_WEIGHTS[2 * N_HIDDEN] ALIGN;
4040
int32_t OUTPUT_BIAS;
4141

42-
#if defined(__AVX2__)
42+
#if defined(__AVX512F__)
43+
#define UNROLL 512
44+
#elif defined(__AVX2__)
4345
#define UNROLL 256
4446
#else
4547
#define UNROLL 128

0 commit comments

Comments
 (0)