Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5f4c63a
Add arm64 support for oneTBB download and build in tbb.bat
nithin-aashik-mcw Jul 23, 2026
d150119
Introduce arm64 OpenBlas build script openblas.bat
nithin-aashik-mcw Jul 23, 2026
e9a1e35
Build: Add winarm platform target and clang toolchain definitions
nithin-aashik-mcw Jul 23, 2026
9593a3f
Build: Detect host arch in CI build.bat and set PLAT=winarm
nithin-aashik-mcw Jul 23, 2026
50ee538
Build: Fix TBB/OpenBLAS lib paths and naming for ARM64 on Windows
nithin-aashik-mcw Jul 23, 2026
2061824
Fix: Guard MSVC-only macros with !defined(__clang__) for clang builds
nithin-aashik-mcw Jul 23, 2026
38e060f
Fix: Use _aligned_malloc/_aligned_free instead of aligned_alloc on Wi…
nithin-aashik-mcw Jul 23, 2026
1a54da1
Fix: Add ARM64 Windows SVE feature detection via KUSER_SHARED_DATA
nithin-aashik-mcw Jul 23, 2026
a70ebc9
Merge branch 'uxlfoundation:main' into feature/win-arm64-support
nithin-aashik-mcw Jul 24, 2026
4bb400a
Build: Add VS2026 build-tools support and fix OpenBLAS source dir casing
nithin-aashik-mcw Jul 25, 2026
92f97d7
Fix: Stop robocopy from deleting TBB source bin/lib after move
nithin-aashik-mcw Jul 25, 2026
82cf8c5
Build: Resolve OpenBLAS release paths per-architecture (mirrors TBB l…
nithin-aashik-mcw Jul 25, 2026
845499b
Build: Add VS2026 support and per-arch TBB/OpenBLAS/DAAL_IA paths in …
nithin-aashik-mcw Jul 25, 2026
b886c5b
Build: Recognize ARM64 CPU architecture in example/sample CMake setup
nithin-aashik-mcw Jul 25, 2026
8512aed
Chore: Drop debug echo from build.bat winarm branch
nithin-aashik-mcw Jul 25, 2026
a638f96
Merge branch 'uxlfoundation:main' into feature/win-arm64-support
nithin-aashik-mcw Jul 25, 2026
7810d64
CI: Introduce GitHub Actions pipeline for Windows ARM64
nithin-aashik-mcw Jul 25, 2026
52a3c84
Merge branch 'feature/win-arm64-support' of https://github.com/nithin…
nithin-aashik-mcw Jul 25, 2026
6a5adfa
CI: Add feature branch and name change
nithin-aashik-mcw Jul 25, 2026
09dc5ed
CI: Add OpenBlas and oneTBB Build
nithin-aashik-mcw Jul 25, 2026
a9bec18
CI: Add MSVC env setup
nithin-aashik-mcw Jul 25, 2026
ba2ca21
CI: Fix MSVC env script path
nithin-aashik-mcw Jul 25, 2026
60f57c3
CI: Add Build daal, Build onedal_c, Test daal, Test oneapi
nithin-aashik-mcw Jul 25, 2026
04c25a8
CI: Add MinGW
nithin-aashik-mcw Jul 25, 2026
6809c99
CI: Add Setup MSYS2, Remove MinGW
nithin-aashik-mcw Jul 26, 2026
c64f336
CI: Fix MSYS2, Made CI Generic to ARM64 & x86_64
nithin-aashik-mcw Jul 26, 2026
f30179c
CI: LLVM version from 20.1.8 to 22.1.8
nithin-aashik-mcw Jul 26, 2026
feb6720
CI: Fix Test daal & Test oneapi
nithin-aashik-mcw Jul 26, 2026
f5d5bb8
CI: Set Visual Studio 18 2026 as generator for Test daal & oneapi
nithin-aashik-mcw Jul 26, 2026
2b79b2d
Fix: Set test build type as Release
nithin-aashik-mcw Jul 26, 2026
49dc9ac
CI: Update cmake & ninja version
nithin-aashik-mcw Jul 26, 2026
6f2a43c
CI: Add Visual Studio Version
nithin-aashik-mcw Jul 26, 2026
55327ee
Merge branch 'uxlfoundation:main' into feature/win-arm64-support
nithin-aashik-mcw Jul 26, 2026
1f49486
CI: Fix Azure Pipeline CI fail.
nithin-aashik-mcw Jul 27, 2026
5e8b2e5
CI: Fix Azure Pipeline CI fail.
nithin-aashik-mcw Jul 27, 2026
b05f989
CI: Fix Azure Pipeline CI fail.
nithin-aashik-mcw Jul 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .ci/env/openblas.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
@echo off
rem ============================================================================
rem Copyright 2020 Intel Corporation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rem
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
rem ============================================================================

setlocal

rem req: PowerShell 3.0+

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't batch files meant to be runnable with the old Cmd.exe alone? Feels quite odd to launch powershell from a .bat file.

powershell.exe -command "if ($PSVersionTable.PSVersion.Major -lt 3) {Write-Host \"The script requires PowerShell 3.0 or above (current version: $($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor))\"; exit 1} else {exit 0}"
if errorlevel 1 goto Error_load

if /I not "%PROCESSOR_ARCHITECTURE%"=="ARM64" (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that cross-compilation is not supported?

echo Current only available for ARM64.
exit /B 1
)

if /i "%1"=="" (
set DST=%~dp0..\..\__deps\open_blas
) else (
set DST=%1\..\..\__deps\open_blas
)
set BLASSOURCEDIR=%~dp0..\..\__work\openblas
set BLASVERSION=0.3.33
set BLASURLROOT=https://github.com/OpenMathLib/OpenBLAS/archive/refs/tags/v%BLASVERSION%
set BLASPACKAGE=
set BLASURL=%BLASURLROOT%%BLASPACKAGE%.zip
set "PATH=C:\Program Files\LLVM\bin;%PATH%"

IF "%VS_VER%"=="2026_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
) ELSE IF "%VS_VER%"=="2019_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
) ELSE IF "%VS_VER%"=="2017_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
)

