How to employ something such as openMP in Cython?

后端 未结 5 752
攒了一身酷
攒了一身酷 2021-01-02 21:46

Basically I have a problem that is pretty much embrassing parallel and I think I\'ve hit the limits of how fast I can make it with plain python & multiprocessing so I\'m

5条回答
  •  佛祖请我去吃肉
    2021-01-02 22:19

    According to the cython wiki, the developers have thought about a variety of options, but I don't believe they have implemented anything yet.

    If your problem is embarrassingly parallel, and you already have a multi-processing solution, why not just get each worker process to call some cython code instead of python code?

提交回复
热议问题