Skip to content

A toy Monte Carlo estimation of π, including automatic parallelization

Notifications You must be signed in to change notification settings

dmit/monte-carlo-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A toy Monte Carlo estimation of π, including automatic parallelization.

Build:
  $ cargo build --release

Run:
  $ # Single-threaded
  $
  $ cargo run --release <number of iterations>

  $ # Parallel
  $ #
  $ # This mode can perform multiple iterations per unit of work (chunk). In
  $ # order to optimize overall efficiency the chunk size should be big enough
  $ # so that time to process a single chunk significantly outweighs the
  $ # parallelization overhead.
  $
  $ cargo run --release <number of iterations> <chunk size>

About

A toy Monte Carlo estimation of π, including automatic parallelization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages