Open MislavSag opened 2 years ago
Hi,
I have followed installation instructions here https://torch.mlverse.org/docs/articles/installation.html
and sintall CUDA 11.3 an cuddn 8.4.
I have tried to run example here https://mlverse.github.io/luz/articles/examples/dogs-vs-cats-binary-classification.html
but my R studio crasheh afer I run fitt part.
I have also tried with other examples, but R studio crashed too.
I am using cuda:
> cuda_is_available() [1] TRUE
This simple code works:
> torch_tensor(1, device = "cuda") torch_tensor 1 [ CUDAFloatType{1} ]
Session Info:
> sessionInfo() R version 4.2.1 (2022-06-23 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044) Matrix products: default locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8 [4] LC_NUMERIC=C LC_TIME=English_United States.utf8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] magrittr_2.0.3 luz_0.2.0 torchdatasets_0.1.0 torchvision_0.4.1.9000 torch_0.8.0 loaded via a namespace (and not attached): [1] igraph_1.3.4 Rcpp_1.0.9 rstudioapi_0.13 bit_4.0.4 R6_2.5.1 jpeg_0.1-9 rlang_1.0.4 [8] stringr_1.4.0 tools_4.2.1 coro_1.0.3 png_0.1-7 captcha_0.0.0.9000 cli_3.3.0 bit64_4.0.5 [15] bmp_0.3 processx_3.7.0 purrr_0.3.4 callr_3.7.1 fs_1.5.2 ps_1.7.1 zeallot_0.1.0 [22] tiff_0.1-11 readbitmap_0.1.5 stringi_1.7.6 compiler_4.2.1 imager_0.42.13 generics_0.1.3 pkgconfig_2.0.3
Envoroment variables:
> Sys.getenv() ALLUSERSPROFILE C:\ProgramData ANDROID_HOME C:\Users\Mislav\AppData\Local\Android\Sdk APPDATA C:\Users\Mislav\AppData\Roaming CapMonsterCurrentPath C:\Program Files\ZennoLab\EN\CapMonster Pro\2.10.10.0\Progs ChocolateyInstall C:\ProgramData\chocolatey ChocolateyLastPathUpdate 132874935011172060 CLICOLOR_FORCE 1 CommonProgramFiles C:\Program Files\Common Files CommonProgramFiles(x86) C:\Program Files (x86)\Common Files CommonProgramW6432 C:\Program Files\Common Files COMPUTERNAME DESKTOP-KBV1GE9 ComSpec C:\WINDOWS\system32\cmd.exe CURL_CA_BUNDLE C:/PROGRA~1/R/R-42~1.1/etc/curl-ca-bundle.crt DISPLAY :0 DriverData C:\Windows\System32\Drivers\DriverData GFORTRAN_STDERR_UNIT -1 GFORTRAN_STDOUT_UNIT -1 HEADLESS_CHROME C:\Program Files (x86)\Google\Chrome\Application\chrome.exe HOME C:/Users/Mislav/Documents HOMEDRIVE C: HOMEPATH \Users\Mislav JAVA_HOME C:\Program Files\Java\jre1.8.0_221 LOCALAPPDATA C:\Users\Mislav\AppData\Local LOGONSERVER \\DESKTOP-KBV1GE9 MFilesVersion 22.6.11534.5 MPLENGINE tkAgg MSMPI_BIN C:\Program Files\Microsoft MPI\Bin\ MSYS2_ENV_CONV_EXCL R_ARCH NUMBER_OF_PROCESSORS 32 NVTOOLSEXT_PATH C:\Program Files\NVIDIA Corporation\NvToolsExt\ OneDrive C:\Users\Mislav\OneDrive OneDriveConsumer C:\Users\Mislav\OneDrive OS Windows_NT PATH c:/rtools42/x86_64-w64-mingw32.static.posix/bin;c:/rtools42/usr/bin;C:\Program Files\R\R-4.2.1\bin\x64;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\libnvvp;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\SafeNet\Authentication\SAC\x64;C:\Program Files (x86)\PDFtk\bin\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Mislav\AppData\Roaming\Python\Python37\Scripts;C:\Program Files\nodejs\;C:\Program Files\Java\jdk-12.0.2\bin;C:\Program Files\Java\jre1.8.0_221\bin;C:\ffmpeg-20190821-661a9b2-win64-static\bin;C:\Binaries-LuaDist-batteries-0.9.8-Windows-x86\bin;C:\Program Files\MongoDB\Server\4.2\bin;C:\Program Files\7-Zip;C:\Program Files\Git\cmd;C:\Program Files (x86)\Calibre2\;C:\Program Files (x86)\dotnet\;C:\Program Files\dotnet\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\extras\CUPTI\lib64;C:\tools\cuda\bin;C:\Program Files\CMake\bin;C:\rtools40\usr\bin;C:\chromedriver_win32;C:\geckodriver-v0.29.0-win64;C:\Program Files\PuTTY\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin;C:\Program Files\qpdf-10.1.0\bin;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft\Azure Functions Core Tools\;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\doctl\;C:\RBuildTools\4.0;C:\Users\Mislav\AppData\Local\Pandoc;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\cudnn-windows-x86_64-8.4.0.27_cuda11.6-archive;C:\Users\Mislav\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\Mislav\AppData\Local\Programs\Python\Python310\;C:\Users\Mislav\AppData\Local\Microsoft\WindowsApps;C:\Users\Mislav\AppData\Roaming\npm;C:\Users\Mislav\AppData\Local\Programs\Fiddler;C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.1\bin;C:\Users\Mislav\AppData\Local\atom\bin;C:\Users\Mislav\AppData\Local\GitHubDesktop\bin;C:\Users\Mislav\AppData\Roaming\TinyTeX\bin\win32;C:\Users\Mislav\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Mislav\.dotnet\tools;C:\Users\Mislav\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\DTN\IQFeed;C:\Users\Mislav\AppData\Local\Pandoc\;C:/Program Files/RStudio/bin/quarto/bin PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE AMD64 PROCESSOR_IDENTIFIER AMD64 Family 23 Model 8 Stepping 2, AuthenticAMD PROCESSOR_LEVEL 23 PROCESSOR_REVISION 0802 ProgramData C:\ProgramData ProgramFiles C:\Program Files ProgramFiles(x86) C:\Program Files (x86) ProgramW6432 C:\Program Files PSModulePath C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\PowerShell PUBLIC C:\Users\Public PyCharm Community Edition C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.1\bin; PYTHONIOENCODING utf-8 QT_D3DCREATE_MULTITHREADED 1 R_ARCH /x64 R_CLI_HAS_HYPERLINK_IDE_HELP true R_CLI_HAS_HYPERLINK_IDE_RUN true R_CLI_HAS_HYPERLINK_IDE_VIGNETTE true R_COMPILED_BY gcc 10.3.0 R_DOC_DIR C:/PROGRA~1/R/R-42~1.1/doc R_HOME C:/PROGRA~1/R/R-42~1.1 R_LIBS_SITE C:/PROGRA~1/R/R-42~1.1/site-library R_LIBS_USER C:\Users\Mislav\AppData\Local/R/win-library/4.2 R_RTOOLS42_PATH c:/rtools42/x86_64-w64-mingw32.static.posix/bin;c:/rtools42/usr/bin R_USER C:/Users/Mislav/Documents RMARKDOWN_MATHJAX_PATH C:/Program Files/RStudio/resources/mathjax-27 RS_LOCAL_PEER \\.\pipe\62683-rsession RS_RPOSTBACK_PATH C:/Program Files/RStudio/bin/rpostback RS_SHARED_SECRET 411d8ae5-fde5-4d2d-8ec1-bb35b415cae2 RSTUDIO 1 RSTUDIO_CLI_HYPERLINKS true RSTUDIO_CONSOLE_COLOR 256 RSTUDIO_CONSOLE_WIDTH 80 RSTUDIO_MSYS_SSH C:/Program Files/RStudio/bin/msys-ssh-1000-18 RSTUDIO_PANDOC C:/Program Files/RStudio/bin/quarto/bin/tools RSTUDIO_PROGRAM_MODE desktop RSTUDIO_SESSION_PID 11316 RSTUDIO_SESSION_PORT 62683 RSTUDIO_USER_IDENTITY Mislav RSTUDIO_WINUTILS C:/Program Files/RStudio/bin/winutils RTOOLS40_HOME C:\RBuildTools\4.0 SESSIONNAME Console SystemDrive C: SystemRoot C:\WINDOWS TEMP C:\Users\Mislav\AppData\Local\Temp TERM xterm-256color TMP C:\Users\Mislav\AppData\Local\Temp USERDOMAIN DESKTOP-KBV1GE9 USERDOMAIN_ROAMINGPROFILE DESKTOP-KBV1GE9 USERNAME Mislav USERPROFILE C:\Users\Mislav VS140COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ windir C:\WINDOWS
Nvcc path:
> system("which nvcc", intern = TRUE) [1] "/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.3/bin/nvcc"
I have uninstalled all nvidia downloads and installed Cuda and cudnn again. And I have the same problem. R studio crashes when executing above code.
Hi,
I have followed installation instructions here https://torch.mlverse.org/docs/articles/installation.html
and sintall CUDA 11.3 an cuddn 8.4.
I have tried to run example here https://mlverse.github.io/luz/articles/examples/dogs-vs-cats-binary-classification.html
but my R studio crasheh afer I run fitt part.
I have also tried with other examples, but R studio crashed too.
I am using cuda:
This simple code works:
Session Info:
Envoroment variables:
Nvcc path: