Code Monkey home page Code Monkey logo

ode-openacc's Introduction

Overview

ode-openacc is intended to be a self-contained set of Fortran source code implementing basic first-order ordinary differential equation (ODE) integration accelerated with OpenACC. This allows for easy experimentation and testing of ideas, which can inform development of production codes like Maestro. It can also be useful as a so-called mini-app to be used for the verification of compilers implementing the OpenACC standard.

Requirements

The code is developed mostly on Fedora Linux machines and using PGI compilers, so should work in similar environments. If you have problems with the code, please file an issue describing the issue. We will also consider pull requests fixing issues or adding functionality.

A basic example

First, clone the repo. At a command prompt, execute

git clone https://github.com/adam-m-jcbs/ode-openacc.git

Now build an executable. The simplest example is in first-order.

cd ode-openacc/first-order
make

By default, this will build a version of the code that runs in serial on the CPU using PGI compilers, giving results like

./test_react.pgf95_local.exe 
            0
   6.4935629937149325E-002   0.5000000000000000        0.4350643700628506     
 runtime:     11.69168210029602       seconds

To build with OpenACC, do

make ACC=t
./test_react.pgf95_local.acc.exe

Hopefully by examining this example and the relevant source/make infrastructure, you can get a feel for the code and how to modify it for your purposes.

ode-openacc's People

Contributors

adam-m-jcbs avatar dwillcox avatar zingale avatar

Watchers

 avatar  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.