Changes
Page history
Update home
authored
Jan 16, 2020
by
van Vliet
Show whitespace changes
Inline
Side-by-side
home.md
View page @
fe246bd7
...
@@ -188,6 +188,7 @@ module purge
...
@@ -188,6 +188,7 @@ module purge
```
```
## Compiling programs
## Compiling programs
-
vi hello1.c
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -213,6 +214,36 @@ int main (int argc, char *argv[])
...
@@ -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 "mpi.h"
#include "string.h"
#include "string.h"
...
...
...
...