Skip to content

Commit

Permalink
Fix copy logic for Windows (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc123 authored and soumith committed Nov 8, 2019
1 parent 8f9e824 commit 64c8d50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
16 changes: 7 additions & 9 deletions windows/internal/copy.bat
@@ -1,13 +1,11 @@
copy "%CUDA_PATH%\bin\cusparse64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cublas64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cudart64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\curand64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cufft64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cufftw64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cusparse*64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cublas*64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cudart*64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\curand*64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cufft*64_*.dll*" pytorch\torch\lib

copy "%CUDA_PATH%\bin\cudnn64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\nvrtc64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\nvrtc-builtins64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\cudnn*64_*.dll*" pytorch\torch\lib
copy "%CUDA_PATH%\bin\nvrtc*64_*.dll*" pytorch\torch\lib

copy "C:\Program Files\NVIDIA Corporation\NvToolsExt\bin\x64\nvToolsExt64_1.dll*" pytorch\torch\lib
copy "%CONDA_LIB_PATH%\libiomp*5md.dll" pytorch\torch\lib
1 change: 0 additions & 1 deletion windows/internal/test.bat
Expand Up @@ -27,7 +27,6 @@ if NOT "%BUILD_VISION%" == "" goto smoke_test_end
if "%CUDA_VERSION%" == "cpu" goto smoke_test

:: Remove CUDA paths to ensure all the CUDA DLLs are copied
set desired_cuda=%CUDA_VERSION:~0,-1%.%CUDA_VERSION:~-1,1%
set "PATH=%PATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA=C:\Not_Existing_Folder%"

:smoke_test
Expand Down

0 comments on commit 64c8d50

Please sign in to comment.