parallel

375 views
Skip to first unread message

tom

unread,
Jan 1, 2014, 12:28:05 PM1/1/14
to rqtl...@googlegroups.com
Hi Karl:

I'm running into an error message trying to run permutations using multiple processors.  I'm working on a windows 64 bit machine with a quad core with windows 7.  I previously had success using multiple cores with the snow/relcuyer implementation in r/qtl.  With the most recent version of rqtl I'm getting this error message:

Error in mclapply(rep(n.perm, n.cluster), scantwoPermInParallel, cross = cross,  :
  'mc.cores' > 1 is not supported on Windows

Any sidestep to the problem? os is this simply a limitation to parallel on a windows machine.
Let me know if you have any thoughts - and happy new year!
Best,
Tom


Karl Broman

unread,
Jan 1, 2014, 1:13:57 PM1/1/14
to rqtl...@googlegroups.com
Hi, Tom,

What versions of R and R/qtl are you using?

If you're not using the latest versions (R 3.0.2 and R/qtl 1.29-2), maybe upgrading to the latest versions will solve the problem.
karl
> --
> You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
> To post to this group, send email to rqtl...@googlegroups.com.
> Visit this group at http://groups.google.com/group/rqtl-disc.
> For more options, visit https://groups.google.com/groups/opt_out.

tom

unread,
Jan 1, 2014, 3:31:06 PM1/1/14
to rqtl...@googlegroups.com
Hi Karl:

I'm working with R3.0.2 and 1.29-2 .....and still get the error message.
TJ

Karl Broman

unread,
Jan 2, 2014, 10:47:15 AM1/2/14
to rqtl...@googlegroups.com
Hi, Tom,

It seems that that the function I'm using for parallel analysis, mclapply, doesn't work on Windows. Oops!

http://www.r-bloggers.com/a-no-bs-guide-to-the-basics-of-parallelization-in-r/

I'll work on it.

regards,
karl

Karl Broman

unread,
Jan 2, 2014, 11:45:44 AM1/2/14
to rqtl...@googlegroups.com
I've fixed the problem but haven't yet tested it in Windows.

You could try installing the development version from Github, using Hadley Wickham's devtools package.

If you don't have devtools installed, install it with:

  install.packages("devtools")

Load the devtools package and then attempt to install R/qtl:

  library(devtools)
  install_github("qtl", "kbroman", "devel")

karl

Karl Broman

unread,
Jan 3, 2014, 2:54:46 PM1/3/14
to rqtl...@googlegroups.com
I've not been able to test the changes yet, but I was able to compile the package for windows:


Let me know if it works for you.

karl

tom

unread,
Jan 4, 2014, 12:17:44 PM1/4/14
to rqtl...@googlegroups.com
Hi Karl:

That runs on my 32-bit R installation.....
Thanks,
Tom
Reply all
Reply to author
Forward
0 new messages