Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 458 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 458 Bytes

monte_carlo

Comparison between serial and parallel monte carlo integration using openMP

To compile serial code use:

gcc monte_carlo_serial.c -lm -o serial

And run it with:

./serial [number_of_points] 

where number_of_points is the number of points used in integration of a function

To compile parallel code use:

gcc monte_carlo_parallel.c -lm -o -fopenmp parallel 

And run it with:

./parallel [number_of_points]