]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/mpi/test/python/ring_test.py
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / mpi / test / python / ring_test.py
index 3c8b5b92f809f97b7b3f9adb2541d2432b4e8d76..d67baa28c5886449680b61146df2e47934d8b4c4 100644 (file)
@@ -6,7 +6,8 @@
 
 # Test basic communication.
 
-import boost.parallel.mpi as mpi
+from __future__ import print_function
+import mpi
 
 def ring_test(comm, value, kind, root):
     next_peer = (comm.rank + 1) % comm.size;
@@ -27,11 +28,11 @@ def ring_test(comm, value, kind, root):
 
     comm.barrier()
     if comm.rank == root:
-        print "OK"
+        print ("OK")
     pass
 
 if mpi.world.size < 2:
-    print "ERROR: ring_test.py must be executed with more than one process"
+    print ("ERROR: ring_test.py must be executed with more than one process")
     mpi.world.abort(-1);
     
 ring_test(mpi.world, 17, 'integers', 0)