From e2d90690bf72d27fba59146fbc4ae55ad2cb6902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 13 Oct 2025 15:49:18 +0800 Subject: [PATCH] fix(ci): oneAPI enabling --- .github/workflows/test.yml | 14 +++++++++++--- include/xeinfo.hpp | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7af342..224a495 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DBUILD=test .. - cmake --build . || ctest --output-on-failure + cmake --build . && ctest --output-on-failure test_windows: name: Run CMake Test on Windows 🧪 @@ -38,14 +38,22 @@ jobs: - name: Setup Build Tools run: | + # Verify Chocolatey is available + choco --version + + # Install Visual Studio Build Tools and CMake + choco install cmake visualstudio2022buildtools visualstudio2022-workload-vctools -y + + # Download and install Intel oneAPI Invoke-WebRequest -Uri "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/f5881e61-dcdc-40f1-9bd9-717081ac623c/intel-oneapi-base-toolkit-2025.2.1.46_offline.exe" -OutFile "install.exe" ./install.exe -s -a --silent --eula accept - name: Build and Run Tests shell: cmd run: | - "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" + call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" + call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" mkdir build cd build - cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release .. + cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD=test .. cmake --build . && ctest --output-on-failure diff --git a/include/xeinfo.hpp b/include/xeinfo.hpp index 9beb080..223402d 100644 --- a/include/xeinfo.hpp +++ b/include/xeinfo.hpp @@ -65,7 +65,7 @@ class xeinfo { const uint64_t global_mem_size; const int local_mem_size; const int max_work_group_size; - const std::vector sub_group_sizes; + const std::vector sub_group_sizes; const int num_thread_per_xecore; const int total_xecores; const int total_vector_engines;