[cam-users] it says "can't find LOGNAME"

S. Janakiraman jraman@cdacindia.com
Wed, 13 Aug 2003 15:43:34 +0530 (IST)


Hi,
    
   I presume that you have used MPICH to run CAM in SPMD mode on Sun (
probably using mpirun ). While using MPICH, the runtime environment
variables are only available to the master and not to any other processes.
Hence the problem.

 However, If you use SUN MPI to run the model, you can get over the
difficulty. The 'mprun' of SUN MPI passes the runtime environment variable
to all the processes. Essentially SUN MPI provides Parallel Environment
for the SPMD/MPMD program.

regards
Janakiraman
    

On Tue, 12 Aug 2003, Eric Maloney wrote:

> 
> Hi Dance,
> 
> I recall that I had a similar problem running the model on a Sun. I
> tried many possible solutions but eventually just
> had to give up and hardwire my "logname" into the code in the subroutines
> "filenames.F90" and "history.F90". There may have been a subroutine in the
> land model code that required "logname" as well. It seems to be some
> problem in communication between the slaves and master processor on the
> Sun using SPMD.
> 
> Someone might have a more elegant solution, however.
> 
> Eric Maloney
> 
> ------------------
> Eric Maloney          EMAIL: maloney@coas.oregonstate.edu
> 
> 
> On Tue, 12 Aug 2003, Dance Zurovac-Jevtic wrote:
> 
> > Dear  CAM2 colleagues,
> >
> > I am trying to port CAM2 to my small cluster computer.  I was able to run it
> > using a single CPU mode successfully.  When I tried to run it on the SPMD
> > mode, then the model stopped giving this error message "Cannot find LOGNAME
> > environment variable".  I am using bash, and in my bash environment I do
> > find my LOGNAME.  I even executed "export LOGNAME=dance" just before running
> > CAM2 on the SPMD mode.  I also tried csh too.  Nothing seems working.  Does
> > anybody have any idea?
> >
> > Dance Zurovac-Jevtic, PhD
> > 77 Mass. Ave., 54-1619
> > Cambridge, 02139 MA
> > tel. (617) 452-3989
> >
> > _______________________________________________
> > cam-users mailing list
> > cam-users@ucar.edu
> > http://mailman.ucar.edu/mailman/listinfo/cam-users
> >
> _______________________________________________
> cam-users mailing list
> cam-users@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/cam-users
>