由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Hardware版 - openMP or boost::thread (pthread) for multithreading ?
相关主题
目前不觉得双核以上很有必要谁给比较一下virtualbox/vmware fusion/ parallels for mac
如何确保多线程程序在 multicore server 上 用所有的 core请问什么样的机器跑matlab+optimization快?
MATLAB用不满CPU为什么这个显示器这么贵啊
现在搞计算用的budget的cpu是啥?Mac电脑用windowns目前的方案 (转载)
AMD确实很差macbook上面用什么虚拟机软件?
有人用过USB Parallel Printer Adapter?用MAC怎么使用那些只有windows版本的软件啊?
请教一下电脑配个VGA->HDMI到底有用么?mbp retina 装windows电池能坚持多久?另外散热性么? (转载)
parallel ATA-7 的内置硬盘可否用sata的移动硬盘盒?mac 的 file sharing 问题
相关话题的讨论汇总
话题: openmp话题: thread话题: pthread话题: mpi
进入Hardware版参与讨论
1 (共1页)
l******9
发帖数: 579
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
x*z
发帖数: 1010
2
这个啊,可能你全用MPI performance还强点。

【在 l******9 的大作中提到】
: 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).

l******9
发帖数: 579
3
Why ?
MPI has process communication overhead between processes, which
do not share the same memory space.
But, multi-threading does not have this kind of problem.

【在 x*z 的大作中提到】
: 这个啊,可能你全用MPI performance还强点。
x*z
发帖数: 1010
4
Most MPI libraries have shared memory implemented, which actually has
less overhead than OpenMP or threading.

【在 l******9 的大作中提到】
: Why ?
: MPI has process communication overhead between processes, which
: do not share the same memory space.
: But, multi-threading does not have this kind of problem.

l******9
发帖数: 579
5
In MPI libraries with shared memory implemented, we have inter-process
communication or inter-thread communication ?
If it is former, why process has less overhead than thread ?
If it is later, why it has less overhead than openMP and threading?
Does MPI has some built-in advantages over them ?
Any help is really appreciated.
Thanks

【在 x*z 的大作中提到】
: Most MPI libraries have shared memory implemented, which actually has
: less overhead than OpenMP or threading.

1 (共1页)
进入Hardware版参与讨论
相关主题
mac 的 file sharing 问题AMD确实很差
小结一下 mac mini as server有人用过USB Parallel Printer Adapter?
用GPU加快计算速度是自动的吗?请教一下电脑配个VGA->HDMI到底有用么?
说起mac,搞了台三年前的MBPR 15parallel ATA-7 的内置硬盘可否用sata的移动硬盘盒?
目前不觉得双核以上很有必要谁给比较一下virtualbox/vmware fusion/ parallels for mac
如何确保多线程程序在 multicore server 上 用所有的 core请问什么样的机器跑matlab+optimization快?
MATLAB用不满CPU为什么这个显示器这么贵啊
现在搞计算用的budget的cpu是啥?Mac电脑用windowns目前的方案 (转载)
相关话题的讨论汇总
话题: openmp话题: thread话题: pthread话题: mpi