Giter VIP home page Giter VIP logo

lammps_gpu's Introduction

lammps_gpu

This is a docker container build on CentOS 7 that runs lammps with gpu acceleration. To use the gpu acceleration this container needs to be run with the nvidia-docker command (see install section for details).

Running lammps

To run the docker container run the command

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

which will bring up a command prompt. Running lammps is relatively simple

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

and it is possible to run as an mpi process

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

and/or with gpu acceleration

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

Installing Docker

A quick rundown of installing docker on Ubuntu 16.04, more detailed instructions and instructions for other distributions can be found in the docker documentation.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install docker-engine
sudo systemctl enable docker
sudo docker run hello-world
sudo usermod -aG docker $USER
sudo shutdown -r now

Installing nvidia-docker

This is a relatively simple process documented in the repository

wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.0-rc.3/nvidia-docker_1.0.0.rc.3-1_amd64.deb
sudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb
nvidia-docker run --rm nvidia/cuda nvidia-smi

lammps_gpu's People

Contributors

malramsay64 avatar

Stargazers

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