GithubHelp home page GithubHelp logo

frobnitzem / cabanamd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ecp-copa/cabanamd

0.0 2.0 0.0 1.55 MB

Molecular dynamics proxy application based on Cabana

License: Other

CMake 2.08% C++ 97.04% C 0.88%

cabanamd's Introduction

CabanaMD

is a proxy application for molecular dynamics (MD) based on ExaMiniMD, modified to replace features with the CoPA Cabana Particle Toolkit: https://github.com/ECP-copa/Cabana

ExaMiniMD is a proxy app and research vehicle for MD using the Kokkos performance portability library ("KokkosMD"): https://github.com/ECP-copa/ExaMiniMD https://github.com/kokkos/kokkos

Build instructions

The following shows how to configure and build CabanaMD.

Dependencies

CabanaMD has the following dependencies:

Dependency Version Required Details
CMake 3.9+ Yes Build system
MPI GPU Aware if CUDA Enabled Yes Message Passing Interface
Kokkos 3.0 Yes Provides portable on-node parallelism
Cabana 0.3-dev Yes Performance portable particle algorithms
libnnp 1.0.0 No Neural network potential utilities

Build Kokkos, followed by Cabana: https://github.com/ECP-copa/Cabana/wiki/Build-Instructions

Build instructions are available for both CPU and GPU. Note that Cabana with MPI is required (-D Cabana_ENABLE_MPI=ON)

CPU Build

After building Kokkos and Cabana for CPU:

# Change directories as needed
export KOKKOS_INSTALL_DIR=$HOME/kokkos
export CABANA_INSTALL_DIR=$HOME/Cabana

cd ./CabanaMD
mkdir build
cd build
pwd
cmake \
    -D CMAKE_PREFIX_PATH="$KOKKOS_INSTALL_DIR;$CABANA_INSTALL_DIR" \
    -D CabanaMD_ENABLE_Serial=OFF \
    -D CabanaMD_ENABLE_OpenMP=ON \
    -D CabanaMD_ENABLE_Cuda=OFF \
    \
    .. ;
make install
cd ../../

GPU Build

After building Kokkos and Cabana for GPU: https://github.com/ECP-copa/Cabana/wiki/Build-Instructions#GPU-Build

the GPU build is identical to that above except the options passed to CMake:

cmake \
    -D CMAKE_CXX_COMPILER=$KOKKOS_SRC_DIR/bin/nvcc_wrapper \
    -D CMAKE_PREFIX_PATH="$KOKKOS_INSTALL_DIR;$CABANA_INSTALL_DIR" \
    -D CabanaMD_ENABLE_Serial=OFF \
    -D CabanaMD_ENABLE_OpenMP=OFF \
    -D CabanaMD_ENABLE_Cuda=ON \
    \
    .. ;

Neural network potential build

If using the optional neural network potential, additional flags for the location of the libnnp library (https://github.com/CompPhysVienna/n2p2) and enabling the potential are needed for CMake:

    -D N2P2_DIR=$N2P2_INSTALL_DIR \
    -D CabanaMD_ENABLE_NNP=ON \

cabanamd's People

Contributors

streeve avatar saakethdesai avatar crtrott avatar stanmoore1 avatar athomps avatar frobnitzem avatar junghans avatar tcgermann avatar

Watchers

James Cloos 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.