?? readme.txt
字號:
Example:編譯:mpicc psrs_sort.c –o psrs運行:可以使用命令 mpirun –np SIZE psrs來運行該串匹配程序,其中SIZE是所使用的處理器個數,本實例中使用了SIZE=3個處理器。 mpirun –np 3 psrs運行結果: The DataSize is : 60This is node 0On node 0 the input data is:0 : 21468 : 9988 : 22117 : 3498 : 16927 : 16045 : 19741 : 12122 : 8410 : 12261 : 27052 : 5659 : 9758 : 21087 : 25875 : 32368 : 26233 : 15212 : 17661 :On node 0 the sorted data is :0 : 2749 : 3498 : 4086 : 5627 : 5659 : 5758 : 7419 : 8410 : 9084 : 9758 : 9988 : 703 : 908 : 2294 : 9212 :This is node 1On node 1 the input data is:16838 : 5758 : 10113 : 17515 : 31051 : 5627 : 23010 : 7419 : 16212 : 4086 : 2749 : 12767 : 9084 : 12060 : 32225 : 17543 : 25089 : 21183 : 25137 : 25566 :On node 1 the sorted data is :10113 : 12060 : 12122 : 12261 : 12767 : 15212 : 16045 : 16212 : 16838 : 16927 :17515 : 10239 : 10595 : 12508 : 12914 : 14363 : 16134 :This is node 2On node 2 the input data is:908 : 22817 : 10239 : 12914 : 25837 : 27095 : 29976 : 27865 : 20302 : 32531 : 26005 : 31251 : 12508 : 14363 : 10595 : 9212 : 17811 : 16134 : 2294 : 703 :On node 2 the sorted data is :17543 : 17661 : 19741 : 21087 : 21183 : 21468 : 22117 : 23010 : 25089 : 25137 : 25566 : 25875 : 26233 : 27052 : 31051 : 32225 : 32368 : 17811 : 20302 : 22817 : 25837 : 26005 : 27095 : 27865 : 29976 : 31251 : 32531 : 說明:本程序中通過變量DataSize指定了待排序序列的長度為60,順序輸出各個處理器的局部數據就可以得到全局有序的序列。
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -