Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 中禁用 OpenMP ,但在的官方文档graph-tool中找不到任何关于 OpenMP的信息。graph-tool
graph-tool
有没有办法关掉它?
有几种方法。在编译期间,您可以将选项传递--disable-openmp给configure脚本。
--disable-openmp
configure
如果您只想在运行时禁用 openmp,您可以:
OMP_NUM_THREADS=1
openmp_set_num_threads(1)