You should specify the MPI4py program file at the mpirun command. Since you don't have a hostfile yet, you don't need to specify it in the command.
For example, in order to run a program named "test.py" with 4 MPI processes you can use: If using Python 2: mpirun -np 4 python2 test.py If using Python 3: mpirun -np 4 python3 test.py On Tue, Jun 5, 2018 at 4:01 PM, Neil k8it <k...@cac.net> wrote: > Kostas > I guess we made some progress,however I think I still have a syntax > problem. > Right now I am still configuring the master node ,so I do not have a > hostfile made yet.so I am using the following command which returns a > python message from an unknown python program. > > mpirun --allow-run-as-root -np 4 hostname > > the responds is : > > python2helloworld.py > python2helloworld.py > python2helloworld.py > python2helloworld.py > > this tells me that the program ran 4 times, 1 oer core. > this is good. > however I do not know where this program file is located. I also do not > know how this python 2 file gets invoked . > > my question is :how can I modifly this command line to specifly the proper > python program? > > thanks neil > > > *To:* Open MPI Users <users@lists.open-mpi.org> > *Subject:* Re: [OMPI users] need help installing mpi4py on openmpi > > Here are some instructions I have put together. > > I am using Python 2 and Open MPI 2.1.2 so I changed the commands to work > for Python 3 and I tested them. > > Hope it helps. > > Regards, > Kostas > > On Sun, Jun 3, 2018 at 1:56 PM, Neil k8it <k...@cac.net> wrote: > >> thanks, to all on this list for getting me this far. >> my next step is to install mpi4py on the cluster master node. >> I am looking for a suggested list of commands to do this. >> notes >> running openmpi 3.1.0 >> raspberry pi 3 b + >> raspian stretch >> >> thanks neil >> >> >> -------------------------------------------------- >> From: "Jeff Squyres (jsquyres)" <jsquy...@cisco.com> >> Sent: Tuesday, May 29, 2018 8:03 PM >> To: "Open MPI User's List" <users@lists.open-mpi.org> >> Subject: Re: [OMPI users] need help finding mpi for Raspberry pi Raspian >> Streach >> >> If your Linux distro does not have an Open MPI package readily available, >>> you can build Open MPI from source for an RPi fairly easily. Something >>> like this (not tested on an RPi / YMMV): >>> >>> wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi- >>> 3.1.0.tar.bz2 >>> tar xf openmpi-3.1.0.tar.bz2 >>> cd openmpi-3.1.0 >>> ./configure |& tee config.out >>> make -j |& tee make.out >>> sudo make install |& tee install.out >>> >>> This will download, configure, build, and install Open MPI into the >>> /usr/local tree. >>> >>> You can optionally specify a prefix to have it install elsewhere, e.g.: >>> >>> ./configure --prefix=/path/to/where/you/want/it/to/install |& tee >>> config.out >>> >>> Then do the make/sudo make again. >>> >>> >>> On May 29, 2018, at 6:43 PM, Neil k8it <k...@cac.net> wrote: >>>> >>>> I am starting to build a Raspberry pi cluster with MPI and I want to >>>> use the latest Raspian Streach Lite version from the raspberrypi.org >>>> website. After a lot of trials of watching youtubes on how to do this, I >>>> have found that the new version of Raspian Streach LITE is not compatible . >>>> I am looking for details instructions on how to install MPIwith this latest >>>> version of Raspian Streach Lite. I am using the newset hardware,RPI 3 B+ >>>> which requires this OS to use the features on the -new chipset >>>> >>>> >>>> >>>> >>>> >>>> Thanks >>>> Neil >>>> _______________________________________________ >>>> users mailing list >>>> users@lists.open-mpi.org >>>> https://lists.open-mpi.org/mailman/listinfo/users >>>> >>> >>> >>> -- >>> Jeff Squyres >>> jsquy...@cisco.com >>> >>> _______________________________________________ >>> users mailing list >>> users@lists.open-mpi.org >>> https://lists.open-mpi.org/mailman/listinfo/users >>> >> >> _______________________________________________ >> users mailing list >> users@lists.open-mpi.org >> https://lists.open-mpi.org/mailman/listinfo/users >> > > ------------------------------ > > _______________________________________________ > users mailing list > users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/users > >
_______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users