Skip to content

Commit a99063f

Browse files
committed
Add speedtest for pgo build
1 parent 7a2fb22 commit a99063f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/pikafish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@ jobs:
5656
install: mingw-w64-clang-x86_64-clang make git expect
5757

5858
- name: Download SDE package
59-
if: runner.os == 'Linux' || runner.os == 'Windows'
59+
if: "!(matrix.arch == '-bmi2' || matrix.arch == '-avx2' || matrix.arch == '-sse41-popcnt')"
6060
uses: petarpetrovt/setup-sde@v2.4
6161
with:
6262
environmentVariableName: SDE_DIR
6363
sdeVersion: 9.33.0
6464

6565
- name: Compile ${{ matrix.arch }} build
6666
run: |
67+
if [[ "${{ matrix.arch }}" == "-bmi2" || "${{ matrix.arch }}" == "-avx2" || "${{ matrix.arch }}" == "-sse41-popcnt" ]]; then
68+
SDE=""
69+
fi
6770
make -j profile-build EXE=$EXE WINE_PATH="$SDE"
6871
make strip EXE=$EXE
6972
cp $EXE ../

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ PREFIX = /usr/local
4949
BINDIR = $(PREFIX)/bin
5050

5151
### Built-in benchmark for pgo-builds
52-
PGOBENCH = $(WINE_PATH) ./$(EXE) bench
52+
PGOBENCH = printf "speedtest\nbench\n" | $(WINE_PATH) ./$(EXE)
5353

5454
### Source and object files
5555
SRCS = $(shell find . -name '*.cpp') $(shell find . -name '*.S')

0 commit comments

Comments
 (0)