473,372 Members | 1,116 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,372 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 1173

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

Similar topics

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...
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...
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...
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.
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...
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...
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...
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...
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...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.