The algorithm to compute the primes up to N.
- A C++ compiler compatible with C++20
- We use
g++
but others should work fine
- We use
- PAPI
- OpenMP
- Only required to compile
parallel
,spmd
andtasks
- Only required to compile
- GNU Make
- Optional - just for compilation convinience
make [all | basic | multiples | segmented | parallel | spmd | tasks] # builds a target
./bin/basic.out # naïve sieve of erastothenes
./bin/multiples.out # fast-marking based sieve of erastothenes
./bin/segmented.out # segmented sieve of erastothenes
./bin/parallel.out # parallel segmented sieve of erastothenes
./bin/spmd.out # SPMD segmented sieve of erastothenes
./bin/tasks.out # parallel sieve using tasks