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

Using setMKLthreads() in MRO 3.5.3 in combination with RStudio crashes R #5933

Closed
tomwenseleers opened this issue Dec 28, 2019 · 3 comments
Closed
Labels

Comments

@tomwenseleers
Copy link

tomwenseleers commented Dec 28, 2019

System details

RStudio Edition : desktop
RStudio Version : 1.2.5033 
OS Version      :  Windows 10
R Version       :  MRO 3.5.3

Steps to reproduce the problem & problem description & description of expected behavior

Installing Microsoft R Open 3.5.3 from https://mran.microsoft.com/documents/rro/installation
and then calling RevoUtilsMath::setMKLthreads(4) to set the number of threads to use in the Intel MKL BLAS crashes R & RStudio. Doing the same in the console (Rgui.exe), however, works as expected, so I presume the problem must be due to some interaction with RStudio.

@tomwenseleers tomwenseleers changed the title Using setMKLthreads() in MRO 3.5.3 in combination with RStudio crashes Using setMKLthreads() in MRO 3.5.3 in combination with RStudio crashes R Dec 28, 2019
@jmcphers
Copy link
Member

jmcphers commented Jan 2, 2020

Do you have a call stack or mini dump for the crash?

@tomwenseleers
Copy link
Author

Well problem is that it crashes the R session in RStudio before I can ask for a traceback() - so it just gives me a window "R Session Aborted"... But the problem should be easy enough for you to reproduce...

@kevinushey
Copy link
Contributor

A Windows minidump suggests the crash is happening in Rlapack.dll, but without symbols it's hard to say anything more.

Odds are this needs to be resolved on Microsoft's side.

robinvanemden added a commit to Nth-iteration-labs/contextual that referenced this issue Apr 9, 2020
Due to an unresolved incompatibility between MRAN and RStudio:

rstudio/rstudio#5933
https://social.technet.microsoft.com/Forums/en-US/2791e896-c284-4330-88f2-2dcd4acea074

MKL threads to 1 is disabled when running from RStudio.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants