Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Parallelization of heterogenous (runs itself Fortran executables) code

by salva (Canon)
on Nov 20, 2007 at 11:54 UTC ( [id://651905]=note: print w/replies, xml ) Need Help??


in reply to Parallelization of heterogenous (runs itself Fortran executables) code

You can use Parallel::ForkManager or Proc::Queue for that:
# untested use Proc::Queue size => 4, ignore_children => 1, qw(run_back); sub docalc { run_back { my $filename = $_; my $filenamewithpath = $File::Find::name; my $directoryname = $File::Find::dir; my $workdirectory = ...; mkpath($workdirectory); copyfiles(...); chdir $workingdirectory; open STDOUT, '>', "$workbasedirectory/$filename.log"; do "/.../scriptthatincludesfortran.pl" } or warn "unable to fork new process to handle '$_': $!" }
  • Comment on Re: Parallelization of heterogenous (runs itself Fortran executables) code
  • Download Code

Replies are listed 'Best First'.
Re^2: Parallelization of heterogenous (runs itself Fortran executables) code
by Jochen (Acolyte) on Nov 20, 2007 at 16:58 UTC
    Thank you very much! This approach seems to suit my problem best! I'm still having some issues but i think i can solve them.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://651905]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-18 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found