1#import mpi4py
2#mpi4py.profile("mpe")
3from mpi4py import MPI
4
5import unittest
6
7import sys, os
8sys.path.insert(0, os.path.dirname(__file__))
9from seq import Seq
10del sys.path[0]
11
12def test():
13    size = MPI.COMM_WORLD.Get_size()
14    rank = MPI.COMM_WORLD.Get_rank()
15    name = MPI.Get_processor_name()
16    with Seq(MPI.COMM_WORLD, 1, 10):
17        print(
18            "Hello, World! I am process %d of %d on %s."
19            % (rank, size, name))
20
21if __name__ == "__main__":
22    test()
23