Skip to content

juanmanzanero/OpenMP-MPI-training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenMP-MPI Course sample codes

This repository contains OpenMP and MPI guidelines and code examples. This repository was designed by engineers, for engineers.

Preparation

I have used GNU 7.2.0 compilers, with the libraries:

Installing OpenMPI and/or MPICH is straightforward in UNIX machines. Just make sure that autoconf finds your C,C++, and FORTRAN compilers by setting your PATH and LD_LIBRARY_PATH (DYLD_LIBRARY_PATH for MacOSx) accordingly, and type:

./configure --prefix=/where/to/install
make (or make -j4)
make install (or sudo make install)

Make sure that after installation, the system is able to find mpif90, mpicc, and mpic++, which are stored in /where/to/install/bin. They are launched by using:

$ mpif90 -c file.f90
$ mpicc -c file.c
$ mpic++ -c file.cpp

where the shortcuts mpif90, mpicc, mpic++ contain the required PATH and LIBRARY_PATH to find MPI libraries. You can see the invokation with

$ mpicc --show

About

Compilation of sample OpenMP-MPI guidelines and codes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published