torch icon indicating copy to clipboard operation
torch copied to clipboard

Permission denied when installing cuda version for torch

Open mertgoksel opened this issue 4 months ago • 0 comments

-I downloaded cuda toolkit 11.7 and cudnn 9.5.0 as per the instructions. Now when i do install_torch(reinstall = T) it sees the cuda and installs the cu117.

versuche URL 'https://download.pytorch.org/libtorch/cu117/libtorch-win-shared-with-deps-2.0.1%2Bcu117.zip'
Content type 'application/zip' length 2298898459 bytes (2192.4 MB)
downloaded 2192.4 MB

versuche URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/cran/v0.13.0/latest/lantern-0.13.0+cu117-win64.zip'
Content type 'application/x-zip-compressed' length 2822533 bytes (2.7 MB)
downloaded 2.7 MB

✔ torch dependencies have been installed.
ℹ You must restart your session to use torch correctly.
Warnmeldungen:
1: In file.copy(from = dir(url, full.names = TRUE), to = file.path(inst_path,  :
  Problem C:\Users\Mert\AppData\Local\Temp\RtmpUDaOZX\file4184223c67a5\libtorch\lib\asmjit.dll nach C:\Users\Mert\AppData\Local\R\win-library\4.4\torch\lib\asmjit.dll zu kopieren: Permission denied
2: In file.copy(from = dir(url, full.names = TRUE), to = file.path(inst_path,  :
  Problem C:\Users\Mert\AppData\Local\Temp\RtmpUDaOZX\file4184223c67a5\libtorch\lib\c10.dll nach C:\Users\Mert\AppData\Local\R\win-library\4.4\torch\lib\c10.dll zu kopieren: Permission denied
3: In file.copy(from = dir(url, full.names = TRUE), to = file.path(inst_path,  :
  Problem C:\Users\Mert\AppData\Local\Temp\RtmpUDaOZX\file4184223c67a5\libtorch\lib\fbgemm.dll nach C:\Users\Mert\AppData\Local\R\win-library\4.4\torch\lib\fbgemm.dll zu kopieren: Permission denied
4: In file.copy(from = dir(url, full.names = TRUE), to = file.path(inst_path,  :
  Problem C:\Users\Mert\AppData\Local\Temp\RtmpUDaOZX\file4184223c67a5\libtorch\lib\libiomp5md.dll nach C:\Users\Mert\AppData\Local\R\win-library\4.4\torch\lib\libiomp5md.dll zu kopieren: Permission denied
5: In file.copy(from = dir(url, full.names = TRUE), to = file.path(inst_path,  :
  Problem C:\Users\Mert\AppData\Local\Temp\RtmpUDaOZX\file4184223c67a5\libtorch\lib\torch_cpu.dll nach C:\Users\Mert\AppData\Local\R\win-library\4.4\torch\lib\torch_cpu.dll zu kopieren: Permission denied
6: In file.copy(from = dir(url, full.names = TRUE), to = file.path(inst_path,  :
  Problem C:\Users\Mert\AppData\Local\Temp\RtmpUDaOZX\file4184223c67a5\libtorch\lib\uv.dll nach C:\Users\Mert\AppData\Local\R\win-library\4.4\torch\lib\uv.dll zu kopieren: Permission denied
7: In file.copy(from = dir(url, full.names = TRUE), to = file.path(inst_path,  :
  Problem C:\Users\Mert\AppData\Local\Temp\RtmpUDaOZX\file418479cf5de7\lantern-0.13.0+cu117-win64\lib\lantern.dll nach C:\Users\Mert\AppData\Local\R\win-library\4.4\torch\lib\lantern.dll zu kopieren: Permission denied

I tried opening the Rstudio as administrator but it didnt change. After the install finishes like this i close the rstudio and open it again to test cuda_is_available() but it returns FALSE. I looked at that folders permissions and all users (which is me, admins and system) have full control for it.

image

Edit: Found out that cudnn 9.4.0 was needed for cuda 11.7. Deleted 9.5.0, installed 9.4.0 from C:\Program Files\NVIDIA\CUDNN. Changed path variables to include 9.4 instead of 9.5. Result: Still doesnt work.

Edit 2: Tried deleting the whole package and reinstalling instead of using the function. It worked. Solved.

Win11 23H2 R version 4.4.1

mertgoksel avatar Oct 19 '24 22:10 mertgoksel