Showing posts with label parallel. Show all posts
Showing posts with label parallel. Show all posts
Friday, May 22, 2015
Saturday, October 26, 2013
Parallel problem and a fix
By default, R only uses one of the 12 cores in my workstation. According to this post, the easiest solution is to put "system(sprintf("taskset -p 0xffffffff %d", Sys.getpid()))" in my .Rprofile.
Even better, one can simply put a line "mcaffinity(1:12)" everytime the "parallel" package is loaded.
Even better, one can simply put a line "mcaffinity(1:12)" everytime the "parallel" package is loaded.
Subscribe to:
Posts (Atom)