Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
dfba702
adding fork me on github, page on environment metadata, and making to…
vsoch Apr 10, 2017
64b14b0
removing fork on github logo, don't like
vsoch Apr 10, 2017
984a7c4
editing people, etc.
vsoch Apr 10, 2017
6db7d42
tweaks to more style
vsoch Apr 10, 2017
511f867
updating people list with authors
vsoch Apr 10, 2017
72fe4cf
Update docs-quick-start-installation.md (#60)
ArangoGutierrez Apr 11, 2017
5f01e2d
fixing this while I remember it!
vsoch Apr 12, 2017
7edaeee
Merge branch 'docs/2.3' of github.com:singularityware/singularityware…
vsoch Apr 12, 2017
6b4ea00
Docs/2.3 (#62)
GodloveD Apr 13, 2017
f41ad3b
renaming Quick Start Title, adding Shub link
vsoch Apr 13, 2017
b7a8280
adding details about adding content
vsoch Apr 13, 2017
018fd2c
Update docs-hpc.md (#65)
ArangoGutierrez Apr 13, 2017
71b7c62
modified: pages/docs/user-docs/docs-content.md
vsoch Apr 13, 2017
8d3c86b
lots of changes to the create page (#67)
GodloveD Apr 16, 2017
268aeff
updating bootstrap page
vsoch May 1, 2017
e5e6d3c
fix grammar in user guide (#70)
hertzsprung May 2, 2017
9b591c5
updating logo images
vsoch May 5, 2017
577a622
Merge branch 'docs/2.3' of github.com:singularityware/singularityware…
vsoch May 5, 2017
19a0751
updating open mpi to include dev/master versions
vsoch May 11, 2017
405a753
Merge branch 'l1ll1-mpi_update' into docs/2.3
vsoch May 11, 2017
e4f2e15
Merge branch 'docs/2.3' of github.com:singularityware/singularityware…
vsoch May 11, 2017
cb06a8b
adding post to 2.3 docs too
vsoch May 11, 2017
e1a181b
Adding contributions for GPUS and gist support (#75)
vsoch May 12, 2017
63e86c6
Update based on additional info provided by Greg in the mailing list …
l1ll1 May 12, 2017
18fdeca
adding assicast and updating bootstrap docs
vsoch May 18, 2017
6f2a78c
release is in wrong folder
vsoch May 18, 2017
98b722f
fixing bug with environment variable spec
vsoch May 19, 2017
fba0af1
adding pull page
vsoch May 19, 2017
9907187
updating docs to use ubuntu xenial instead of trusty
vsoch May 26, 2017
5af531c
start from vagrant box bento/ubuntu-16.04 (#80)
alaindomissy May 27, 2017
e8fcd9e
adding Vagrant Virtualbox to install mac page
vsoch May 28, 2017
1ed5ab1
Merge branch 'master' into docs/2.3
vsoch May 31, 2017
c5d8a2e
adding link to contributing clause / code of conduct
vsoch May 31, 2017
cbadcfb
should be master branch
vsoch May 31, 2017
f7327b0
adding inspect docs
vsoch May 31, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source "https://rubygems.org"

# gem "rails"
#gem "rails"
gem 'github-pages'
gem 'jekyll'
gem 'jekyll'
24 changes: 20 additions & 4 deletions _data/sidebars/user_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,26 @@ entries:
url: /docs-quick-start-installation
output: web, pdf

- title: Create an Image
url: /create-image
output: web, pdf

- title: Bootstrap an Image
url: /bootstrap-image
output: web, pdf

- title: Create an Image
url: /create-image
- title: Adding Content
url: /docs-content
output: web, pdf

- title: Bind Paths and Files
url: /docs-mount
output: web, pdf

- title: Environment and Metadata
url: /docs-environment-metadata
output: web, pdf

- title: Change an Existing Container
url: /docs-changing-containers
output: web, pdf
Expand Down Expand Up @@ -67,10 +75,18 @@ entries:
url: /docs-import
output: web, pdf

- title: shell
url: /docs-shell
- title: inspect
url: /docs-inspect
output: web, pdf

- title: pull
url: /docs-pull
output: web, pdf

- title: run
url: /docs-run
output: web, pdf

- title: shell
url: /docs-shell
output: web, pdf
15 changes: 11 additions & 4 deletions _data/topnav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ topnav_dropdowns:
url: /faq#troubleshooting
- title: People
folderitems:
- title: LBNL
external_url: http://www.lbl.gov/
- title: Stanford
external_url: https://srcc.stanford.edu/
- title: Gregory M. Kurtzer
external_url: https://github.com/gmkurtzer
- title: Vanessa Sochat
external_url: https://github.com/vsoch
- title: Michael Bauer
external_url: https://github.com/bauerm97
- title: Brian Bockelman
external_url: https://github.com/bbockelm
- title: Complete Authors List
external_url: https://github.com/singularityware/singularity/blob/master/AUTHORS


## Topnav single links
## if you want to list an external url, use external_url instead of url. the theme will apply a different link base.
Expand Down
9 changes: 9 additions & 0 deletions _includes/gist.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<style>
/* Better styles for embedding GitHub Gists */
.gist{font-size:13px;line-height:20px;margin-bottom:20px;width:100%}
.gist pre{font-family:Menlo,Monaco,'Bitstream Vera Sans Mono','Courier New',monospace !important}
.gist-meta{font-family:Helvetica,Arial,sans-serif;font-size:13px !important}
.gist-meta a{color:#26a !important;text-decoration:none}
.gist-meta a:hover{color:#0e4071 !important}
</style>
<script src="https://gist.github.com/{{ include.username }}/{{ include.id }}.js?file={{ include.file }}"></script>
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<!--<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">-->
<link rel="stylesheet" href="{{ "assets/css/modern-business.css" }}">
<link rel="stylesheet" href="{{ "assets/css/lavish-bootstrap.css" }}">
Expand Down
4 changes: 2 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ <h1 class="post-title-main">{{ page.title }}</h1>

<!-- Previous and next buttons-->
<div class="row" style="padding-top:30px; margin-bottom:10px"><div class="col-md-12">
<a href="#"><button style="width:20%; height: 70px; float:left" class="hidden previous-button btn btn-lg btn-default">Previous</button></a>
<a href="#"><button style="width:20%; height: 70px; float:right" class="hidden next-button btn btn-lg btn-default">Next</button></a>
<a href="#"><button style="float:left" class="hidden previous-button btn btn-circle btn-default"><i class="fa-2x fa fa-angle-double-left"></i></button></a>
<a href="#"><button style="float:right" class="hidden next-button btn btn-circle btn-default"><i class="fa fa-angle-double-right fa-2x"></i></button></a>
</div></div>

<script>
Expand Down
5 changes: 2 additions & 3 deletions _posts/news/2017-05-11-singularity-manuscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ category: news
permalink: 2017-singularity-manuscript
---

We are proud to announce that you can now <a href="http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0177459" target="_blank">cite Singularity proper</a>! Our recent publication in PLOS One can be cited as follows:
We are proud to announce that we have <a href="http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0177459" target="_blank">published Singularity proper!</a> Please cite the Singularity software as:

```
Kurtzer GM, Sochat V, Bauer MW (2017)
Singularity: Scientific containers for mobility of compute.
PLoS ONE 12(5): e0177459. https://doi.org/10.1371/journal.pone.0177459
```

Thanks to all of our contributors and community for helping us clunky software folk properly put together this paper. Looking forward to more great things to come, woohoo!
Woohoo!

{% include links.html %}
68 changes: 68 additions & 0 deletions _posts/recipes/2017-05-09-hostlibs-gpus-and-mpi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: "Using Host libraries: GPU drivers and OpenMPI BTLs"
category: recipes
permalink: tutorial-gpu-drivers-open-mpi-mtls
---

Singularity does a fantastic job of isolating you from the host so you don't
have to muck about with `LD_LIBRARY_PATH`, you just get exactly the library
versions you want. However, in some situations you need to use library
versions that match host exactly. Two common ones are NVIDIA gpu
driver user-space libraries, and OpenMPI transport drivers for high performance
networking. There are many ways to solve these problems. Some people build a container and
copy the version of the libs (installed on the host) into the container.

{% include toc.html %}

## What We will learn today
This document describes how to use a bind mount, symlinks and ldconfig so that when the host
libraries are updated the container does not need to be rebuilt.

**Note** this tutorial is tested with Singularity <a href="https://github.com/singularityware/singularity/commit/945c6ee343a1e6101e22396a90dfdb5944f442b6" target="_blank">commit 945c6ee343a1e6101e22396a90dfdb5944f442b6</a>,
which is part of the (current) development branch, and thus it should work with version 2.3
when that is released. The version of OpenMPI used is 2.1.0 (versions above 2.1 should work).

## Environment

In our environment we run CentOS 7 hosts with:

1. slurm located on `/opt/slurm-<version>` and the slurm user `slurm`
2. Mellanox network cards with drivers installed to `/opt/mellanox` (
Specifically we run a RoCEv1 network for Lustre and MPI communications)
3. NVIDIA GPUs with drivers installed to `/lib64`
4. OpenMPI (by default) for MPI processes

## Creating your image
Since we are building an ubuntu image, it may be easier to create an ubuntu VM
to create the image. Alternatively you can follow the recipe
<a href="/building-ubuntu-rhel-host" target="_blank"> here</a>.

Use the following def file to create the image.

{% include gist.html username='l1ll1' id='89b3f067d5b790ace6e6767be5ea2851' file='hostlibs.def' %}

The mysterious `wget` line gets a list of all the libraries that the CentOS host
has in `/lib64` that *we* think its safe to use in the container. Specifically
these are things like nvidia drivers.

{% include gist.html username='l1ll1' id='89b3f067d5b790ace6e6767be5ea2851' file='desired_hostlibs.txt' %}

Also note:

1. in `hostlibs.def` we create a slurm user. Obviously if your `SlurmUser` is different you should change this name.
2. We make directories for `/opt` and `/usr/local/openmpi`. We're going to bindmount these from the host so we get all the bits of OpenMPI and Mellanox and Slurm that we need.


## Executing your image
On our system we do:

```
SINGULARITYENV_LD_LIBRARY_PATH=/usr/local/openmpi/2.1.0-gcc4/lib:/opt/munge-0.5.11/lib:/opt/slurm-16.05.4/lib:/opt/slurm-16.05.4/lib/slurm:/desired_hostlibs:/opt/mellanox/mxm/lib/
export SINGULARITYENV_LD_LIBRARY_PATH
```

then

```
srun singularity exec -B /usr/local/openmpi:/usr/local/openmpi -B /opt:/opt -B /lib64:/all_hostlibs hostlibs.img <path to binary>
```
Loading