-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cuda 126 windows build and driver update * refactor code * unblock the pipeline * correct syntax * test overwrite:true Co-authored-by: Andrey Talman <[email protected]> --------- Co-authored-by: Andrey Talman <[email protected]>
- Loading branch information
Showing
7 changed files
with
99 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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
@echo off | ||
|
||
set MODULE_NAME=pytorch | ||
|
||
IF NOT EXIST "setup.py" IF NOT EXIST "%MODULE_NAME%" ( | ||
call internal\clone.bat | ||
cd .. | ||
) ELSE ( | ||
call internal\clean.bat | ||
) | ||
IF ERRORLEVEL 1 goto :eof | ||
|
||
call internal\check_deps.bat | ||
IF ERRORLEVEL 1 goto :eof | ||
|
||
REM Check for optional components | ||
|
||
set USE_CUDA= | ||
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64 | ||
|
||
IF "%NVTOOLSEXT_PATH%"=="" ( | ||
IF EXIST "C:\Program Files\NVIDIA Corporation\NvToolsExt\lib\x64\nvToolsExt64_1.lib" ( | ||
set NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt | ||
) ELSE ( | ||
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, failing | ||
exit /b 1 | ||
) | ||
) | ||
|
||
IF "%CUDA_PATH_V124%"=="" ( | ||
IF EXIST "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\nvcc.exe" ( | ||
set "CUDA_PATH_V124=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6" | ||
) ELSE ( | ||
echo CUDA 12.6 not found, failing | ||
exit /b 1 | ||
) | ||
) | ||
|
||
IF "%BUILD_VISION%" == "" ( | ||
set TORCH_CUDA_ARCH_LIST=5.0;6.0;6.1;7.0;7.5;8.0;8.6;9.0 | ||
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all | ||
) ELSE ( | ||
set NVCC_FLAGS=-D__CUDA_NO_HALF_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_90,code=compute_90 | ||
) | ||
|
||
set "CUDA_PATH=%CUDA_PATH_V126%" | ||
set "PATH=%CUDA_PATH_V126%\bin;%PATH%" | ||
|
||
:optcheck | ||
|
||
call internal\check_opts.bat | ||
IF ERRORLEVEL 1 goto :eof | ||
|
||
call internal\copy.bat | ||
IF ERRORLEVEL 1 goto :eof | ||
|
||
call internal\setup.bat | ||
IF ERRORLEVEL 1 goto :eof |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
set "DRIVER_DOWNLOAD_LINK=https://ossci-windows.s3.amazonaws.com/528.89-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe" | ||
curl --retry 3 -kL %DRIVER_DOWNLOAD_LINK% --output 528.89-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe | ||
set WIN_DRIVER_VN=528.89 | ||
set "DRIVER_DOWNLOAD_LINK=https://ossci-windows.s3.amazonaws.com/%WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe" | ||
curl --retry 3 -kL %DRIVER_DOWNLOAD_LINK% --output %WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe | ||
if errorlevel 1 exit /b 1 | ||
|
||
start /wait 528.89-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe -s -noreboot | ||
start /wait %WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe -s -noreboot | ||
if errorlevel 1 exit /b 1 | ||
|
||
del 528.89-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe || ver > NUL | ||
del %WIN_DRIVER_VN%-data-center-tesla-desktop-winserver-2016-2019-2022-dch-international.exe || ver > NUL |
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