Skip to content

hwharry1968/Distributed-computation-with-MPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed-computation-with-MPI

Parallel Distributed-computation-with-MPI

The detail problem description is in Parallel_help_book

We use MPI and Openmp to Calculate sparse matrix:

$ Gx(t) + C \dot x(t) = Bu(t)$

where G, C, B are all sparse matrix and provided in ./data.

CONFIGURE THE ENVIRONMENT

STEP 1: Load Environment Variables

The oepnmpi and intel_mkl_lib have been installed in /opt,
you should edit your ~/.bashrc to add following contents: 

    export PATH=$PATH:/opt/openmpi/bin
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openmpi/lib
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/mkl/lib/intel64:/opt/intel/lib/intel64 (if you need it)

Then run "source ~/.bashrc" and "mpiexec --vertion" get the infomation about mpi. 

STEP 2: Configure an MPI Cluster within a LAN

You need to communicate between the four computers,
and the /etc/hosts is used to map hostnames to IP addresses,
you can view the contents with command "cat /etc/hosts".

You need to do the following commands on each machine:

    ssh-keygen -t rsa -b 4096

    ssh-copy-id username@esc-dc50-0001
    ssh-copy-id username@esc-dc50-0002
    ssh-copy-id username@esc-dc50-0003
    ssh-copy-id username@esc-dc50-0004

Then you must be able to login to other machines without any password prompt.

NOTE:

If other third-party software is required, install it by yourself, please.

We have provided matrix data and their description in ./data.

About

Parallel Distributed-computation-with-MPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages