Localities in parallelism

為{幸葍}努か 提交于 2019-12-04 18:29:25

From what I understand from their documentation - you can treat Locality as the number of processes that execute the application.
lets say 2 servers execute your program, the first one will execute locality 0, and the second locality 1.
That way you can know which process, which executes the same code, is lets say the server (locality 0) and which is the client (locality 1).

In addition, each process can run multiple threads, which is visible as the number of os_threads.

follow that example: http://stellar.cct.lsu.edu/files/hpx_0.8.1/docs/hpx/tutorial/examples/hello_world.html

and these command line options: http://stellar.cct.lsu.edu/files/hpx_0.8.1/docs/hpx/tutorial/getting_started/commandline.html

This is the explanation of how to use multiple localities: http://stellar.cct.lsu.edu/files/hpx_0.8.1/docs/hpx/tutorial/getting_started/unix_pbs.html

I think the best way to understand it is to play with the values of --hpx:node and --hpx:threads.

In addition - I think the openmpi documentation is a bit better for understanding the terms...

Although not sure I helped, I hope I did.

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