利福喷丁和利福平有什么区别| 肛周水泡是什么病| 玉米须有什么作用| 鬼压床是什么| 芒果不能跟什么一起吃| 甚好是什么意思| 疣挂什么科| 小孩肠胃感冒吃什么药比较好| c2驾照可以开什么车| 中国文联是什么级别| 去脚气用什么药最好| 后腰出汗多是什么原因| 什么羊肉最好吃| 黑海为什么叫黑海| 1936属什么生肖| 人为什么会长痔疮| 迁坟需要准备什么东西| 小龙虾吃什么食物| 处女座的幸运数字是什么| 小腿酸胀吃什么药| 怀孕小肚子疼是什么原因| 指甲脱层是什么原因| 了不起是什么意思| 菲妮迪女装是什么档次| 化妆棉是干什么用的| 嘴唇发干是什么原因| 炭疽病用什么药最好| 葡萄是什么茎| 晚上多梦是什么原因| 水克什么| 有容乃大什么意思| 撸管是什么| 左侧卵巢内囊性回声是什么意思| 上火吃什么消炎药| 杭州五行属什么| 吃什么可以瘦肚子| 下焦湿热是什么意思| doms是什么意思| zorro是什么牌子的打火机| 1109是什么星座| 母亲节送给妈妈什么礼物| 什么叫积阴德| 弹性工作是什么意思| 老豆腐和嫩豆腐有什么区别| 北海有什么好玩的| 头发分叉是什么原因| 惆怅是什么意思| gh发什么音| 子宫腺肌症吃什么药最有效| 逍遥丸的功效和作用是什么| 正财代表什么| 骨肉瘤是什么病| 雨五行属什么| 鬼怕什么| 十里八乡什么意思| 什么是垃圾食品| 负担是什么意思| 下面痒用什么药效果好| 葛根的作用是什么| siri什么意思| 黄芪长什么样子的图片| 出身是什么意思| ct和拍片有什么区别| 身份证上的数字是什么字体| 鲁迅原名什么| 什么是低血压| 皮肤变黄是什么原因| 红眼病有什么症状| 吃什么对肾好| 阑尾炎不能吃什么食物| 半夜脚抽筋是什么原因| 草长莺飞是什么生肖| 为什么运动完会恶心头晕想吐| 韩红是什么军衔| 白羊座的幸运色是什么颜色| 梦见孩子哭是什么意思| 耳鸣去医院挂什么科| 星星为什么会眨眼睛| 调剂生是什么意思| 2024什么年属什么年| 肝胆胰脾彩超查什么病| 灭吐灵又叫什么名字| 河南有什么大学| 济南有什么特产| 2039年是什么年| 中秋节的习俗是什么| 云南有什么特产| 甲状腺球蛋白抗体高是什么意思| 什么叫变态| 格拉苏蒂手表什么档次| 浅表性胃炎吃什么药好使| 吕布的马叫什么名字| 虎头虎脑是什么生肖| 胆囊壁不光滑是什么意思| 病理会诊是什么意思| 令堂是什么意思| 7月份有什么节日吗| 左手小手指麻木是什么原因引起的| 镁高有什么症状和危害| 然五行属性是什么| 结节是什么东西| 烂好人什么意思| 为什么黑色吸热| 挛缩是什么意思| 黔驴技穷什么意思| 晞字五行属什么| 39属什么生肖| 一什么正什么| 灯笼裤配什么鞋子好看| 乡试第一名叫什么| 开字五行属什么| 泌乳素高有什么症状表现| 风湿性心脏病吃什么药| 婴儿第一次理发有什么讲究吗| 芒果和什么不能一起吃| 近义词是什么意思| NT是检查什么| 总胆固醇是什么| 开会是什么意思| 美帝是什么意思| 词讼是什么意思| 打佛七什么意思| 戊午五行属什么| 阴道炎用什么药好| 流鼻涕吃什么药最管用| 妊娠线什么时候长| 七月十日是什么日子| 做脑部ct挂什么科| 怀孕什么时候打胎最合适| 农历12月是什么星座| 胃窦炎吃什么药最好| 生肖猪和什么生肖相冲| 安阳车牌号是豫什么| 马为什么站着睡觉| 肠易激综合征吃什么药好| 什么的积雪| 兼性厌氧是什么意思| 女人性高潮是什么感觉| 造化弄人是什么意思| 生物冰袋里面是什么| 结婚六十年是什么婚| 查黄体酮做什么检查| 舌头发白吃什么药好| 金刚经讲的是什么| 肾精亏虚吃什么药最好| 早上为什么不能洗澡| 孕妇吃什么蔬菜| 睡不着什么原因| 舌根苔白厚腻是什么原因| 孝敬是什么意思| 钙化影是什么意思| 胃不好吃什么菜| 活塞是什么意思| 宝宝反复发烧是什么原因| 33年属什么生肖| 醋有什么功效和作用| 江苏有什么烟| 相什么无什么| 右手小拇指发麻是什么原因| 今天冬至吃什么| 衣的部首是什么| 小猫不能吃什么| macd什么意思| guou是什么牌子的手表| 鲑鱼是什么鱼| 子不孝父之过下一句是什么| 枸杞有什么用| 1月份是什么星座的人| 惜字如金是什么意思| 芍药什么时候开花| 老是放臭屁是什么原因| 虎与什么生肖相合| 塞药塞到什么位置| 避孕套什么牌子好| q12h医学上是什么意思| 液体套是什么| mido手表什么档次| 东方明珠什么时候亮灯| 舌苔白厚吃什么药见效快| 天空像什么的比喻句| 肾结石可以吃什么食物| 耳鸣是什么病的前兆| 白天不咳嗽晚上咳嗽吃什么药| 投行是做什么的| 淡奶油是什么| 烤冷面是什么材料做的| 7月30号什么星座| 阴灵是什么意思| 肾功能不好有什么症状| 脚面疼痛什么原因| igm抗体阳性是什么意思| 什么是孢子粉| 朱是什么颜色| 除体内湿热最好的中成药是什么| 寿命是什么意思| 丙肝是什么病严重吗| 肺部阴影意味着什么| 青少年嗜睡是什么原因| 血液凝固快是什么原因| 小鸭子吃什么食物| h什么意思| 江苏有什么特产| 在眼皮老跳是什么征兆| 清洁度2度是什么意思| 草酸是什么| 喝红茶有什么好处和坏处| 室性期前收缩是什么病| mA是什么| 智五行属性是什么| 治疗心率过快用什么药效果好| 什么是双飞| 骨结核是什么病| 110斤穿什么码衣服| 属蛇的是什么星座| 流产会出现什么症状| 依稀是什么意思| 经常手淫会有什么危害| 神经痛吃什么药效果好| 儿童缺铁吃什么补得快| 为什么会感冒| 喝豆腐脑有什么好处和坏处| 什么是危险期| ana医学上是什么意思| 欲拒还迎什么意思| 嗓子疼喝什么| 丙子日是什么意思| ppm是什么意思| 3月什么星座| 眼睛突然红了是什么原因| 十月二十九是什么星座| 孕妇胃痛可以吃什么药| 血管炎不能吃什么食物| 克隆是什么意思| 炒菜是什么意思| 榴莲为什么会苦| 青鱼又叫什么鱼| tvb什么意思| 红烧肉可以放什么配菜| 停车坐爱枫林晚中的坐是什么意思| 饮食不规律会导致什么| 缺少维生素有什么症状| 日单是什么意思| 身上起痘痘是什么原因| 备胎是什么意思| 耀字五行属什么| 胃寒胃凉吃什么药| 肌层回声欠均匀是什么意思| 喝咖啡对身体有什么好处| 乌鸦飞进家里什么征兆| 肛裂是什么症状| 病毒性结膜炎用什么眼药水| 嗔恨是什么意思| 茜色是什么颜色| 纤维瘤是什么病| 经常嗓子哑是什么原因| 绿色通道是什么意思| 红顶商人是什么意思| 鼻炎不能吃什么食物| gr什么意思| 穿云箭是什么意思| 大便溏稀吃什么药| 蒲公英和什么一起泡水喝最好| 痛风该吃什么药好得快| 对策是什么意思| 百度Jump to content

邦列威康纳米银抑菌凝胶

From Wikipedia, the free encyclopedia
PEM Model
百度 三名女子非要把陌生男子往车里拖19号早上6点26分,几个人站在路边,拦下了一辆出租车,一名白衣女子开了车门。

In computer science, a parallel external memory (PEM) model is a cache-aware, external-memory abstract machine.[1] It is the parallel-computing analogy to the single-processor external memory (EM) model. In a similar way, it is the cache-aware analogy to the parallel random-access machine (PRAM). The PEM model consists of a number of processors, together with their respective private caches and a shared main memory.

Model

[edit]

Definition

[edit]

The PEM model[1] is a combination of the EM model and the PRAM model. The PEM model is a computation model which consists of processors and a two-level memory hierarchy. This memory hierarchy consists of a large external memory (main memory) of size and small internal memories (caches). The processors share the main memory. Each cache is exclusive to a single processor. A processor can't access another’s cache. The caches have a size which is partitioned in blocks of size . The processors can only perform operations on data which are in their cache. The data can be transferred between the main memory and the cache in blocks of size .

I/O complexity

[edit]

The complexity measure of the PEM model is the I/O complexity,[1] which determines the number of parallel blocks transfers between the main memory and the cache. During a parallel block transfer each processor can transfer a block. So if processors load parallelly a data block of size form the main memory into their caches, it is considered as an I/O complexity of not . A program in the PEM model should minimize the data transfer between main memory and caches and operate as much as possible on the data in the caches.

