Skip to content

Commit 398fc9f

Browse files
authored
Fix for including nvtx dll and cudart (#1156)
* Fix for invluding nvtx dll and cudart * Fix for include nvtx * Fix spaces
1 parent 1fef6c5 commit 398fc9f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

conda/pytorch-nightly/bld.bat

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v%desired_cuda%
2121
set CUDA_BIN_PATH=%CUDA_PATH%\bin
2222
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all
2323
set TORCH_CUDA_ARCH_LIST=3.7+PTX;5.0
24-
if "%desired_cuda%" == "10.2" set TORCH_CUDA_ARCH_LIST=%TORCH_CUDA_ARCH_LIST%;6.0;6.1;7.0;7.5
25-
if "%desired_cuda%" == "11.3" (
26-
set TORCH_CUDA_ARCH_LIST=%TORCH_CUDA_ARCH_LIST%;6.0;6.1;7.0;7.5;8.0;8.6
27-
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all --threads 2
28-
)
2924
if "%desired_cuda%" == "11.5" (
3025
set TORCH_CUDA_ARCH_LIST=%TORCH_CUDA_ARCH_LIST%;6.0;6.1;7.0;7.5;8.0;8.6
3126
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all --threads 2
@@ -112,6 +107,8 @@ IF "%USE_SCCACHE%" == "1" (
112107

113108
if NOT "%build_with_cuda%" == "" (
114109
copy "%CUDA_BIN_PATH%\cudnn*64_*.dll*" %SP_DIR%\torch\lib
110+
copy "%CUDA_BIN_PATH%\cudart*64_*.dll*" %SP_DIR%\torch\lib
111+
copy "%NVTOOLSEXT_PATH%\bin\x64\nvToolsExt64_*.dll*" %SP_DIR%\torch\lib
115112
:: cupti library file name changes aggressively, bundle it to avoid
116113
:: potential file name mismatch.
117114
copy "%CUDA_PATH%\extras\CUPTI\lib64\cupti64_*.dll*" %SP_DIR%\torch\lib

0 commit comments

Comments
 (0)