-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- OpenBLAS latest release version (v0.3.27) is being built with MSVC. - OpenBLAS is enabled as a BLAS option to Unit Test and Release workflows. - A Pytorch with OpenBLAS build is added to Daily Release workflow. - Instructions to use OpenBLAS when building manually are also added. - OpenBLAS with Clang is disabled for now.
- Loading branch information
Showing
9 changed files
with
144 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
echo %JOB_DIR% | ||
echo %DEPENDENCIES_DIR% | ||
|
||
del %DEPENDENCIES_DIR%\openblas\build /s /q /f | ||
del %DEPENDENCIES_DIR%\openblas\install /s /q /f | ||
|
||
del %JOB_DIR%\openblas\build /s /q /f | ||
del %JOB_DIR%\openblas\install /s /q /f |
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,18 +1,33 @@ | ||
set "vswhere=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
set visualstudio= | ||
for /f "delims=" %%v in ('"%vswhere%" -latest -property installationPath') do set "visualstudio=%%v" | ||
for /f "delims=" %%v in ('"%vswhere%" -latest -products * -property installationPath') do set "visualstudio=%%v" | ||
if "%visualstudio%" == "" ( | ||
echo Visual Studio not found! | ||
goto :eof | ||
) | ||
|
||
call "%visualstudio%\VC\Auxiliary\Build\vcvarsall.bat" arm64 | ||
|
||
mkdir %JOB_DIR%\openblas\build | ||
cd %JOB_DIR%\openblas\build | ||
mkdir %DEPENDENCY_OPENBLAS_DIR%\build | ||
cd %DEPENDENCY_OPENBLAS_DIR%\build | ||
|
||
set CMAKE_BUILD_TYPE=RelWithDebInfo | ||
|
||
cmake .. -G Ninja -DBUILD_TESTING=0 | ||
echo Building OpenBLAS... | ||
cmake .. -G Ninja ^ | ||
-DBUILD_TESTING=0 ^ | ||
-DBUILD_BENCHMARKS=0 ^ | ||
-DC_LAPACK=1 ^ | ||
-DNOFORTRAN=1 ^ | ||
-DDYNAMIC_ARCH=0 ^ | ||
-DARCH=arm64 ^ | ||
-DBINARY=64 ^ | ||
-DTARGET=GENERIC ^ | ||
-DUSE_OPENMP=0 ^ | ||
-DCMAKE_VERBOSE_MAKEFILE=1 ^ | ||
-DCMAKE_SYSTEM_PROCESSOR=ARM64 ^ | ||
-DCMAKE_SYSTEM_NAME=Windows | ||
cmake --build . --config Release | ||
|
||
echo Installing OpenBLAS... | ||
cmake --install . --prefix ../install | ||
|
||
echo Dependency OpenBLAS installation is finished. |
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,5 +1,5 @@ | ||
@echo on | ||
|
||
if exist [%OPENBLAS__BUILD_DIR%] ( | ||
rmdir /s /q %OPENBLAS__BUILD_DIR% | ||
if exist [%OPENBLAS_BUILD_DIR%] ( | ||
rmdir /s /q %OPENBLAS_BUILD_DIR% | ||
) |
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,19 +1,27 @@ | ||
name: Release | ||
|
||
# Controls when the workflow will run | ||
# OpenBLAS is disabled for now | ||
# Schedule doesn't accept inputs. So, this has hardcoded values for repository / branch | ||
on: | ||
schedule: | ||
- cron: "7 0 * * *" | ||
|
||
jobs: | ||
create_release: | ||
name: Create Release | ||
uses: ./.github/workflows/release.yml | ||
with: | ||
blass_type: 'apl' | ||
pytorch_repository: 'iremyux/pytorch' | ||
pytorch_branch: 'apl-tests' | ||
wheel_name: 'torch-2.4.0a-cp311-cp311-win_arm64.whl' | ||
release_prefix: 'Daily Release' | ||
name: Daily Release | ||
|
||
# Controls when the workflow will run | ||
# Schedule doesn't accept inputs. So, this has hardcoded values for repository / branch | ||
on: | ||
schedule: | ||
- cron: "0 9 * * *" | ||
|
||
jobs: | ||
create_release_apl: | ||
name: Create Release with APL | ||
uses: ./.github/workflows/release.yml | ||
with: | ||
blas_type: 'apl' | ||
pytorch_repository: 'iremyux/pytorch' | ||
pytorch_branch: 'apl-tests' | ||
wheel_name: 'torch-2.4.0a-cp311-cp311-win_arm64.whl' | ||
release_prefix: 'Daily Release - APL' | ||
create_release_openblas: | ||
name: Create Release with OpenBLAS | ||
uses: ./.github/workflows/release.yml | ||
with: | ||
blas_type: 'openblas' | ||
pytorch_repository: 'iremyux/pytorch' | ||
pytorch_branch: 'apl-tests' | ||
wheel_name: 'torch-2.4.0a-cp311-cp311-win_arm64.whl' | ||
release_prefix: 'Daily Release - OpenBLAS' |
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
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
Oops, something went wrong.