CommunityData:Klone: Difference between revisions

From CommunityData
No edit summary
Line 3: Line 3:
== Setup ==  
== Setup ==  
The recommended way to manage software for your research projects on Klone is to use [https://sylabs.io/docs/ Singularity containers].  You can build a singularity container on your local machine using the linux package manager of your choice. The instructions on this page document how to build the <code>cdsc_base.sif</code> singularity package which provides python, R, julia, and pyspark based on Debian 10 (Buster).
The recommended way to manage software for your research projects on Klone is to use [https://sylabs.io/docs/ Singularity containers].  You can build a singularity container on your local machine using the linux package manager of your choice. The instructions on this page document how to build the <code>cdsc_base.sif</code> singularity package which provides python, R, julia, and pyspark based on Debian 10 (Buster).
== Installing singularity on your local computer ==
We want singularity version 3.7.1 which is the version installed oh klone.  Follow [https://sylabs.io/guides/3.5/admin-guide/installation.html these instructions] for installing singularity on your local linux machine.
   
   
== Creating a singularity container ==
On your local machine, run
<syntaxhighlight language='bash'>
sudo singularity build cdsc_base library://library/default/debian:10
</syntaxhighlight>
This will create a new container called <code>cdsc_base</code> with a minimal installation of Debian Buster.
Next, we need to set aside some disk space where the container can install files.
== Initial .Bashrc ==
== Initial .Bashrc ==
Before we get started using our singularity package on klone, we need to start with a <code>.bashrc</code> that just sets the <code>umask</code> so that other members of the group can edit your files and that loads singularity.
Before we get started using our singularity package on klone, we need to start with a <code>.bashrc</code> that just sets the <code>umask</code> so that other members of the group can edit your files and that loads singularity.
Line 13: Line 26:
umask 007
umask 007
module load singularity/3.7.1
module load singularity/3.7.1
## this makes it so singularity can see /gscratch/comdata
export SINGULARITY_BIND="/gscratch/comdata:/gscratch/comdata"
</syntaxhighlight>
</syntaxhighlight>

Revision as of 07:53, 14 March 2021

Klone is the latest version of hyak, the UW super computing system. We will soon have a larger allocation of machines on Klone than on Mox. The Klone machines have 40 cores and either 384GB or 768GB of RAM.

Setup

The recommended way to manage software for your research projects on Klone is to use Singularity containers. You can build a singularity container on your local machine using the linux package manager of your choice. The instructions on this page document how to build the cdsc_base.sif singularity package which provides python, R, julia, and pyspark based on Debian 10 (Buster).

Installing singularity on your local computer

We want singularity version 3.7.1 which is the version installed oh klone. Follow these instructions for installing singularity on your local linux machine.

Creating a singularity container

On your local machine, run

sudo singularity build cdsc_base library://library/default/debian:10

This will create a new container called cdsc_base with a minimal installation of Debian Buster.

Next, we need to set aside some disk space where the container can install files.

Initial .Bashrc

Before we get started using our singularity package on klone, we need to start with a .bashrc that just sets the umask so that other members of the group can edit your files and that loads singularity.

# .bashrc
# Stuff that's in there already that you need for working with the cluster.
# Add the following two lines
umask 007
module load singularity/3.7.1
## this makes it so singularity can see /gscratch/comdata
export SINGULARITY_BIND="/gscratch/comdata:/gscratch/comdata"