OpenMP and Python

后端 未结 7 2058
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 23:03

I have experience in coding OpenMP for Shared Memory machines (in both C and FORTRAN) to carry out simple tasks like matrix addition, multiplication etc. (Just to see how it

相关标签:
7条回答
  • 2020-11-28 23:54

    Due to GIL there is no point to use threads for CPU intensive tasks in CPython. You need either multiprocessing (example) or use C extensions that release GIL during computations e.g., some of numpy functions, example.

    You could easily write C extensions that use multiple threads in Cython, example.

    0 讨论(0)
提交回复
热议问题