... | ... | @@ -188,6 +188,7 @@ module purge |
|
|
```
|
|
|
|
|
|
## Compiling programs
|
|
|
- vi hello1.c
|
|
|
|
|
|
```
|
|
|
#include <stdio.h>
|
... | ... | @@ -213,6 +214,36 @@ int main (int argc, char *argv[]) |
|
|
}
|
|
|
```
|
|
|
|
|
|
- mpicc hello1.c -o hello1
|
|
|
|
|
|
- ./hello1
|
|
|
|
|
|
```
|
|
|
Hello world from process 000 out of 001, processor name res-hpc-lo01.researchlumc.nl
|
|
|
```
|
|
|
|
|
|
- mpirun ./hello1
|
|
|
|
|
|
```
|
|
|
Hello world from process 003 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 006 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 013 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 015 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 000 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 005 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 010 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 011 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 012 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 002 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 004 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 007 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 001 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 008 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 009 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 014 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
```
|
|
|
- vi hello1.c
|
|
|
|
|
|
```
|
|
|
#include "mpi.h"
|
|
|
#include "string.h"
|
... | ... | |