Read/write conflicts

[edit]

In the PEM model, there is no direct communication network between the P processors. The processors have to communicate indirectly over the main memory. If multiple processors try to access the same block in main memory concurrently read/write conflicts[1] occur. Like in the PRAM model, three different variations of this problem are considered:

  • Concurrent Read Concurrent Write (CRCW): The same block in main memory can be read and written by multiple processors concurrently.
  • Concurrent Read Exclusive Write (CREW): The same block in main memory can be read by multiple processors concurrently. Only one processor can write to a block at a time.
  • Exclusive Read Exclusive Write (EREW): The same block in main memory cannot be read or written by multiple processors concurrently. Only one processor can access a block at a time.

The following two algorithms[1] solve the CREW and EREW problem if processors write to the same block simultaneously. A first approach is to serialize the write operations. Only one processor after the other writes to the block. This results in a total of parallel block transfers. A second approach needs parallel block transfers and an additional block for each processor. The main idea is to schedule the write operations in a binary tree fashion and gradually combine the data into a single block. In the first round processors combine their blocks into blocks. Then processors combine the blocks into . This procedure is continued until all the data is combined in one block.

Comparison to other models

[edit]
Model Multi-core Cache-aware
Random-access machine (RAM) No No
Parallel random-access machine (PRAM) Yes No
External memory (EM) No Yes
Parallel external memory (PEM) Yes Yes

Examples

[edit]

Multiway partitioning

[edit]

Let be a vector of d-1 pivots sorted in increasing order. Let A be an unordered set of N elements. A d-way partition[1] of A is a set , where and for . is called the i-th bucket. The number of elements in is greater than and smaller than . In the following algorithm[1] the input is partitioned into N/P-sized contiguous segments in main memory. The processor i primarily works on the segment . The multiway partitioning algorithm (PEM_DIST_SORT[1]) uses a PEM prefix sum algorithm[1] to calculate the prefix sum with the optimal I/O complexity. This algorithm simulates an optimal PRAM prefix sum algorithm.

// Compute parallelly a d-way partition on the data segments 
for each processor i in parallel do
    Read the vector of pivots M into the cache.
    Partition  into d buckets and let vector  be the number of items in each bucket.
end for

Run PEM prefix sum on the set of vectors  simultaneously.

// Use the prefix sum vector to compute the final partition
for each processor i in parallel do
    Write elements  into memory locations offset appropriately by  and .
end for

Using the prefix sums stored in  the last processor P calculates the vector B of bucket sizes and returns it.

If the vector of pivots M and the input set A are located in contiguous memory, then the d-way partitioning problem can be solved in the PEM model with I/O complexity. The content of the final buckets have to be located in contiguous memory.

Selection

[edit]

The selection problem is about finding the k-th smallest item in an unordered list A of size N. The following code[1] makes use of PRAMSORT which is a PRAM optimal sorting algorithm which runs in , and SELECT, which is a cache optimal single-processor selection algorithm.

if  then 
    
    return 
end if 

//Find median of each 
for each processor i in parallel do 
    
