[英]parallel computing support in enthought python
Does Enthought Canopy support parallel code execution on CPU using perhaps openMPI or on GPU using openCV or CUDA Enthought Canopy是否支持在使用openMPI的CPU上或在使用openCV或CUDA的GPU上并行执行代码
I am looking into switching from C++ to python as i want to make GUI for my parallel code. 我想从C ++切换到python,因为我想为并行代码制作GUI。
Is this a good idea. 这是一个好主意吗。 Does python support parallel computation?
python支持并行计算吗?
Yes, Python does support this. 是的,Python确实支持这一点。 There are three layers to processes with Python:
Python的处理过程分为三层:
subprocess
: which simply starts a process within the same thread subprocess
:仅在同一线程内启动一个进程 threading
: which starts a new thread and leaves the old on alone. threading
:这将启动一个新线程,而仅保留旧线程。 There are some frequent stories that this not necessarily leads to better performance. multiprocessing
: which is what you are after multiprocessing
:这就是您所追求的 Here is an intro to parallel processing on Python. 这是Python上并行处理的介绍。
The official docs for the multiprocessing are here . 多重处理的官方文档在这里 。
The ever so useful discussions on the Python Module of the Week are also worth a look. 关于本周Python模块的如此有用的讨论也值得一看。
Edit: 编辑:
The python libraries mentioned by HT @jonathan are likely to be: HT @jonathan提到的python库可能是:
Cuda: http://mathema.tician.de/software/pycuda CUDA: http ://mathema.tician.de/software/pycuda
OpenCV: http://code.google.com/p/pyopencv/ OpenCV: http : //code.google.com/p/pyopencv/
There is a nice tutorial for this here . 有一个很好的教程,这这里 。
And Message Passing Interface: http://mpi4py.scipy.org/docs/usrman/intro.html 和消息传递接口: http : //mpi4py.scipy.org/docs/usrman/intro.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.