Skip to content

Instantly share code, notes, and snippets.

View hossg's full-sized avatar

hossg

View GitHub Profile
@hossg
hossg / cpi-cco.py
Created March 7, 2015 17:26
Update of cpi-cco.py from mpi4py to allow parameterisation of the iteration count at the command line, and to remove looping.
#!/usr/bin/env python
"""
Parallel PI computation using Collective Communication Operations (CCO)
within Python objects exposing memory buffers (requires NumPy).
usage::
$ mpiexec -n <nprocs> python cpi-buf.py
"""