Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

calube/Estimating-Pi-Using-OpenMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Estimating-Pi-Using-OpenMP

π can be estimated using the Leibniz formula:

1 - 1/3 + 1/5 - 1/7 + 1/9 - .... = π/4.

alt text

This program estiamtes π using Leibniz formula. First I wrote the serial implementation, and modified the serial program into two shared memory programs using OpenMP. In the first OpenMP program, I chose to use the critical pragma. In the second OpenMP program I chose to use the reduction pragma.

Comparing runtimes (To be done):

Tp with respect to different n and t values. n = number of terms in the Leibniz formula t = number of threads

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published