Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied when installing cuda version for torch #1201

Open
mertgoksel opened this issue Oct 19, 2024 · 0 comments
Open

Permission denied when installing cuda version for torch #1201

mertgoksel opened this issue Oct 19, 2024 · 0 comments

Comments

@mertgoksel
Copy link

mertgoksel commented Oct 19, 2024

-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant