Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
benches
src
Cargo.toml
readme.md

readme.md

N-Body

This is the n-body benchmark from the benchmarksgame. It models the orbits of Jovian planets, using the same simple symplectic-integrator.

Usage

It takes two arguments in this order:

  • n: the number of iterations to perform
  • (optional) algorithm: the algorithm to use - defaults to the fastest one.
    • 0: scalar algorithm
    • 1: SIMD algorithm

Implementation

There are three kernels, two of which are only run twice independently of the number of iterations (offset_momentum and energy). The advance kernel is run once per iterations and uses 100% of the running time.

You can’t perform that action at this time.