Difference between “SOCK”, “PVM”, “MPI”, and “NWS” for the R SNOW package

喜你入骨 提交于 2019-12-05 15:38:08

问题


The makeCluster function for the SNOW package has the different cluster types of "SOCK", "PVM", "MPI", and "NWS" but I'm not very clear on the differences among them, and more specifically which would be best for my program.

Currently I have a queue of tasks of different length going into a load balancing cluster with clusterApplyLB and am using a 64bit 32-core Windows machine.

I am looking for a brief description of the differences among the four cluster types, which would be best for my use and why.


回答1:


Welcome to parallel programming. You may want to peruse the vignette of the excellent parallel package that comes with R as it gives a general introduction. It also gives you an idea of what you can or cannot do on Windows -- in short, PVM and MPI are standard parallel programming approaches supported by namesake libraries. These exists on Windows, but are less frequently used and often not as mature as their Unix counterparts.

If you want to stick with snow, your options are essentially limited to SOCK types clusters. Again, the package documentation will have pointers.



来源:https://stackoverflow.com/questions/19014360/difference-between-sock-pvm-mpi-and-nws-for-the-r-snow-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!