Code Monkey home page Code Monkey logo

lammps-dlext's Introduction

LAMMPS-dlext

Provides access to LAMMPS simulation data on CPU or GPU through DLPack.

Installation

Make sure that you have LAMMPS installed and it was built as a shared library, and that the LAMMPS Python module is also installed. If appropriate, activate the python environment where the LAMMPS Python module can be found.

Clone this repository:

git clone https://github.com/SSAGESLabs/lammps-dlext.git
cd lammps-dlext

Configure and build the plugin:

BUILD_PATH=build
cmake -S . -B $BUILD_PATH -DCMAKE_PREFIX_PATH=/path/to/lammps/top/level/folder
cmake --build $BUILD_PATH --target install -j4

Alternatively to setting CMAKE_PREFIX_PATH you can directly set the following:

  • The path to LAMMPS_ROOT (where the file LAMMPSConfig.cmake can be found).
  • When compiling with Kokkos support, the path to Kokkos_ROOT (where the file KokkosConfig.cmake can be found). See also the Kokkos documentation.

If during compilation you encounter an error stating that dlpack/dlpack.h cannot be found, try adding -DFETCH_DLPACK=ON at the end of the first cmake command above.

For additional information on how to build and install LAMMPS and lammps-dlext in specific platforms, we invite you to visit our wiki page.

lammps-dlext's People

Contributors

ndtrung81 avatar pabloferz avatar

Watchers

 avatar

Forkers

ndtrung81

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.