473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Scientifi Python+MPI

Hello everyone

The point of my work is to run a python program at a cluster with MPI communication, so I use Python Scientific module 2.4.11 . I have installed the Scientific and the MPI module according to instructions at each node of cluster. When I execute mpi.py at the cluster the following message appears :

nimitsis@centaurus:~> mpipython mpi.py
Traceback (most recent call last):
File "mpi.py", line 11, in ?
communicator.send(data, 1, 0)
Scientific.MPI.core.MPIError: invalid MPI destination

According to core.py file at 299 line which is the following :

def send(self, data, destination, tag):
if destination != 0:
raise MPIError, "invalid MPI destination"
self.messages.append((tag, Numeric.array(data, copy=1).flat))

the above message is right, but it seems that the send function can not send message to any destination except 0. Is that desirable ?

In addition, I have 2 questions :
1. If i want to execute the program at several processors , where do I declare that? for example at C I use for execution at 4 processors the command : mpirun -np=4 "name of executable" , what must I do for that ?
2. Where does happens the initialization of the MPI_world with the appropriate arguments of the processor number ?

I will appreciate very each answer.
Thank you in advance
Sep 11 '07 #1
0 1176

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Natsu Mizutani | last post by:
Hello, I'm trying to wrap a c++ library using MPI inside with boost.python (or SWIG). I managed to find that calling `MPI::Init()` embeded in a c++ funtion would not work. So, I decided to use...
0
by: Barry Rountree | last post by:
Hello, I'd like to use a Python MPI wrapper (pypar, pyMPI, or ScientificPython) but I can't get threading to work. I'd like individual threads responsible for MPI_Send and MPI_Recv. Things...
0
by: Marc Poinot | last post by:
Hi, I'm trying to add a dynamic module using MPI on a 2.3.4 Python with threads (posix). The interpreter blocks into the dlopen (dynload_shlib.c) if any reference to the IRIX libmpi.so (actually...
2
by: uli | last post by:
Is there any open source Python software (preferably biopython) written which runs on a cluster. Alternatively are there interfaces written in Python to existing cluster software.
53
by: Michael Tobis | last post by:
Someone asked me to write a brief essay regarding the value-add proposition for Python in the Fortran community. Slightly modified to remove a few climatology-related specifics, here it is. I...
1
by: friedmud | last post by:
Has anyone used PyPar ( http://datamining.anu.edu.au/~ole/pypar/ ) recently? I _do_ want to do MPI (not BSP) but I don't need any advanced MPI things... and PyPar seemed just up my ally... but...
2
by: dfj225 | last post by:
Hello All, A software project that I am working on currently has a C++ library that runs on a Beowulf cluster for parallel computation. The library code uses MPI for its implementation. We are...
43
by: parallelpython | last post by:
Has anybody tried to run parallel python applications? It appears that if your application is computation-bound using 'thread' or 'threading' modules will not get you any speedup. That is because...
7
by: Spectrum | last post by:
I am writing some Python code using the Message Passing Interface (MPI), an API used in parallel computing. There exist a number of Python implementations of MPI, but apparently they all rely on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.