|
|
Choosing A Webhost: |
Re: [gt-user] Run a wrapped command with MPI: msg#00094clustering.torque.user
Hello: Thank you all for your help. The problem was indeed the missing command line arguments. I patched mi pbs.pm script from the $GLOBUS_LOCATION/lib/perl/Globus/GRAM/JobManager directory in the way I describe below. It is a bit untidy, but I got it to work. Replaced: print CMD "#!/bin/sh\n"; print CMD 'cd ', $description->directory(), "\n"; print CMD "$rsh_env\n"; print CMD $description->executable(), " $args\n"; close(CMD); chmod 0700, $cmd_script_name; With: print CMD "#!/bin/sh\n"; print CMD 'cd ', $description->directory(), "\n"; print CMD "$rsh_env\n"; if ($description->jobtype() eq "mpi") { if ($mpiexec ne 'no') { # below is the line as it originally was print CMD $description->executable(), " $args\n"; } else { # mpirun case print CMD $description->executable(), " \"\$@\"\n"; } } else { # below is the line as it originally was print CMD $description->executable(), " $args\n"; } close(CMD); chmod 0700, $cmd_script_name; And replaced: if ($description->jobtype() eq "mpi") { if ($mpiexec ne 'no') { my $machinefilearg = ""; if ($cluster) { $machinefilearg = ' -machinefile $PBS_NODEFILE'; } print JOB "$mpiexec $machinefilearg -n " . $description->count(); } else { print JOB "$mpirun -np " . $description->count(); if ($cluster) { print JOB ' -machinefile $PBS_NODEFILE'; } } print JOB " $cmd_script_name < " . $description->stdin() . "\n"; } With: if ($description->jobtype() eq "mpi") { if ($mpiexec ne 'no') { my $machinefilearg = ""; if ($cluster) { $machinefilearg = ' -machinefile $PBS_NODEFILE'; } print JOB "$mpiexec $machinefilearg -n " . $description->count(); # this line is copied from below, I separated the two cases and only modified the mpirun case print JOB " $cmd_script_name < " . $description->stdin() . "\n"; } else { print JOB "$mpirun -np " . $description->count(); if ($cluster) { print JOB ' -machinefile $PBS_NODEFILE'; } print JOB " $cmd_script_name $args < " . $description->stdin() . "\n"; } # I broke the following line into two cases above # print JOB " $cmd_script_name < " . $description->stdin() . "\n"; } Thanks again, Matt On 5/15/07, Brian R. Toonen <toonen@xxxxxxxxxxx> wrote: Some implementations of mpirun pass command line arguments to the executable
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Why resources_used.cput=00:00:00 ???, Filippo Spiga |
|---|---|
| Next by Date: | Re: Exit_status=271 ???, Martin Schafföner |
| Previous by Thread: | Re: Run a wrapped command with MPI, Garrick Staples |
| Next by Thread: | Re: Re: [gt-user] Run a wrapped command with MPI, Mehdi Sheikhalishahi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |