Skip to content

Commit 8c01500

Browse files
authored
Merge pull request #214 from Akash9824/main
Using USE_THREADS & NUM_THREADS while building openblas for win arm64
2 parents 970cb75 + e7c9f95 commit 8c01500

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/build_steps_win_arm64.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,11 @@ echo Setting up ARM64 Developer Command Prompt and running CMake...
9393
:: Initialize VS ARM64 environment
9494
for /f "usebackq tokens=*" %%i in (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do call "%%i\VC\Auxiliary\Build\vcvarsall.bat" arm64
9595

96+
:: Prefer LLVM flang
97+
PATH=C:\Program Files\LLVM\bin;%PATH%
98+
9699
:: Run CMake and Ninja build
97-
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DTARGET=ARMV8 -DBUILD_SHARED_LIBS=ON -DARCH=arm64 ^
100+
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DUSE_THREADS=1 -DNUM_THREADS=24 -DTARGET=ARMV8 -DBUILD_SHARED_LIBS=ON -DARCH=arm64 ^
98101
-DBINARY=%build_bits% -DCMAKE_SYSTEM_PROCESSOR=ARM64 -DCMAKE_C_COMPILER=clang-cl ^
99102
-DCMAKE_Fortran_COMPILER=flang-new -DSYMBOLPREFIX="scipy_" -DLIBNAMEPREFIX="scipy_" %interface_flags%
100103
if errorlevel 1 exit /b 1

0 commit comments

Comments
 (0)