[gpaw-users] Can anyone get mpi broadcast working?

Alex Eftimiades alexeftimiades at gmail.com
Fri Dec 16 23:41:20 CET 2011


I am using the latest version installed on ubuntu from the repository.

Try the following code. I am going from memory (it is on a different  
computer), but you should get the idea.
This is the simplest possible example I could think of--and it  
actually is more or less what I want to do.

from gpaw.mpi import world
from numpy import *

if world.rank == 0:
     test=array([1,2,3,4])
else:
     test=empty([4])
world.barrier()
world.broadcast(test,0)
print str(world.rank)+" says "+str(test)


On Fri, Nov 18, 2011 at 5:24 PM, Alex Eftimiades <alexeftimiades at gmail.com 
 > wrote:
On Dec 16, 2011, at 5:20 PM, Ask Hjorth Larsen wrote:

> Hi
>
> On Fri, 16 Dec 2011, Alex Eftimiades wrote:
>
>> Yes. I am using openmpi -np 4 gpaw-python test.py
>>
>> If this is indeed something wrong with my test script, please show me
>> one that works!
>> Alex
>
> Can you send the actual test script?
>
> Regards
> Ask


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.fysik.dtu.dk/pipermail/gpaw-users/attachments/20111216/d46ce1c0/attachment.html 


More information about the gpaw-users mailing list