Code Monkey home page Code Monkey logo

singr's Introduction

singr

A Singularity image for running R, including geospatial system dependencies gdal, geos, proj, and udunits2 (from ppa:ubuntugis/ubuntugis-unstable).

using

After installing or (module load-ing) Singularity, pull the image (~420MB) as a Singularity Image File (.sif) to the working directory:

singularity pull library://cole-brokamp/default/singr:4.3.0

Call the downloaded .sif to run the image, which here presents a bash shell where you can run R:

./singr_4.3.0.sif

releases

The Singularity image tags correspond to version of R and latest refers to the most recently pushed image. Note that different versions may use different base images (e.g. 3.6 uses Ubuntu 18.04, 4.0 uses Ubuntu 20.04, 4.3 uses Ubuntu 22.04).

CCHMC HPC

Optionally, start a tmux or screen session from the HPC login node to keep your session persistently alive

Change to the project directory and run:

bsub -Is -W 10:00 -n 16 -M 250000 -R "span[ptile=16]" "module load singularity; singularity run ~/singr_latest.sif"

This works by supplying the commands needed to run the singularity container. Once the job is running, you will be presented with an interactive shell where you can run R

Double check resources available to R with:

parallel::detectCores()
benchmarkme::get_ram()
benchmarkme::get_cpu()

notes

  • use lshosts to see an overview of available compute nodes and their specs
  • tmux works from login node to attach to session started on a compute node (leave your job and come back later without having to find the ip address of the compute node)
  • singularity imports all system environment variables (github/aws keys, etc)
  • singularity automatically mounts $HOME, $PWD, and /tmp

singr's People

Contributors

cole-brokamp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rucilab dwietsma

singr's Issues

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.