Skip to content

Using OpenMPI programming tool for mathmetical calculations

Notifications You must be signed in to change notification settings

volvinbur1/OpenMPI-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prallel programing

Variant 3

Build and run

Before building an running

cd bin/lab<number>

Command to build

~/local/bin/mpicxx ../../lab<number>/main.cxx -o lab<number> -g

Command to run

~/local/bin/mpirun -np 4 lab<number>

Lab1

Square root calculation of x with accuracy 1e-8

Input

1.5     // value under the square root

Output

1.224744873

Lab1 execution results

Lab2

Integration of f(x) = log2(x^3) with accuracy 1e-4 using right rectangles method.

Input

5       // a
1500    // b
0.0001  // accuracy

Output

1.224744873

Lab2 execution results.

About

Using OpenMPI programming tool for mathmetical calculations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published