Skip to content
Prev 323001 / 398502 Next

how to parallelize 'apply' across multiple cores on a Mac

(I neglected to use reply-all.)

---------- Forwarded message ----------
From: David Romano <dromano at stanford.edu>
Date: Sat, May 4, 2013 at 11:25 AM
Subject: Re: [R] how to parallelize 'apply' across multiple cores on a Mac
To: Charles Berry <ccberry at ucsd.edu>
On Sat, May 4, 2013 at 9:32 AM, Charles Berry <ccberry at ucsd.edu> wrote:
[detailed recommendations deleted]
Thanks, Charles, for all the helpful pointers!   For the moment, I'll
leave parallelization aside, and will explore using 'crossprod' and
'filter'.   Although, from your suggestion that 8 GB of memory should
be sufficient if I went the parallel, I also wonder whether I'm
suffering not just from inefficient use of computing resources, but
that there's a memory leak as well:   The original 'apply' code would,
in much less than a minute, take over the full 18 GB of memory
available on my workstation, and then leave it functioning at a crawl
for at least a half hour or so.   I'll ask about this by reposting
this message again with a different subject, so no need to address it
in this thread.

Thanks again,
David
Message-ID: <CAO81HcQJfkNVcSuWpLH79kB+QXBm_w=bEgYOjGyiJ5SsfYLGeA@mail.gmail.com>
In-Reply-To: <CAO81HcRfvepxGjXih6kZrv9chyz6nNinRHBnYO_dnc+kfSG4eg@mail.gmail.com>