束手无策是什么意思| 什么人容易长智齿| 不以为意什么意思| 吃什么提高免疫力最好最快| 失眠是什么症状| i是什么| 结石是什么原因造成的| 豆绿色是什么颜色| 昭和是什么意思| 白头发多吃什么食物能变黑| 吃什么东西能流产| 聋哑人为什么不会说话| 低血糖看什么科室| 什么东西不能带上飞机| 分泌物多是什么原因| 媱五行属什么| 给小孩买什么保险好| 加味逍遥丸和逍遥丸有什么区别| 容易脸红的人是什么原因| 建档立卡户是什么意思| 晚字五行属什么| 痔疮吃什么药效果好| 腰果不能和什么一起吃| 突然的反义词是什么| 芙蓉是什么意思| 骨密度是查什么的| 弯弯的月亮像什么| 阴道菌群失调用什么药| 二月底是什么星座| 鼻子冒热气是什么原因| cep是什么意思| 化工厂是干什么的| 阴灵是什么意思| 71年出生属什么生肖| 血脂高是什么原因| 右眼一直跳什么情况| 什么洗面奶祛痘| 6月15日什么星座| 杏有什么作用和功效| 妨父母痣是什么意思| 拉肚子最好吃什么食物| 脸上长癣是什么原因造成的| 乙肝五项第二项阳性是什么意思| 三星堆为什么叫三星堆| 副市长什么级别| 妄想什么意思| 什么是党的性质和宗旨的体现| 宛字五行属什么| 1950属什么生肖| 什么竹笋不能吃| 月经一直不干净是什么原因引起的| 利口酒是什么酒| 前列腺液是什么样子| 女生下边长痘痘是什么病| 掉头发严重是什么原因| 葡萄糖高是什么原因| 金牛座有什么特点| 什么的眉毛| 碳水化合物是什么东西| 勿忘是什么意思| 脸上不停的长痘痘是什么原因| 小仙女是什么意思| 备孕为什么要吃叶酸| 血糖什么时候最高| 什么是尘肺病| 什么兽| 梦见盖新房子是什么意思| 小弟一阵阵的疼什么原因| kim是什么意思| 还记得年少时的梦吗是什么歌| 浑身无力是什么原因| 闭关是什么意思| 菠萝蜜什么季节成熟| 嘴苦是什么原因引起的| 跖疣是什么原因引起的| 面首什么意思| 李逵的绰号是什么| 4.25是什么星座| 属狗和什么属相最配| 灵芝搭配什么煲汤最好| 法西斯战争是什么意思| hcg值高说明什么| gucci是什么意思| 啤酒加鸡蛋有什么功效| 属牛的跟什么属相最配| 连城诀为什么不火| 看望病人送什么花| 痛风吃什么中药最有效| 男性婚检都检查什么项目| 腋下看什么科| 喝酒有什么好处| 什么水果通便| 神话是什么意思| ip地址是什么意思| 去港澳旅游需要什么证件| 承五行属什么| 活性印染是什么意思| 头发发黄是什么原因造成的| 尿胆原阴性是什么意思| winner什么意思| 86年是属什么的| 振字五行属什么| 月经不停吃什么药| 米索前列醇片是什么药| 上官是什么意思| 表彰是什么意思| 什么的神色| 红袖什么意思| 蝾螈是什么动物| 什么地走| 下午五六点是什么时辰| 萎缩性胃炎什么症状| 沉淀是什么意思| 世界第一长河是什么河| 预防医学是什么| 氯雷他定什么时候吃| copd是什么意思| 2024什么年| 水木年华是什么意思| 同房后为什么会出血| 阿昔洛韦乳膏治什么| 梦见考试是什么预兆| 儿童上火吃什么药最好| 过期不候是什么意思| 包干是什么意思| 狗狗身上有皮肤病用什么药| 无字五行属什么| 眼睛长黄斑是什么原因| 人参归脾丸和归脾丸有什么区别| dm医学上是什么意思| 扎心是什么意思| 西洋参跟花旗参有什么区别| 痛风挂什么科就医| esim卡是什么| 蝉喜欢吃什么| 独生子女证办理需要什么材料| 桃胶是什么东西| 什么是增强ct| 藕什么季节成熟| 手机买什么好| 丁火是什么意思| 梦见家里着火了是什么征兆| 是什么时候| 香松是什么| 胡萝卜不能和什么一起吃| lg什么意思| 上午十点多是什么时辰| 什么是音调| 碧根果和核桃有什么区别| 小虾吃什么食物| 两眼中间的位置叫什么| 吃什么降血糖最快| 趾高气昂是什么意思| 头疼嗓子疼吃什么药| 房速与房颤有什么区别| 生蚝是什么东西| 老年痴呆症是什么原因引起的| 美尼尔综合症吃什么药| 不想吃油腻的东西是什么原因| swag什么意思| 上门女婿什么意思| 什么时候闰五月| 新生儿湿疹用什么药膏| 心心相什么| 疱疹性咽峡炎用什么药| 肝早期硬化身体有什么症状| 眉毛长长是什么原因| 为什么心里总想一个人| 88年出生属什么生肖| xl代表什么尺码| 指甲黄是什么原因| 吃什么能增强免疫力和抵抗力| 5月31日是什么星座| 剖腹产可以吃什么水果| 老想放屁是什么原因| 韩国是什么民族| 蜂蜜不能和什么一起吃| 糖尿病吃什么主食| 孕妇为什么不能吃韭菜| 肌苷是什么| 穷兵黩武是什么意思| 5月30日是什么星座| 1103是什么星座| 什么叫多重耐药菌| 羊下面是什么生肖| 低盐饮食有利于预防什么疾病| 广州的市花是什么| 什么叫室性早搏| 胎盘内血池是什么| 三十年婚姻是什么婚| 农村一般喂金毛吃什么| 什么星空| dears是什么意思| 涵字五行属什么| 女人适合喝什么茶最好| 大便有粘液是什么原因| 6月11号是什么星座| 呵呵什么意思| x射线是什么| 减肥最快的方法是什么| 脂肪粒是什么| 舌头痛吃什么药| 去痘印用什么药膏| 引产和流产有什么区别| 梅毒吃什么药最好| 白术适合什么地方种植| 工商联是什么单位| gm是什么单位| 下身有点刺痛什么原因| 吃什么降血脂最快| 七月初七是什么节日| 卒中中心是什么意思| 息斯敏又叫什么药名| 广西产什么水果| 喉咙痛不能吃什么东西| 1213是什么日子| 舍曲林是什么药| 内膜薄吃什么增长最快| 丈夫的弟弟叫什么| 脉压差大是什么原因| 辰五行属什么| 拮抗药物是什么药| 闲聊是什么意思| 长得标致是什么意思| 狐假虎威什么意思| 什么是八爪鱼| 痛经吃什么水果能缓解疼痛| 梦见西瓜是什么意思| 病毒性感冒吃什么药效果好| 一个口一个巴念什么字| 射手男喜欢什么样的女生| 山青读什么| 治骨质疏松打什么针| 什么牌子的电动车好| 偏头疼吃什么药| 凤仙花什么时候开花| 斛什么意思| 圆脸适合什么眼镜| 苏轼是什么派词人| 戒断反应什么意思| 西洋参可以和什么一起泡水喝| 琼玖是什么意思| 喉咙痛吃什么水果好得最快| 贬值是什么意思| 九九年属什么| 孕吐什么时候出现| 膨鱼鳃用什么搭配煲汤| 胃息肉是什么原因引起的| 逼长什么样| 一什么面包| mtt什么意思| 噤若寒蝉是什么意思| 什么茶降糖效果最好| 529是什么意思| 孩子长个子吃什么有利于长高| 强心剂是什么意思| 三头六臂是什么生肖| 掉牙齿是什么征兆| 虚心接受是什么意思| 吃什么不会胖又减肥| 钮祜禄氏是什么旗| 什么是卵巢囊肿| 86年属虎是什么命| 鼠标dpi是什么| 百度Jump to content

