Giter VIP home page Giter VIP logo

fastsieve's Introduction

fastSieve

A fairly fast c based prime calculator. Calculates in parallel & sequentially

Makes use of OpenMPI to assist in paralell computation

https://www.open-mpi.org/

It takes into account the cache size of the CPU it is calculating, showing vast improvments to calculation speed. It estimates the cachline of the cpu.

For running on Linux the following is required to be installed before execution: sudo apt update

sudo apt install build-essential

sudo apt-get install --reinstall openmpi-bin libopenmpi-dev

Compile by typing make in bash and running the resultant a.out

As this supports OpenMPI it can be executed like: mpiexec a.out -s 2 -c -v 1 -n 100

Take note that the OpenMPI implementation is not complete and does not calculate primes correctly at present.

it supports elementary command line input eg:

-N = Max value of Primes to test to factor. 1 = MAX_INT, 2 = 2*MAX_INT etc

-V = Toggle verbose mode

-S = a value [1-3] that changes how the primes are tested & calculated. 1->Default; 2->Most optimizations used; 3->Some experimental options enabled.

-C to estimate the L2 cache of the system and use it effeciently -NB option for speed

Please take note that options 1 & 3 output to files which grow in size quickly. at N=1 ~ 1.5GB & N=10 ~ 112GB

fastsieve's People

Contributors

sloox avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.