5月13日,15:28,Prime Mover< eple ... @ hotmail.comwrote: On 13 May, 15:28, Prime Mover <[email protected]: > > 让我稍微具体一点:$ b​​ $ b Let me just be a bit more specific: My(understading)问题从伪代码的第5行开始: 5.找出我是MASTER还是WORKER My (understading) problem starts in the line 5 of the pseudo-code: 5. find out if I am MASTER or WORKER 如何我会特定工人吗?那会是另一台电脑吗? 如果是的话,我怎样才能在计算中访问这台远程计算机? C语言? 如果是的话,这意味着我必须要有局域网或其他东西来执行 测试? How would I specificy a "worker"? Would that be another computer? If yes, how can I access this remote computer in the calculations, in C language? If yes, it means that I have to have a LAN or something to perform tests? 我发现有一些库,如OMP或MPI, 可能是 使用,但我想知道是否有更多的原始这样做的方式 优先。 I have found that there are some libraries such as OMP or MPI that could be used, but I''d like to know if there is a more "raw" way of doing this first. 标准C没有内置支持并行处理所以 回答 问题" ;看看我是不是MASTER或WORKER落在外面 标准C这就是这里的热门话题。我不知道什么样的硬件设置和扩展到C可以用来解决数字化的b $ b密集型并行算法。也许这里的其他人有相关的b 体验。在Google群组中搜索* parallel *我找到了 comp.parallel.mpi和comp.parallel.pvm我猜你可能会比这里有更多有用的建议。 Standard C has no built-in support for parallel processing so ananswerto the question "find out if I am MASTER or WORKER" falls outsidestandard C which is what''s topical here. I have no idea what kind ofhardware set-up and extensions to C can be used to tackle numericallyintensive parallel algorithms. Perhaps others here have the relevantexperience. Searching Google groups for *parallel* I foundcomp.parallel.mpi and comp.parallel.pvm where I''m guessing you mightget more useful advice than here. 还有comp.parallel There''s also comp.parallel 这篇关于用于计算PI的并行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-21 01:10