煤炭“十二五”:基本任务仍是保能源供给(图)

From Wikipedia, the free encyclopedia
百度 正因如此,居士佛教、新学者、真信仰、佛教救国论、佛教的群治观念、佛教是智信而非迷信、佛家学说中如平等、无常、无我等观念的倡导,能够渊源于杨仁山,能够出自于太虚的佛教革命思想,远非当下佛教界局限于心性清净、茶禅一味所能想象的事情。

In computer science, a parallel random-access machine (parallel RAM or PRAM) is a shared-memory abstract machine. As its name indicates, the PRAM is intended as the parallel-computing analogy to the random-access machine (RAM) (not to be confused with random-access memory).[1] In the same way that the RAM is used by sequential-algorithm designers to model algorithmic performance (such as time complexity), the PRAM is used by parallel-algorithm designers to model parallel algorithmic performance (such as time complexity, where the number of processors assumed is typically also stated). Similar to the way in which the RAM model neglects practical issues, such as access time to cache memory versus main memory, the PRAM model neglects such issues as synchronization and communication, but provides any (problem-size-dependent) number of processors. Algorithm cost, for instance, is estimated using two parameters O(time) and O(time × processor_number).

Read/write conflicts

[edit]

Read/write conflicts, commonly termed interlocking in accessing the same shared memory location simultaneously are resolved by one of the following strategies:

  1. Exclusive read exclusive write (EREW)—every memory cell can be read or written to by only one processor at a time
  2. Concurrent read exclusive write (CREW)—multiple processors can read a memory cell but only one can write at a time
  3. Exclusive read concurrent write (ERCW)—mostly never considered because it mostly doesn't add more power[2]
  4. Concurrent read concurrent write (CRCW)—multiple processors can read and write. A CRCW PRAM is sometimes called a concurrent random-access machine.[3]

