Controlling threads on OSX and disabling the "Multithreaded..." message on startup

77 views
Skip to first unread message

Greg Werbin

unread,
Jan 4, 2016, 1:40:32 PM1/4/16
to Revolution R Open
I use RRO on OSX, and I'd like to be able to control the number of cores being used. However the setMKLthreads() function isn't available on the Mac installation. Is there any way at all to control the threads? I don't always want to be using all four cores on my machine.

Also, can I disable the startup message somehow? I use Rscript frequently and it's an annoying extra step having to scrub this line from my output.

Josée Martens

unread,
Jan 7, 2016, 5:00:29 PM1/7/16
to Revolution R Open
Hi Greg,

To disable the startup message, simply comment out the message in the Rprofile.site file, which can be found here:  

/Library/Frameworks/R.framework/Versions/3.2/Resources/etc/Rprofile.site.


Look for the clause that starts with: 

sysinfo((["sysname"]=="Darwin"


Comment out the message line that follows the Darwin sysinfo line.


Thanks,

Josée

Greg Werbin

unread,
Jan 7, 2016, 9:23:22 PM1/7/16
to Revolution R Open
Thanks. I ended up just adding "if (!quiet)" at the beginning of the line that produces the message.

So is there no any way to actually control the number of cores? The startup message just pulls the number directly from sysctl.
Reply all
Reply to author
Forward
0 new messages