if not exist "%DST%" powershell.exe -command "New-Item -Path \"%DST%\" -ItemType Directory" >nul
if not exist "%BLASSOURCEDIR%" powershell.exe -command "New-Item -Path \"%BLASSOURCEDIR%\" -ItemType Directory" >nul

powershell.exe -command "(New-Object System.Net.WebClient).DownloadFile('%BLASURL%', '%BLASSOURCEDIR%\openblas.zip')"
if errorlevel 1 goto Error_load

powershell.exe -command "if (Get-Command Add-Type -errorAction SilentlyContinue) {Add-Type -Assembly \"System.IO.Compression.FileSystem\"; try { [IO.Compression.zipfile]::ExtractToDirectory(\"%BLASSOURCEDIR%\openblas.zip\", \"%BLASSOURCEDIR%\") } catch { $_.exception; exit 1 }} else {exit 1}"
if errorlevel 1 goto Error_unpack

pushd "%BLASSOURCEDIR%\OpenBLAS-%BLASVERSION%"
rmdir /s /q build-arm64
cmake -B build-arm64 -S . -GNinja ^
-DCMAKE_BUILD_TYPE=Release ^
-DTARGET=ARMV8 ^
-DBINARY=64 ^
-DCMAKE_C_COMPILER=clang-cl ^
-DCMAKE_CXX_COMPILER=clang-cl ^
-DCMAKE_Fortran_COMPILER=flang-new ^
-DBUILD_SHARED_LIBS=ON ^
-DCMAKE_SYSTEM_PROCESSOR=arm64 ^
-DCMAKE_SYSTEM_NAME=Windows ^
-DCMAKE_INSTALL_PREFIX="%DST%"
cmake --build build-arm64
cmake --install build-arm64
popd

echo Downloaded and unpacked OpenBlas small libraries to %DST%
exit /B 0

:Error_load
echo openblas.bat : Error: Failed to load %BLASURL% to %BLASSOURCEDIR%, try to load it manually
exit /B 1

:Error_unpack
echo openblas.bat : Error: Failed to unpack %BLASSOURCEDIR%\openblas.zip to %BLASSOURCEDIR%, try unpack the archive manually
exit /B 1
45 changes: 40 additions & 5 deletions .ci/env/tbb.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ rem req: PowerShell 3.0+
powershell.exe -command "if ($PSVersionTable.PSVersion.Major -ge 3) {exit 1} else {Write-Host \"The script requires PowerShell 3.0 or above (current version: $($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor))\"}" && goto Error_load

set TBBVERSION=2023.0.0
set TBBURLROOT=https://github.com/uxlfoundation/oneTBB/releases/download/v%TBBVERSION%/
set TBBPACKAGE=oneapi-tbb-%TBBVERSION%-win
if /I "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
set TBBURLROOT=https://github.com/uxlfoundation/oneTBB/archive/refs/tags/v%TBBVERSION%
set TBBPACKAGE=
) else (
set TBBURLROOT=https://github.com/uxlfoundation/oneTBB/releases/download/v%TBBVERSION%/
set TBBPACKAGE=oneapi-tbb-%TBBVERSION%-win
)

set TBBURL=%TBBURLROOT%%TBBPACKAGE%.zip

if /i "%1"=="" (
set DST=%~dp0..\..\__deps\tbb
) else (
Expand All @@ -37,11 +43,40 @@ if not exist "%DST%\win\bin" (
powershell.exe -command "(New-Object System.Net.WebClient).DownloadFile('%TBBURL%', '%DST%\%TBBPACKAGE%.zip')" && goto Unpack || goto Error_load

:Unpack
powershell.exe -command "if (Get-Command Add-Type -errorAction SilentlyContinue) {Add-Type -Assembly \"System.IO.Compression.FileSystem\"; try { [IO.Compression.zipfile]::ExtractToDirectory(\"%DST%\%TBBPACKAGE%.zip\", \"%DST%\") ; Copy-Item \"%DST%\oneapi-tbb-%TBBVERSION%\*\" -Destination \"%DST%\win\tbb\" -Recurse }catch{$_.exception ; exit 1}} else {exit 1}" || goto Error_unpack
if /I "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
powershell.exe -command "if (Get-Command Add-Type -errorAction SilentlyContinue) {Add-Type -Assembly \"System.IO.Compression.FileSystem\"; try { [IO.Compression.zipfile]::ExtractToDirectory(\"%DST%\%TBBPACKAGE%.zip\", \"%DST%\") ; }catch{$_.exception ; exit 1}} else {exit 1}" && goto Build_oneTBB || goto Error_unpack
) else (
powershell.exe -command "if (Get-Command Add-Type -errorAction SilentlyContinue) {Add-Type -Assembly \"System.IO.Compression.FileSystem\"; try { [IO.Compression.zipfile]::ExtractToDirectory(\"%DST%\%TBBPACKAGE%.zip\", \"%DST%\") ; Copy-Item \"%DST%\oneapi-tbb-%TBBVERSION%\*\" -Destination \"%DST%\win\tbb\" -Recurse }catch{$_.exception ; exit 1}} else {exit 1}" || goto Error_unpack
if not exist %DST%\win\tbb\redist\intel64\vc14 powershell.exe -command "New-Item -Path \"%DST%\win\tbb\redist\intel64\vc14\" -ItemType Directory"
)
goto Exit

if not exist %DST%\win\tbb\redist\intel64\vc14 powershell.exe -command "New-Item -Path \"%DST%\win\tbb\redist\intel64\vc14\" -ItemType Directory"
:Build_oneTBB
IF "%VS_VER%"=="2026_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
) ELSE IF "%VS_VER%"=="2019_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
) ELSE IF "%VS_VER%"=="2017_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
)
pushd "%DST%\oneTBB-%TBBVERSION%"
rmdir /s /q build-arm64
cmake -B build-arm64 -S . -GNinja ^
-DCMAKE_BUILD_TYPE=Release ^
-DTBB_TEST=OFF ^
-DCMAKE_INSTALL_PREFIX="%DST%\win\tbb"
cmake --build build-arm64
cmake --install build-arm64
mkdir "%DST%\win\tbb\redist\%PROCESSOR_ARCHITECTURE%\vc14" 2>nul
mkdir "%DST%\win\tbb\lib\%PROCESSOR_ARCHITECTURE%\vc14" 2>nul

goto Exit
robocopy "%DST%\win\tbb\bin" "%DST%\win\tbb\redist\%PROCESSOR_ARCHITECTURE%\vc14" /E
robocopy "%DST%\win\tbb\bin" "%DST%\win\tbb\redist\vc14" /E
robocopy "%DST%\win\tbb\bin" "%DST%\win\tbb\bin\vc14" /E
robocopy "%DST%\win\tbb\lib" "%DST%\win\tbb\lib\%PROCESSOR_ARCHITECTURE%\vc14" *.lib
robocopy "%DST%\win\tbb\lib" "%DST%\win\tbb\lib\vc14" *.lib
popd
exit /B 0

