pympipool - scale functions over multiple compute nodes using mpi4py
Project description
pympipool
Scale functions over multiple compute nodes using mpi4py
from pympipool import Pool
def calc(i):
import numpy as np
return np.array(i ** 2)
with Pool(cores=2) as p:
print(p.map(function=calc, lst=[1, 2, 3, 4]))
>>> [array(1), array(4), array(9), array(16)]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pympipool-0.0.1.tar.gz
(19.7 kB
view hashes)
Built Distribution
Close
Hashes for pympipool-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db693a4f7bfeb51611a87657c2db51b5af68d8571e107eaed32dbb5bf107dac |
|
MD5 | 8381d64e12777d0c42961e52a503d2bc |
|
BLAKE2b-256 | 0ba095de0ccb6f768ee3872cb28466662c96503b013b59804b310be0eb2e6c86 |