pymp:Unix上用于Python的简单,OpenMP风格的多处理

时间:2021-05-03 21:14:19
【文件属性】:
文件名称:pymp:Unix上用于Python的简单,OpenMP风格的多处理
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-03 21:14:19
Python mp 该软件包将类似OpenMP的功能引入Python。 它具有OpenMP的优良品质,例如最小的代码更改和高效率,并将它们与代码清晰和易于使用的Python Zen相结合。 用法 For循环,例如: from __future__ import print_function ex_array = np.zeros((100,), dtype='uint8') for index in range(0, 100): ex_array[index] = 1 print('Yay! {} done!'.format(index)) 变得: from __future__ import print_function import pymp ex_array = pymp.shared.array((100,), dtype='uint8') with pymp.Parall
【文件预览】:
pymp-master
----LICENSE.txt(1KB)
----.travis.yml(198B)
----pymp()
--------config.py(2KB)
--------__init__.py(12KB)
--------shared.py(2KB)
----setup.cfg(39B)
----setup.py(569B)
----README.md(8KB)
----docs()
--------make.bat(7KB)
--------conf.py(9KB)
--------pymp.rst(391B)
--------index.rst(591B)
--------Makefile(7KB)
----tests()
--------__init__.py(0B)
--------unittests.py(10KB)
----.gitignore(56B)

网友评论