Git Product home page Git Product logo

mfem_performance_benchmark's Introduction

Overview

This repo has a few simple test problems for measuring performance. The three test problems are:

  1. Transient Thermal
  2. Solid Dynamics
  3. Definite Maxwell

Of course, these test problems aren't actually going through the rigamarole of solving a realistic physics problem, they just set up the kind of calculations that would appear in these simulations (i.e. "mass" + "stiffness" + "source" term).

The two main kernels of interest are the jacobian-vector product and the element jacobian calculation.

Building


libCEED (optional)

libCEED sources are included in this repo, and if you want to build with libCEED enabled you have to first cd into that directory and run

make OPT='-O3 -ffp-contract=fast'

or, if you're on an arm mac machine

make OPT='-O3 -mcpu=apple-m1 -fvectorize -fslp-vectorize -ffp-contract=fast'

Once that's done, configure the main CMake project with the additional argument -DMFEM_USE_CEED=ON


Start by configuring CMake

cmake . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release

Here are some other options that may be relevant

  • -DENABLE_CUDA=ON
  • -DCMAKE_CUDA_CUDA_ARCHITECTURES=70

Following that, build the project

cd build
ninja

and run one of the tests: poisson, elasticity, or maxwell. The arguments for specifying input meshes, refinement, and other parameters are explained by the executables.

Note: some arguments are problem specific (e.g. -pa is supported by poisson, but not maxwell).

mfem_performance_benchmark's People

Contributors

samuelpmish avatar

Stargazers

Julian Andrej 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.