Newsgroups: comp.parallel.mpi From: Gary L. Hennigan Reply-To: glhenni@cs.sandia.gov Subject: Re: Permission denied Organization: Sandia National Labs Date: 18 Mar 1998 09:36:55 -0700 Mime-Version: 1.0 (generated by tm-edit 7.108) Message-ID: Ah Sit writes: | I am running MPICH in my Linux box. When I type mpirun -np 2 cpi, | Permission denied shows up. I am using Slackware and tried to modified the | .rhosts and /etc/hosts.equiv files but that did not work. What's the | problem? As pointed out by another poster this sounds more like a Linux problem than a MPICH problem. Can you do rsh ls where is either localhost or whatever name you have given your box? If you get a "permission denied" I would suggest posting that as a problem to one of the Linux groups. If you can successfully do a "rsh localhost ls" then read on. Look at the file mpirun (do a cat 'which mpirun'|more at the shell prompt). Get the value of MPIR_HOME that is set by that script (it's probably something like /usr/local/mpi or /usr/mpi. Once you have the value of MPIR_HOME look in the directory $MPIR_HOME/util/machines. You should see a file with a name similiar to "machines.Linux". Look at it's contents. The first thing I would suggest, if it's not already true, is to just put "localhost" in there as many times as you wish. Each line is a machine on which to run a process, so, if the largest number of processors you're going to run on is 5 just put 5 lines of "localhost" in there, like: localhost localhost localhost localhost localhost Of course this assumes you're just going to use one machine to run on. You'd have to enter valid hostnames in this file otherwise and then verify that "rsh ls" works to each of those. Again, if "rsh ls" doesn't work it's a problem with your Linux setup and I'd suggest asking how to fix it in one of the comp.os.linux newsgroups. Gary Hennigan (glhenni@cs.sandia.gov)