由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Hardware版 - 如何确保多线程程序在 multicore server 上 用所有的 core
相关主题
目前不觉得双核以上很有必要i7-820很让人失望。
openMP or boost::thread (pthread) for multithreading ?Matlab开多线程真爽啊
2代i7-2600[Radeon6670] VS 3代i5-3570[Radeon6870] ?AMD 6 CORE 1055T 超频推荐
MATLAB,Core i5-660好还是Core i5-750好?老机器+这个显卡能否做媒体机
Dual X5650不错啊史上最强显卡 Fury X2
i7-4930K vs i7-4820K外行请教:这两个CPU哪个更好一些?
Intel XEON 6 CORE X5650 SLBV3 2.66GHz/12M CACHE/6.40 GT/s # 2372A $80.00AMD确实很差
xeon x3430 和 e5530啥区别?数值计算的时候怎么提高CPU的使用率?
相关话题的讨论汇总
话题: cores话题: cpu话题: multicore话题: server话题: each
进入Hardware版参与讨论
1 (共1页)
l******9
发帖数: 579
1
如何确保多线程程序在 multicore server 上确实使用了 所有的 core
to do computing in parallel physically (not logically)
I have a multicore server, which has 24 CPU, each CPU has 6 cores.
It is Intel xzeon X5650 2.67GHz
cpu cores : 6 (support 6 threads)
cpu MHz : 1596.000
totally, I have 24 * 6 = 144 cores.
I designed a multithreaded C++ program with boost/thread.
How to make sure that my program is run by all 144 cores ?
Any help is really appreciated.
thanks
t****t
发帖数: 6806
2
you may set processor affinity, which makes each thread a preferred core.
however it is not guaranteed. i don't think you can guarantee it anyway.
on linux the command is taskset.

【在 l******9 的大作中提到】
: 如何确保多线程程序在 multicore server 上确实使用了 所有的 core
: to do computing in parallel physically (not logically)
: I have a multicore server, which has 24 CPU, each CPU has 6 cores.
: It is Intel xzeon X5650 2.67GHz
: cpu cores : 6 (support 6 threads)
: cpu MHz : 1596.000
: totally, I have 24 * 6 = 144 cores.
: I designed a multithreaded C++ program with boost/thread.
: How to make sure that my program is run by all 144 cores ?
: Any help is really appreciated.

l******9
发帖数: 579
3
thanks for your reply.
My program needs to run many (about 10,000+) computing tasks.
Each task's run time is very very short (< 0.1 second or even less).
At each iteration, all these tasks are run in parallel. Some of them
need to exchange some data (it is very small) and then go on.
I want to keep all 144 cores as busy as possible so that my program
can be done as fast as possible.
So, I want to associate each task with a distinct thread and schedule
threads as many as possible. Also, try yo make the workload balance
among these cores.
How can I do that from the point of programming ?
Any help is really appreciated.
thanks

【在 t****t 的大作中提到】
: you may set processor affinity, which makes each thread a preferred core.
: however it is not guaranteed. i don't think you can guarantee it anyway.
: on linux the command is taskset.

O*******d
发帖数: 20343
4
OpenMP
l******t
发帖数: 12659
5
or you may try MPICH2
1 (共1页)
进入Hardware版参与讨论
相关主题
数值计算的时候怎么提高CPU的使用率?Dual X5650不错啊
我的机器提高计算速度的的潜力有多大?i7-4930K vs i7-4820K
ZZAMD将推出新处理器,AM3继续服役Intel XEON 6 CORE X5650 SLBV3 2.66GHz/12M CACHE/6.40 GT/s # 2372A $80.00
i-3 还是 P Dual Core?xeon x3430 和 e5530啥区别?
目前不觉得双核以上很有必要i7-820很让人失望。
openMP or boost::thread (pthread) for multithreading ?Matlab开多线程真爽啊
2代i7-2600[Radeon6670] VS 3代i5-3570[Radeon6870] ?AMD 6 CORE 1055T 超频推荐
MATLAB,Core i5-660好还是Core i5-750好?老机器+这个显卡能否做媒体机
相关话题的讨论汇总
话题: cores话题: cpu话题: multicore话题: server话题: each