This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from mpi4py import MPI | |
| comm = MPI.COMM_WORLD | |
| rank = comm.Get_rank() | |
| size = comm.Get_size() | |
| print() | |
| # processor ke-0 sebagai master node | |
| if rank == 0: | |
| for i in range(1, size): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| """ | |
| hl hr | |
| 7.100 8.100 | |
| | | | |
| 7.1 8.1 | |
| r1--9--r2--10-r3--11-r4--12-r5--13-r6 | |
| 1.1 2.1 3.1 4.1 5.1 6.1 | |
| | | | | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # creating a virtual Ubuntu (14.04) on AWS EC2 (t2.micro) | |
| # install MPTCP | |
| sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 379CE192D401AB61 | |
| sudo echo -e "\n\n# for MPTCP\ndeb https://dl.bintray.com/cpaasch/deb jessie main\n" >> /etc/apt/sources.list | |
| sudo apt-get update | |
| sudo apt-get install linux-mptcp | |
| # reboot | |
| sudo reboot | |
| # verify |