Giter Club home page Giter Club logo

lammps_docker's Introduction

lammps_docker

the molecular dynamics packages compiled with GPU supports .

LAMMPS is a classical molecular dynamics simulation code designed to run efficiently on parallel computers. It was developed at Sandia National Laboratories, a US Department of Energy facility, with funding from the DOE. It is an open-source code, distributed freely under the terms of the GNU Public License (GPL).

this repository contain a DockerFile to compile and instal lammps on your machine. we hope this DockerFile be useful for your simulation. some package ( gpu / kokkos) need to compile and in future we add this package to lammps.

for compiling the Lammps packages need a base image ,because of own purpose ( use cuda for GPU processing ) install nvidia/cuda docker image.

docker pull nvidia/cuda:10.2-devel-ubuntu18.04

two bellow commands must run perfectly without any error:

docker run --runtime=nvidia --rm nvidia/cuda:10.2-devel-ubuntu18.04 nvidia-smi
sudo docker run --rm --runtime=nvidia nvidia/cuda:10.2-devel-ubuntu18.04 nvcc --version

Dockerfile for Lammps

the nvidia corporation blocks Iranian IP's, so, if you are in Iran needs to use a DNS server (see shecan services) to update and use nvidia/cuda images as base of your custom images.

graph TD;
	src--> resolv.conf;
	src--> Dockerfile;

built image

docker built -t 'lammps_gpu:2020' .

use image

nvidia-docker run -ti -v $(pwd):/srv/input -v $HOME/scratch:/srv/scratch lammps_gpu:2020

lmp_gpu -in /srv/lammps/bench/in.lj

mpirun -np 4 lmp_gpu -in /srv/lammps/bench/in.lj

mpirun -np 4 lmp_gpu -in /srv/lammps/bench/in.lj -sf gpu

ToDo List

  • add kokkos
  • voronoi

Completed Column โœ“

- [x] compile lammps on ubuntu 18.04

  • add cuda
    • install cuda
    • compile lammps with cuda

lammps_docker's People

Contributors

ssmns avatar

Stargazers

Nikita Dmitryuk 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.