mirror of
https://github.com/fumiama/base16384-sycl.git
synced 2026-06-05 00:32:49 +08:00
fix(ci): oneAPI enabling
This commit is contained in:
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD=test ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD=test ..
|
||||||
cmake --build . || ctest --output-on-failure
|
cmake --build . && ctest --output-on-failure
|
||||||
|
|
||||||
test_windows:
|
test_windows:
|
||||||
name: Run CMake Test on Windows 🧪
|
name: Run CMake Test on Windows 🧪
|
||||||
@@ -38,14 +38,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Build Tools
|
- name: Setup Build Tools
|
||||||
run: |
|
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"
|
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
|
./install.exe -s -a --silent --eula accept
|
||||||
|
|
||||||
- name: Build and Run Tests
|
- name: Build and Run Tests
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
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
|
mkdir build
|
||||||
cd 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
|
cmake --build . && ctest --output-on-failure
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class xeinfo {
|
|||||||
const uint64_t global_mem_size;
|
const uint64_t global_mem_size;
|
||||||
const int local_mem_size;
|
const int local_mem_size;
|
||||||
const int max_work_group_size;
|
const int max_work_group_size;
|
||||||
const std::vector<unsigned long long> sub_group_sizes;
|
const std::vector<size_t> sub_group_sizes;
|
||||||
const int num_thread_per_xecore;
|
const int num_thread_per_xecore;
|
||||||
const int total_xecores;
|
const int total_xecores;
|
||||||
const int total_vector_engines;
|
const int total_vector_engines;
|
||||||
|
|||||||
Reference in New Issue
Block a user