Update of /cvsroot/boost/boost/libs/parallel/example/python
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv657/libs/parallel/example/python
Added Files:
hello_world.py
Log Message:
Import Boost.MPI with the beginnings of a BBv2-based build system
--- NEW FILE: hello_world.py ---
# Copyright (C) 2006 Douglas Gregor <doug.gregor -at- gmail.com>.
# Use, modification and distribution is subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http:#www.boost.org/LICENSE_1_0.txt)
import boost.parallel.mpi as mpi
if mpi.world.rank == 0:
mpi.world.send(1, 0, 'Hello')
msg = mpi.world.recv(1, 1)
print msg,'!'
else:
msg = mpi.world.recv(0, 0)
print msg,', ',
mpi.world.send(0, 1, 'world')
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs