From 8027ddebbd19eef63c61d43e392d5a85eaa985c7 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 21 Jan 2023 12:38:03 +0100 Subject: [PATCH] defined CFOA_EMBEDDED_GROUP_ACCESS and obtain Windows box CPU info --- .github/workflows/benchmarks.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 7bd62839..b2fec2f8 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -19,7 +19,7 @@ jobs: vcpkgtriplet: x64-linux sourcefile: main.cpp download-datafiles: http://mattmahoney.net/dc/enwik9.zip - compileroptions: -std=c++2a -O3 -DNDEBUG -DNO_CFOA_EMBEDDED_GROUP_ACCESS + compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS outputfile: benchmark reportdir: gcc-x64 os: [self-hosted, linux, x64] @@ -32,7 +32,7 @@ jobs: vcpkgtriplet: x64-linux sourcefile: main.cpp download-datafiles: http://mattmahoney.net/dc/enwik9.zip - compileroptions: -std=c++2a -O3 -DNDEBUG -DNO_CFOA_EMBEDDED_GROUP_ACCESS + compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS outputfile: benchmark reportdir: clang-x64 os: [self-hosted, linux, x64] @@ -45,7 +45,7 @@ jobs: vcpkgtriplet: arm64-osx sourcefile: main.cpp download-datafiles: http://mattmahoney.net/dc/enwik9.zip - compileroptions: -std=c++2a -O3 -DNDEBUG -DNO_CFOA_EMBEDDED_GROUP_ACCESS -DNUM_THREADS=8 + compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS -DNUM_THREADS=8 outputfile: benchmark reportdir: clang-arm64 os: [self-hosted, macOS, ARM64] @@ -58,7 +58,7 @@ jobs: vcpkgtriplet: x86-linux sourcefile: main.cpp download-datafiles: http://mattmahoney.net/dc/enwik8.zip - compileroptions: -std=c++2a -O3 -DNDEBUG -DNO_CFOA_EMBEDDED_GROUP_ACCESS + compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS outputfile: benchmark reportdir: gcc-x86 os: [self-hosted, linux, x64] @@ -71,7 +71,7 @@ jobs: vcpkgtriplet: x86-linux sourcefile: main.cpp download-datafiles: http://mattmahoney.net/dc/enwik8.zip - compileroptions: -std=c++2a -O3 -DNDEBUG -DNO_CFOA_EMBEDDED_GROUP_ACCESS + compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS outputfile: benchmark reportdir: clang-x86 os: [self-hosted, linux, x64] @@ -178,7 +178,7 @@ jobs: vcpkgtriplet: x64-windows sourcefile: main.cpp download-datafiles: http://mattmahoney.net/dc/enwik9.zip - compileroptions: /std:c++20 /O2 /GL /D "NDEBUG" /D "NO_CFOA_EMBEDDED_GROUP_ACCESS" /EHsc /MD /Fe:benchmark.exe + compileroptions: /std:c++20 /O2 /GL /D "NDEBUG" /D "CFOA_EMBEDDED_GROUP_ACCESS" /EHsc /MD /Fe:benchmark.exe outputfile: benchmark.exe reportdir: vs-x64 os: [self-hosted, Windows, X64] @@ -189,7 +189,7 @@ jobs: vcpkgtriplet: x86-windows sourcefile: main.cpp download-datafiles: http://mattmahoney.net/dc/enwik8.zip - compileroptions: /std:c++20 /O2 /GL /D "NDEBUG" /D "NO_CFOA_EMBEDDED_GROUP_ACCESS" /EHsc /MD /Fe:benchmark.exe + compileroptions: /std:c++20 /O2 /GL /D "NDEBUG" /D "CFOA_EMBEDDED_GROUP_ACCESS" /EHsc /MD /Fe:benchmark.exe outputfile: benchmark.exe reportdir: vs-x86 os: [self-hosted, Windows, X64] @@ -198,6 +198,10 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Obtain CPU info + shell: powershell + run: | + WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors - name: Download large data files if: matrix.download-datafiles shell: powershell