:Error_load
echo tbb.bat : Error: Failed to load %TBBURL% to %DST%, try to load it manually
Expand Down
40 changes: 26 additions & 14 deletions .ci/scripts/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,39 @@ rem %3 - Instruction set
set errorcode=0
echo CPUCOUNT=%NUMBER_OF_PROCESSORS%

echo PATH=C:\msys64\usr\bin;%PATH%
set PATH=C:\msys64\usr\bin;%PATH%
echo "PATH=C:\Program Files\LLVM\bin;C:\msys64\usr\bin;%PATH%"
set "PATH=C:\Program Files\LLVM\bin;C:\msys64\usr\bin;%PATH%"

echo pacman -S --noconfirm msys/make
pacman -S --noconfirm msys/make

IF "%VS_VER%"=="2017_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
echo "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
) ELSE IF "%VS_VER%"=="2019_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
) ELSE (
IF "%VS_VER%"=="2019_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
) ELSE (
@call "%ONEAPI_ROOT%\setvars-vcvarsall.bat" %VS_VER%
echo "%ONEAPI_ROOT%\setvars-vcvarsall.bat" %VS_VER%
)
@call "%ONEAPI_ROOT%\setvars-vcvarsall.bat" %VS_VER%
echo "%ONEAPI_ROOT%\setvars-vcvarsall.bat" %VS_VER%
)

echo make %1 -j%NUMBER_OF_PROCESSORS% COMPILER=%2 PLAT=win32e REQCPU=%3
make %1 -j%NUMBER_OF_PROCESSORS% COMPILER=%2 PLAT=win32e REQCPU=%3 || set errorcode=1
set "ARCH=%PROCESSOR_ARCHITECTURE%"
if defined PROCESSOR_ARCHITEW6432 set "ARCH=%PROCESSOR_ARCHITEW6432%"

cmake -DINSTALL_DIR=__release_win_vc\daal\latest\lib\cmake\oneDAL -DARCH_DIR=intel64 -P cmake\scripts\generate_config.cmake || set errorcode=1
if /I "%ARCH%"=="AMD64" (
set "PLAT=win32e"
set "ARCH_DIR=intel64"
) else if /I "%ARCH%"=="ARM64" (
set "PLAT=winarm"
set "ARCH_DIR=ARM64"
) else (
echo Unknown architecture: %ARCH%
exit /b 1
)

echo make %1 -j%NUMBER_OF_PROCESSORS% COMPILER=%2 PLAT="%PLAT%" REQCPU=%3
make %1 -j%NUMBER_OF_PROCESSORS% COMPILER=%2 PLAT="%PLAT%" REQCPU=%3 || set errorcode=1

cmake -DINSTALL_DIR=__release_win_%2\daal\latest\lib\cmake\oneDAL -DARCH_DIR="%ARCH_DIR%" -P cmake\scripts\generate_config.cmake || set errorcode=1
EXIT /B %errorcode%
71 changes: 49 additions & 22 deletions .ci/scripts/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,58 @@ set PATH=C:\msys64\usr\bin;%PATH%

echo "%VISUALSTUDIOVERSION% HERE"

IF "%VS_VER%"=="2017_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
set "ARCH=%PROCESSOR_ARCHITECTURE%"
if defined PROCESSOR_ARCHITEW6432 set "ARCH=%PROCESSOR_ARCHITEW6432%"

if /I "%ARCH%"=="AMD64" (
set "ARCH_DIR=intel_intel64"
) else if /I "%ARCH%"=="ARM64" (
set "ARCH_DIR=arm_aarch64"
) else (
echo Unknown architecture: %ARCH%
exit /b 1
)

IF "%VS_VER%"=="2026_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
echo "C:\Program Files (x86)\Microsoft Visual Studio\q8\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
set "sln=slnx"
) ELSE IF "%VS_VER%"=="2017_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
echo "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
set "sln=sln"
) ELSE IF "%VS_VER%"=="2019_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %PROCESSOR_ARCHITECTURE%
set "sln=sln"
) ELSE (
IF "%VS_VER%"=="2019_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
) ELSE (
@call "%ONEAPI_ROOT%\setvars-vcvarsall.bat" %VS_VER%
echo "%ONEAPI_ROOT%\setvars-vcvarsall.bat" %VS_VER%
)
@call "%ONEAPI_ROOT%\setvars-vcvarsall.bat" %VS_VER%
echo "%ONEAPI_ROOT%\setvars-vcvarsall.bat" %VS_VER%
set "sln=sln"
)

echo call %release_dir%\daal\latest\env\vars.bat
call %release_dir%\daal\latest\env\vars.bat || set errorcode=1

