Code Monkey home page Code Monkey logo

x3div's Introduction

x3div

The tri-diagonal solvers used for computing the derivatives in Xcompact3d do not currently vectorise well, particularly in the x-direction. To test improvements to the Xcompact3d code, x3div extracts a simplified timestep based on the Euler equations, including solution of the Poisson equation using 2decomp&fft.

Building the code requires a working mpi installation, depending on your compilers build using

make CMP=${compiler}

where ${compiler} is one of intel, gcc, cray or nagfor. Running the produced binary will run the default benchmark for 5 seconds on a 16x16x16 grid, the run can be customised on the commandline as:

mpirun -n ${N} xcompact3d $nx $ny $nz $prow $pcol $rt $test

where $nx, $ny, $nz specify the grid size, $prow <= $pcol, $prow * $pcol = $N specifies parallel decomposition, $rt specifies how many seconds to run the benchmark for - note the total time will be greater than this - and $test enables or disables computing the error in the derivatives. Each variable has a default value:

nx = ny = nz = 16
prow = pcol = 0
rt = 5
test = 0

setting $prow=$pcol=0 the code will attempt to determine a "good" parallel decomposition, $rt must be an integer number of seconds and $test is an integer with zero interpreted as logical false and any other value as true.

For benchmarking $test mode should be disabled, its intention is to validate custom implementations of the compact finite difference scheme solvers.

Note this code is a very stripped down version of Xcompact3d, it is intended for profiling only.

x3div's People

Contributors

mathrack avatar pbartholomew08 avatar rfj82982 avatar slaizet avatar

Stargazers

 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.