r*o
2 楼
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: coolbb (kubaobao), 信区: SanFrancisco
标 题: 绝对笑喷!暴强盒饭大叔狂喷“蛋蛋”让张艺谋崩溃了!(zz)
发信站: BBS 未名空间站 (Wed Mar 17 14:06:21 2010, 美东)
发信人: coolbb (kubaobao), 信区: SanFrancisco
标 题: 绝对笑喷!暴强盒饭大叔狂喷“蛋蛋”让张艺谋崩溃了!(zz)
发信站: BBS 未名空间站 (Wed Mar 17 14:06:21 2010, 美东)
l*9
3 楼
如何确保多线程程序在 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
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
5 楼
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.
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.
s*a
6 楼
去影院看多半不适合这么小的孩子。现在很多电影虽然是卡通,但是还是按照成年人的
习惯来制作,尤其是语速,图像转换等等,说是给孩子看的,其实是给大孩子或成人看
的。比如Toy Story 3,明显的卡通版越狱。
其实4岁的孩子只能看懂电影里的一些东西,而且还可能要看好几遍。所以,最好就是
买个碟,在家反复看,这样,他们还有时间问些问题,有助理解。孩子对电影不像成人
,看一遍就完了,他们可不在乎多看几遍,喜欢的就是那些人物。
习惯来制作,尤其是语速,图像转换等等,说是给孩子看的,其实是给大孩子或成人看
的。比如Toy Story 3,明显的卡通版越狱。
其实4岁的孩子只能看懂电影里的一些东西,而且还可能要看好几遍。所以,最好就是
买个碟,在家反复看,这样,他们还有时间问些问题,有助理解。孩子对电影不像成人
,看一遍就完了,他们可不在乎多看几遍,喜欢的就是那些人物。
l*9
7 楼
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.
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.
c*e
8 楼
啊,我昨天给我儿子放葫芦兄弟,当他看到葫芦娃和老爷爷被抓起来了,就大叫,看到
老爷爷逃跑成功,就鼓掌。我还以为他看懂了呢。我儿子21个月
老爷爷逃跑成功,就鼓掌。我还以为他看懂了呢。我儿子21个月
O*d
9 楼
OpenMP
l*t
10 楼
or you may try MPICH2
相关阅读
跳了T430sX200s新装OCZ的agility 3 ssd Window 7 bit转个贴: ATV3不越狱,不要airplay,直接观看qiyi在线 (转载)Patriot Box Office Media Player看国内直播效果怎样?Google Chrome 不能支持1440分辨率?请推荐带HDMI和音箱的23寸显示器请比较两款显示器Asus VW246H vs. ViewSonic VX2450wm有神油、神座,想带4块3.5硬盘,还需要什么设备?我的Synology 的5个灯都一直亮着时怎么回事?需要个1.8寸的SSD请推荐一个玩PC game的HDTV 1080p买了 brother HL-2280DWLinux的系统盘好像出现坏道了台式机+轻便笔记本 vs 一台比较强的笔记本?ASUS Eee PC大概挂了samsuang 830 ssdVIZIO出的那个电脑,跑分看还可以啊CineRAID CR-H252 Two 3.5in Drive Bays USB 3.0 2 Bay RAID/JBOD Enclosure $29.99前几天买的OCZ vertex plus r2的SSD在t61上的benchmark上市第一天就开始打折?