Here, E and C stand for 'exclusive' and 'concurrent' respectively. The read causes no discrepancies while the concurrent write is further defined as:

Common—all processors write the same value; otherwise is illegal
Arbitrary—only one arbitrary attempt is successful, others retire
Priority—processor rank indicates who gets to write
Another kind of array reduction operation like SUM, Logical AND or MAX.

Several simplifying assumptions are made while considering the development of algorithms for PRAM. They are:

  1. There is no limit on the number of processors in the machine.
  2. Any memory location is uniformly accessible from any processor.
  3. There is no limit on the amount of shared memory in the system.
  4. Resource contention is absent.
  5. The programs written on these machines are, in general, of type SIMD.

These kinds of algorithms are useful for understanding the exploitation of concurrency, dividing the original problem into similar sub-problems and solving them in parallel. The introduction of the formal 'P-RAM' model in Wyllie's 1979 thesis[4] had the aim of quantifying analysis of parallel algorithms in a way analogous to the Turing Machine. The analysis focused on a MIMD model of programming using a CREW model but showed that many variants, including implementing a CRCW model and implementing on an SIMD machine, were possible with only constant overhead.

Implementation

[edit]

PRAM algorithms cannot be parallelized with the combination of CPU and dynamic random-access memory (DRAM) because DRAM does not allow concurrent access to a single bank (not even different addresses in the bank); but they can be implemented in hardware or read/write to the internal static random-access memory (SRAM) blocks of a field-programmable gate array (FPGA), it can be done using a CRCW algorithm.

However, the test for practical relevance of PRAM (or RAM) algorithms depends on whether their cost model provides an effective abstraction of some computer; the structure of that computer can be quite different than the abstract model. The knowledge of the layers of software and hardware that need to be inserted is beyond the scope of this article. But, articles such as Vishkin (2011) demonstrate how a PRAM-like abstraction can be supported by the explicit multi-threading (XMT) paradigm and articles such as Caragea & Vishkin (2011) demonstrate that a PRAM algorithm for the maximum flow problem can provide strong speedups relative to the fastest serial program for the same problem. The article Ghanim, Vishkin & Barua (2018) demonstrated that PRAM algorithms as-is can achieve competitive performance even without any additional effort to cast them as multi-threaded programs on XMT.

Example code

[edit]

