Skip to content

Commit fe25799

Browse files
author
Thomas Weise
committed
Minor Improvements to Docu and MPI Example
1. The root folder's README.md now has a rudimentary entry for installing MPICH (which needs to be extended further). 2. We now do "#include <mpi.h>" instead of "#include "mpi.h", which I think is better.
1 parent 6733783 commit fe25799

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,20 @@ For running some of the [Java Servlets](http://github.com/thomasWeise/distribute
7272

7373
For running the [Web Service](http://github.com/thomasWeise/distributedComputingExamples/tree/master/webServices/) examples, you will need to download [Apache Axis2/Java](http://axis.apache.org/axis2/java/core/) from the corresponding [download page](http://axis.apache.org/axis2/java/core/download.html). I recommend using at least Axis2 1.7.1.
7474

75-
### 2.6. GCC and Libraries
75+
### 2.6. GCC
7676

7777
In order to compile the examples written in the C programming language (such as the C-based [sockets examples](http://github.com/thomasWeise/distributedComputingExamples/tree/master/sockets/c)), you will need a C compiler such as GCC. Under Linux, it should normally be already installed and can otherwise be installed via `sudo apt-get install gcc`. Under Windows, you will need to install [MinGW](http://mingw.org/), usually via the [web installer](https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download).
7878

79-
#### 2.6.1. Cross-Compiling for Windows under Linux
79+
### 2.7. Cross-Compiling for Windows under Linux with GCC
8080

8181
Several of the C examples come for Windows or Linux. GCC allows you to cross-compile, i.e., if you are using Linux, you can compile C programs for Windows. For this purpose, you would first install `sudo apt-get install gcc-mingw-w64-i686` and then can use the command `gcc-mingw-w64-i686` in the same way you would use `gcc` under MinGW.
8282

83+
### 2.8. MPICH
84+
85+
In order to build and compile our [examples](http://github.com/thomasWeise/distributedComputingExamples/tree/master/mpi/) for using the Message Passing Interface (MPI), we need an MPI implementation. We choose MPICH.
86+
87+
Under Linux, you can install the required files via `sudo apt-get install mpich libmpich-dev`.
88+
8389
## 3. Licensing
8490

8591
This work has purely educational purposes. Besides everything mentioned below, for anything in this repository, I impose one additional licensing condition: The code must never be used for anything which might violate the laws of Germany, China, or the USA. This also holds for any other file or resource provided here.

mpi/bareBones.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "mpi.h"
1+
#include <mpi.h>
22

33
int main(int argc, char **argv) {
44
MPI_Init(&argc, &argv);

0 commit comments

Comments
 (0)