echo set LIB=%~dp0..\..\%release_dir%\tbb\latest\lib\intel64\vc_mt;%LIB%
set LIB=%~dp0..\..\%release_dir%\tbb\latest\lib\intel64\vc_mt;%LIB%
echo set PATH=%~dp0..\..\%release_dir%\tbb\latest\lib\intel64\vc_mt;%PATH%
set PATH=%~dp0..\..\%release_dir%\tbb\latest\lib\intel64\vc_mt;%PATH%
echo set LIB=%~dp0..\..\%release_dir%\tbb\latest\lib\vc_mt;%LIB%
set LIB=%~dp0..\..\%release_dir%\tbb\latest\lib\vc_mt;%LIB%
echo set PATH=%~dp0..\..\%release_dir%\tbb\latest\lib\vc_mt;%PATH%
set PATH=%~dp0..\..\%release_dir%\tbb\latest\lib\vc_mt;%PATH%

echo set LIB=%~dp0..\..\%release_dir%\tbb\latest\bin\vc_mt;%LIB%
set LIB=%~dp0..\..\%release_dir%\tbb\latest\bin\vc_mt;%LIB%
echo set PATH=%~dp0..\..\%release_dir%\tbb\latest\bin\vc_mt;%PATH%
set PATH=%~dp0..\..\%release_dir%\tbb\latest\bin\vc_mt;%PATH%

echo set LIB=%~dp0..\..\%release_dir%\open_blas\latest\lib\vc_mt;%LIB%
set LIB=%~dp0..\..\%release_dir%\open_blas\latest\lib\vc_mt;%LIB%
echo set PATH=%~dp0..\..\%release_dir%\open_blas\latest\lib\vc_mt;%PATH%
set PATH=%~dp0..\..\%release_dir%\open_blas\latest\lib\vc_mt;%PATH%

echo set LIB=%~dp0..\..\%release_dir%\tbb\latest\redist\intel64\vc_mt;%LIB%
set LIB=%~dp0..\..\%release_dir%\tbb\latest\redist\intel64\vc_mt;%LIB%
echo set PATH=%~dp0..\..\%release_dir%\tbb\latest\redist\intel64\vc_mt;%PATH%
set PATH=%~dp0..\..\%release_dir%\tbb\latest\redist\intel64\vc_mt;%PATH%
echo set LIB=%~dp0..\..\%release_dir%\open_blas\latest\bin\vc_mt;%LIB%
set LIB=%~dp0..\..\%release_dir%\open_blas\latest\bin\vc_mt;%LIB%
echo set PATH=%~dp0..\..\%release_dir%\open_blas\latest\bin\vc_mt;%PATH%
set PATH=%~dp0..\..\%release_dir%\open_blas\latest\bin\vc_mt;%PATH%

echo set TBB_DIR=%~dp0..\..\__deps\tbb\win\tbb\lib\cmake\tbb
set TBB_DIR=%~dp0..\..\__deps\tbb\win\tbb\lib\cmake\tbb
Expand All @@ -87,11 +114,11 @@ if "%build_system%"=="cmake" (
if exist Build rd /S /Q Build
md Build

set results_dir=_cmake_results\intel_intel64_%cmake_link_mode_short%\Release
echo cmake -B Build -S . -DONEDAL_LINK=%cmake_link_mode% -DTBB_DIR=%TBB_DIR%
cmake -B Build -S . -DONEDAL_LINK=%cmake_link_mode% -DTBB_DIR=%TBB_DIR% || set errorcode=1
set "results_dir=_cmake_results\%ARCH_DIR%_%cmake_link_mode_short%\Release"
echo cmake -B Build -S . -DCMAKE_BUILD_TYPE=Release -DONEDAL_LINK=%cmake_link_mode% -DTBB_DIR=%TBB_DIR%
cmake -B Build -S . -DCMAKE_BUILD_TYPE=Release -DONEDAL_LINK=%cmake_link_mode% -DTBB_DIR=%TBB_DIR% || set errorcode=1
set solution_name=%examples:\=_%
msbuild.exe "Build\!solution_name!_examples.sln" /p:Configuration=Release || set errorcode=1
msbuild.exe "Build\!solution_name!_examples.!sln!" /p:Configuration=Release || set errorcode=1

for /f "delims=." %%F in ('dir /B !results_dir!\*.exe 2^> nul') do (
set example=%%F
Expand Down
Loading
Loading