-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify OpenBLAS installation on Windows (#2016)
* Use cmake-install instead of funny manual copying * Build parallel * Upload build artifacts for debugging * Silence stupid MSVC copyright messages
- Loading branch information
Showing
3 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
echo compileBLAS.cmd started for openBLAS version %1 | ||
cd /D "C:\BLAS\OpenBLAS-%1\OpenBLAS-%1" | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" | ||
cmake -G "Ninja" ^ | ||
cmake -S . -B build ^ | ||
-G "Ninja" ^ | ||
-DBUILD_DOUBLE=1 ^ | ||
-DBUILD_SHARED_LIBS=ON ^ | ||
-DCMAKE_INSTALL_PREFIX:PATH="C:\BLAS\OpenBLAS-%1\OpenBLAS-%1\out\install\x64-Release" ^ | ||
-DCMAKE_INSTALL_PREFIX:PATH="C:/BLAS/OpenBLAS" ^ | ||
-DCMAKE_C_COMPILER:FILEPATH=cl ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DCMAKE_MAKE_PROGRAM=ninja ^ | ||
"C:\BLAS\OpenBLAS-%1\OpenBLAS-%1" | ||
cmake --build "C:\BLAS\OpenBLAS-%1\OpenBLAS-%1" --parallel 2 | ||
-DCMAKE_MAKE_PROGRAM=ninja | ||
cmake --build build --parallel 2 | ||
cmake --install build | ||
echo compileBLAS.cmd completed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters