plagent has asked for the wisdom of the Perl Monks concerning the following question:
from my understanding of this module, I wrote a simple script to permutation test. The outer loop is for generating random sequences for inner loop to use. I mean that, I do 1000 computation, for example. Each computation in inner loop will use 16 CPUs and other parameters to carry out a task dedicated by count_pwm_num(). But when I performed the task, I always got the complaint which is " Cannot fork: Cannot allocate memory at /perl5/Parallel/ForkManager.pm line 589"
Here is the code.Please point out where is the error in my code.foreach my $shuffle_id (1..$permutation) { my $pm = Parallel::ForkManager->new( $multi_cpu_num ); PFM: for my $pwm (@ciona_pwm_array) { $pm->start and next PFM; count_pwm_num($pwm,$seq_1,$seq_2); $pm->finish; } $pm->wait_all_children; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot fork in Parallel::ForkManager
by Perlbotics (Archbishop) on Apr 08, 2015 at 08:30 UTC | |
by plagent (Novice) on Apr 09, 2015 at 06:26 UTC |