This is an example of SystemVerilog code which finds the maximum value in the array in only 2 clock cycles. It compares all the combinations of the elements in the array at the first clock, and merges the result at the second clock. It uses CRCW memory; m[i] <= 1 and maxNo <= data[i] are written concurrently. The concurrency causes no conflicts because the algorithm guarantees that the same value is written to the same memory. This code can be run on FPGA hardware.

module FindMax #(parameter int len = 8)
                (input bit clock, resetN, input bit[7:0] data[len], output bit[7:0] maxNo);
    typedef enum bit[1:0] {COMPARE, MERGE, DONE} State;
                    
    State state;
    bit m[len];
    int i, j;
    
    always_ff @(posedge clock, negedge resetN) begin
        if (!resetN) begin
            for (i = 0; i < len; i++) m[i] <= 0;
            state <= COMPARE;
        end else begin
            case (state)
                COMPARE: begin
                    for (i = 0; i < len; i++) begin
                        for (j = 0; j < len; j++) begin
                            if (data[i] < data[j]) m[i] <= 1;
                        end
                    end
                    state <= MERGE;
                end
                
                MERGE: begin
                    for (i = 0; i < len; i++) begin
                        if (m[i] == 0) maxNo <= data[i];
                    end
                    state <= DONE;
                end
            endcase
        end
    end
endmodule

See also

[edit]

References

[edit]
  1. ^ Fortune, Steven; Wyllie, James (2025-08-06). "Parallelism in random access machines". Proceedings of the tenth annual ACM symposium on Theory of computing - STOC '78. New York, NY, USA: Association for Computing Machinery. pp. 114–118. doi:10.1145/800133.804339. hdl:1813/7454. ISBN 978-1-4503-7437-8.
  2. ^ MacKenzie, Philip D.; Ramachandran, Vijaya (2025-08-06). "ERCW PRAMs and optical communication". Theoretical Computer Science. 196 (1): 153–180. doi:10.1016/S0304-3975(97)00199-0. ISSN 0304-3975.
  3. ^ Neil Immerman, Expressibility and parallel complexity. SIAM Journal on Computing, vol. 18, no. 3, pp. 625-638, 1989.
  4. ^ Wyllie, James C. The Complexity of Parallel Computations, PhD Thesis, Dept. of Computer Science, Cornell University
[edit]
真维斯属于什么档次 带状疱疹是什么 c类火灾是指什么 翻糖是什么 中午一点是什么时辰
爱困总想睡觉什么原因 5月22日什么星座 打喷嚏是什么原因 男性乳头疼是什么原因 什么是甘油
一九六七年属什么生肖 黄体生成素高是什么原因 次月什么意思 大小脸挂什么科 吃什么养肝
初代是什么意思 长结节是什么原因造成的 nt值代表什么 全麻对身体有什么危害 不经意间是什么意思
小腿灼热感是什么原因hcv9jop6ns7r.cn 7月属于什么季节jinxinzhichuang.com 总是低烧是什么原因造成的imcecn.com 矬子是什么意思hcv8jop5ns7r.cn 狗为什么吃屎hcv9jop3ns1r.cn
围绝经期什么意思hcv8jop6ns2r.cn 潘多拉属于什么档次hcv8jop2ns8r.cn 经常便秘是什么原因hcv9jop4ns2r.cn 精神什么满hcv7jop7ns1r.cn 吴亦凡属什么hcv8jop9ns1r.cn
妍字属于五行属什么hcv8jop0ns5r.cn 知了猴什么时候结束hcv8jop9ns5r.cn 慢生活是什么意思hcv7jop7ns2r.cn 聊表心意是什么意思hcv8jop5ns0r.cn 裙带菜不能和什么一起吃hcv8jop3ns8r.cn
用盐刷牙有什么好处和坏处hcv9jop1ns9r.cn 离岸人民币是什么意思hcv7jop5ns0r.cn 美女是指什么生肖hcv8jop7ns5r.cn 琉璃是什么材料hcv8jop8ns3r.cn 祛斑喝什么花茶最有效hcv8jop1ns9r.cn
百度