Redian新闻
>
openMP or boost::thread (pthread) for multithreading ?
avatar
openMP or boost::thread (pthread) for multithreading ?# Unix - 噫吁兮,危乎高哉
l*9
1
Hi,
I am trying to do parallelization for a computing intensive problem.
I am working on a Linux cluster where each node is a multicore processor.
e.g. 2 or 4 quad-core processor per node.
I want to reduce latency and improve performance as much as possible.
I plan to use multiprocessing and multithreading at the same.
Each process run on a distinct node and each process spawn many threads
on each node. This is a 2 level parallelism.
For multiprocessing, I would like to choose MPI.
For multithreading, I have two choices: openMP or boost::thread (pthread).
Which one has lower latency and higher performance ?
It seems that openMP coding is easier (without touching low level thread
managing manually).
But, it seems that openMP has higher overhead than boost::thread (pthread).
Any help is really appreciated.
thanks
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。