Coder Social home page Coder Social logo

mmcv's Introduction

mmcv

Docker and singularity instructions for running mmcv on Artemis HPC

Build with

sudo docker build . -t nbutter/mmcv:ubuntu1604

Push with

sudo docker push nbutter/mmcv:ubuntu1604

Run with e.g.

sudo docker run --gpus all -it -v `pwd`:/project nbutter/mmcv:ubuntu1604 /bin/bash -c "cd /project && python check_installation.py"

On Artemis you can build the singularity image from the docker repo

#!/bin/bash
#PBS -P Training
#PBS -l select=1:ncpus=2:mem=8gb:ngpus=1
#PBS -l walltime=0:30:00

#Change directory to where this file is, presumably /project/<YOURPROJECT>/<subfolder>
cd $PBS_O_WORKDIR

#Load in modules
module load singularity cuda/10.2.89

export SINGULARITY_TMPDIR=`pwd`
export SINGULARITY_CACHEDIR=`pwd`

singularity build mmcv_artemisGPU.img docker://nbutter/mmcv:ubuntu1604

And run your workflow, e.g.

#!/bin/bash
#PBS -P Training
#PBS -l select=1:ncpus=1:mem=4gb:ngpus=1
#PBS -l walltime=0:10:00

cd $PBS_O_WORKDIR

module load singularity cuda/10.2.89

singularity run --nv mmcv_artemisGPU.img python -c 'import torch; print(torch.cuda.get_device_name(0))'
singularity run --nv mmcv_artemisGPU.img python check_imports.py
singularity run --nv mmcv_artemisGPU.img python check_installation.py

mmcv's People

Contributors

natbutter avatar

Watchers

 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.