f2py: using openMP parallel in fortran fails

故事扮演 提交于 2019-12-06 16:08:32

I am not sure how to solve this issue for dynamic linking. It mostly has to do with something related to LD_LIBRARY_PATH or something.

But as a workaround you can do static linking of the library

Add the -static option to the linker options in setup.py

extra_link_args=['-lgomp -static']

This will remove the need for locating the dependency at run-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!