end for 

// Sort medians


// Partition around median of medians


if  then 
    return 
else 
    return 
end if

Under the assumption that the input is stored in contiguous memory, PEMSELECT has an I/O complexity of:

Distribution sort

[edit]

Distribution sort partitions an input list A of size N into d disjoint buckets of similar size. Every bucket is then sorted recursively and the results are combined into a fully sorted list.

If the task is delegated to a cache-optimal single-processor sorting algorithm.

Otherwise the following algorithm[1] is used:

// Sample  elements from A
for each processor i in parallel do
    if  then
        
        Load  in M-sized pages and sort pages individually
    else
        
        Load and sort  as single page
    end if
    Pick every 'th element from each sorted memory page into contiguous vector  of samples
end for 

in parallel do
    Combine vectors  into a single contiguous vector 
    Make  copies of : 
end do

// Find  pivots 
for  to  in parallel do
    
end for

Pack pivots in contiguous array 

// Partition Aaround pivots into buckets 


// Recursively sort buckets
for  to  in parallel do
    recursively call  on bucket jof size 
    using  processors responsible for elements in bucket j
end for

The I/O complexity of PEMDISTSORT is:

where

If the number of processors is chosen that and the I/O complexity is then:

Other PEM algorithms

[edit]
PEM Algorithm I/O complexity Constraints
Mergesort[1]
List ranking[2]
Euler tour[2]
Expression tree evaluation[2]
Finding a MST[2]

Where is the time it takes to sort N items with P processors in the PEM model.

See also

[edit]

References

[edit]
  1. ^ a b c d e f g h i j k l Arge, Lars; Goodrich, Michael T.; Nelson, Michael; Sitchinava, Nodari (2008). "Fundamental parallel algorithms for private-cache chip multiprocessors". Proceedings of the twentieth annual symposium on Parallelism in algorithms and architectures. New York, New York, USA: ACM Press. pp. 197–206. doi:10.1145/1378533.1378573. ISBN 9781595939739. S2CID 11067041.
  2. ^ a b c d Arge, Lars; Goodrich, Michael T.; Sitchinava, Nodari (2010). "Parallel external memory graph algorithms". 2010 IEEE International Symposium on Parallel & Distributed Processing (IPDPS). IEEE. pp. 1–11. doi:10.1109/ipdps.2010.5470440. ISBN 9781424464425. S2CID 587572.
may是什么意思 来大姨妈喝红糖水有什么作用 创伤性关节炎有什么症状 拔智齿后吃什么消炎药 什么油适合炒菜
思春是什么意思啊 肾宝片是什么 118号是什么星座 口腔医学技术是什么 前列腺炎是什么症状
女人脚肿是什么原因 媛是什么意思 牛骨煲什么汤对儿童好 心衰竭是什么病 毛尖茶属于什么茶
时迁的绰号是什么 hcv是什么意思 全麻手术后为什么不能睡觉 面肌痉挛挂什么科 灰指甲挂什么科
为什么来月经会有血块hcv9jop0ns7r.cn 脑出血有什么后遗症hcv8jop1ns2r.cn 一点点奶茶什么最好喝hcv9jop5ns4r.cn 颅压高有什么症状hcv7jop4ns7r.cn 什么叫割礼hcv8jop7ns3r.cn
桔子树用什么肥料最好hcv7jop6ns0r.cn 亚麻籽油是什么植物的籽榨出来的dayuxmw.com 拔罐出水泡是什么原因hcv9jop0ns4r.cn 吃什么对肺好hcv8jop7ns1r.cn 灰指甲有什么特效药可以治好hcv7jop7ns4r.cn
发泄是什么意思hcv8jop2ns3r.cn 满族不吃什么肉hcv9jop3ns0r.cn 3月22日是什么星座hcv8jop6ns3r.cn 苗侨伟为什么叫三哥hcv8jop7ns5r.cn mama是什么意思hcv9jop6ns8r.cn
肛门下坠吃什么药hcv8jop4ns8r.cn 皮肤黑吃什么会变白hcv9jop3ns9r.cn 打嗝是什么毛病hcv7jop6ns4r.cn 谌读什么hcv8jop9ns6r.cn 黑枸杞泡水后什么颜色hcv7jop7ns1r.cn
百度