--- jeremy archuleta <archuleta_at_[hidden]> wrote:
> Here is a snippet from some code (from a.out) that
> was able to use the
> system command to run an MPI job with LAM 6.6b1.
>
> saveRunline(mpirunLine,0);
> //printf("%s\n",mpirunLine);
> saveRoutes();
> system("./cpHosts");
> system("lamboot -l lamhosts");
> printf("%s\n",mpirunLine);
> system(mpirunLine);
> system("lamhalt");
>
> All you have to know is:
> 1. a.out is in /home/me
> 2. cpHosts is also in /home/me
> 3. /home/me is an NFS directory across all nodes
> with the same absolute path
> 4. it worked.
You're right, it did work. I guess the system command
doesn't search paths specified in the bash_profile on
the nodes , setting the direct path in the system()
command did the job. Thanks alot
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
|