On 1 October 2016 at 11:26, Edward d'Auvergne <edw...@nmr-relax.com> wrote: > On 1 October 2016 at 01:21, <tlin...@nmr-relax.com> wrote: >> Author: tlinnet >> Date: Sat Oct 1 01:21:30 2016 >> New Revision: 28234 >> >> URL: http://svn.gna.org/viewcvs/relax?rev=28234&view=rev >> Log: >> Added initial script for testing openmpi. >> >> Added: >> trunk/devel_scripts/openmpi_test_install.sh >> Modified: >> trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh > > Hi Troels, > > I would suggest adding a simple Python hello world script (e.g. > https://github.com/erdc-cm/mpi4py/blob/master/demo/helloworld.py). > That way you can test OpenMPI by itself, mpi4py in pure Python, and > mpi4py in relax. It will isolate the problem to either MPI, mpi4py or > relax.
Here is a simple way to do it from the command line: [edward@localhost relax-trunk]$ mpirun -np 4 python -c "from mpi4py import MPI; print('Process %d of %d on %s.' % (MPI.COMM_WORLD.Get_rank(), MPI.COMM_WORLD.Get_size(), MPI.Get_processor_name()))" Process 2 of 4 on localhost.localdomain. Process 3 of 4 on localhost.localdomain. Process 0 of 4 on localhost.localdomain. Process 1 of 4 on localhost.localdomain. [edward@localhost relax-trunk]$ Regards, Edward _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-devel mailing list relax-devel@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-devel