Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
minLevel1
maxLevel3
include
outlinefalse
indent
styledefault
excludeSteps to get started in HPC
typelistflat
class
separatorprintablepipe

Getting Started

true

Steps to get started in HPC with ARCC:

1: Get an ARCC HPC account by being added to an HPC project

To access an ARCC HPC resource, you must to be added to a project

...

on that resource whether you’re a UWyo faculty member (Principle Investigator; PI),

...

researcher, or

...

Logging into HPC

...

student.

You must be added as a member of a project on the cluster. (If you’ve received an e-mail from arcc-admin@uwyo.edu, indicating you’ve been added to a project, you have access to the HPC cluster).

  1. If you are a PI, you may request a project be created in which you will automatically be listed as PI and added as a member.

  2. If you are not a PI, a PI may request a project creation on your behalf, then request you be added as a member.

2: Log into HPC

Info

ARCC HPC users should be aware that accessing our HPC means accessing a Linux environment. This will be different from a Windows/Mac PC.

  1. If you’ve received e-mails from arcc-admin (granting you access to a project) you’re ready to connect/login to

...

  1. the cluster!

  1. Note: you need to not be connected to the UWguest wireless network.

  2. Login may be done through a number of different methods but most commonly will be performed through Command Line Interface. Learn how.

  3. Once in a command line interface, type in “ssh <username>@<clustername>.arcc.uwyo.edu” and press enter.

    1. For example: ssh arccuser@beartooth.arcc.uwyo.edu

      1. The first time you log in you will get a message saying the ‘authenticity of the host … can’t be established' and asking if you ‘are sure you want to continue?’.

      2. Enter ‘yes’.

    2. You will then see a Notice to Users and a Two-factor Authentication message, with your mobile device ready, enter your password and accept the Duo Mobile (2FA) challenge when it pops up.

  1. Login through Southpass: ARCC’s OnDemand resource, which makes ARCC’s Beartooth HPC available through your web browser. You will be redirected to the wyologin page, and be prompted for your UWYO login credentials and 2-factor authentication.

Expand
titleSouthpass Login Directions

Insert excerpt
SouthPass
SouthPass
nameConnecting to Southpass
nopaneltrue

  1. If you prefer to log into the cluster over SSH/Command Line, directions are dependent upon the client in which you’re connecting to HPC from. See this page to log in using SSH.

  2. In your command line window, type in the following command: ssh <your_username>@<cluster_name>.arcc.uwyo.edu.

    1. When connected, a bunch of text will scroll by. This will vary depending on the cluster. On Beartooth, for example, there are usage rules, tips, and a summary of your storage utilization across all projects that you are part of.

...

    1. Upon login to the HPC, the command prompt will look something like this: [

...

    1. arccuser@blog1 ~]$

...

  1. This shows your username and which login node you are currently utilizing. The login node (here, btlog1) can, and probably will, change from one session to the next.

  2. The “~” indicates that you are in your home folder on the storage system.

Start Processing

ARCC uses the Slurm Workload Manager to regulate and schedule user submitted jobs and tasks on our HPC systems. If you’re running a job on an ARCC HPC system, Slurm is likely managing resources for it to run.
Read more about processing jobs and using slurm here.

    1. . To learn more about the command prompt and command line, please look through our documentation on Command Line Interface.

3: Start Processing

While processing, you may also need to:

A key principle of any shared computing environment is that resources are shared among users and therefore must be scheduled. Please DO NOT simply log into the HPC and run your computations without requesting or scheduling resources from Slurm through a batch script or Interactive job.

ARCC uses the Slurm Workload Manager to regulate and schedule user submitted jobs on our HPC systems. In order for your job to submit properly to Slurm, you must at minimum specify your account and a time in your submission. There are 2 ways to run your work on an ARCC HPC systems from the Command Line:

Option 1: Run it as an Interactive Job

These are jobs that allow users access to computing nodes where applications can be run in real time. This may be necessary when performing heavy processing of files, or compiling large applications. Interactive jobs can be requested with an salloc command. ARCC has configured the clusters so that interactive jobs provide shell access on compute nodes themselves rather than running on the login node. An example of an salloc request can be expanded below.

Expand
titleInteractive Job Examples and Explanations ( Examples include using: salloc, --account, --time, --partition, --nodes, --cpus-per-task --mem)

The following is the simplest example of a command to start an interactive job. This command has the bare minimum information (account and time) in order to run any job on an ARCC cluster:

Code Block
[cowboyjoe@hpclog1 ~]$ salloc --account=<your project name> --time=01:00

Breaking it down:

  1. [cowboyjoe@hpclog1 ~]$ This is our command prompt and specifies our username (cowboyjoe), the node on which we're currently working from (hpclog1), and the folder in which we're located on the HPC (~ which is short for our /home directory). To learn more about command line in Linux, see our Linux Command Line tutorial here.

  2. salloc is the slurm command to allocate a work session on the cluster

  3. --account is a flag specifying the account/project under which you’re performing your work in the session.

  4. --timeis a flag specifying your “walltime limit” which is how long you will have access to the HPC resources you’re requesting in your work session. At the end of this time, you will be disconnected from your requested resources.

    1. Syntax for time may be in the form of “minutes”, “minutes:seconds”, “hours:minutes:seconds”, “days-hours”, days-hours:minutes”, or “days-hours:minutes:seconds”.

    2. On ARCC HPC, the maximum time you may request for any job is 7 days (job runtime may be extended, upon request).

  5. In this basic example, aside from time requested and account used, all allocated resources are set to the default.

    1. Total CPUs/cores available for this session is set to 1 by default.

    2. Total nodes we have access to in our session is set to 1 by default.

    3. Total memory allocated to the session is 1GB by default.

The next example is a set of commands. The first line is a command to allocate an interactive job requesting specific hardware to perform the computations in our session. The second line runs a python script:

Code Block
 [cowboyjoe@hpclog1 ~]$ salloc --account=arcc --time=40:00 --partition=moran --nodes=1 --cpus-per-task=8 --mem=8G
 python my_job_sequential_steps.py

Breaking it down:

  1. --account is a flag specifying the account/project under which you’re performing your work in the session. In this case, the project’s name is arcc.

  2. --timeis a flag specifying the “walltime limit” for this job, in this case, 40 minutes.

  3. --partition is a flag specifying which partition we want our nodes to come from for this session. You can view the partitions and learn about hardware specific to different partitions by viewing the hardware summary associated with the HPC you’re using. Since our overall computational needs are not significant, we requested the moran partition. These nodes have 16 cores/node and at least 32GB of RAM/node.

  4. --nodes is a flag telling Slurm how many compute nodes we need available to us to run the computations we want to run in the session. In this example, we only ask for 1.

  5. --cpus-per-task is a flag specifying how many cores/cpus we need available to run any single task. By default, ntasks (the number of tasks we run concurrently) is set to 1. Since our salloc command didn't specify --ntasks or any other "tasks-per" related parameters the total cpu for the requested session will be what was requested using the --cpus-per-task flag. In this example, 8 cores x (default) 1 tasks run concurrently = 8 cores total.

  6. --mem is a flag to request the minimum memory/RAM per node that we’ll need for our job. Above we requested 8G, so 8GB. This is under the 32GB of RAM/node for the partition (moran) we asked for in our salloc command, so Slurm accepts this memory request.

    1. The -mem flag should be followed by a unit prefix (G for GB).

    2. If a unit prefix is not specified and only an integer is provided, default prefix is M (megabytes).

  7. In response, Slurm assigns us a single node (node1), with access to a total of 8 cores and 8GB RAM for 40 minutes.

Code Block
salloc: Granted job allocation 1012024
salloc: Nodes node1 are ready for job
  1. In the last line we have been granted our requested resources from the Slurm scheduler and use them to run a python script named ‘my_job_sequential_steps.py'using the default version of python installed on the cluster. If we need more hardware resources than what we asked for in our salloc command, we may get an error (such as a “oom-kill” or out of memory error indicating we didn’t request enough RAM to run our session), or our job will run for an extremely long time (which may mean we didn’t request enough CPU and/or we didn’t parse out our computational work appropriately in the script).

Option 2: Run it as a Batch Job

This means running of one or more tasks on a computer environment. Batch jobs are initiated using scripts or command-line parameters. They run to completion without further human intervention (fire and forget). Batch jobs are submitted to a job scheduler (on ARCC HPC, Slurm) and run on the first available compute node(s).

Expand
titleBatch Script Example and Explanation (Example using --account, --time, --partition, --mem, --job-name, --mail-type, --mail-user)

In the following example we need to create our own batch script which then gets run by Slurm to execute your jobs and any associated tasks. Below is an example of a batch script we created named myfirstjob.sh that then runs our computational work in a python script named my_job_sequential_steps.py:

Code Block
#!/bin/bash
#SBATCH --account=myproject
#SBATCH --time=1-01:00:00
#SBATCH --partition=moran
#SBATCH --mem=8G
#SBATCH --job-name sequential_run
#SBATCH --mail-type=ALL
#SBATCH --mail-user=cowboyjoe@uwyo.edu

python my_job_sequential_steps.py

Breaking it down:

  1. #!/bin/bash is the “shebang” line, telling which HPC to use the bash shell to interpret the script.

  2. --account is a flag specifying the account/project under which you’re performing your work in the session. Here the account we’re using is myproject

  3. --timeis a flag specifying your “walltime limit”. This is how long the script can run on HPC resources once it begins. At the end of this time, the script will end regardless of whether computations are completed. The example sets total time for our job to 1-02:15:45, 1 day, 2 hours, 15 minutes, 45 seconds.

    1. Syntax for time may be in the form of “minutes”, “minutes:seconds”, “hours:minutes:seconds”, “days-hours”, days-hours:minutes”, or “days-hours:minutes:seconds”.

    2. On ARCC HPC, the maximum time you may request for any job is 7 days (job runtime may be extended, upon request).

  4. --partition is a flag specifying which nodes we want to use for our job. You can view the partitions and learn about hardware specific to different partitions by viewing the hardware summary associated with the HPC you’re using. Since our overall computational needs are not significant, we requested to run on the moran partition. These nodes have 16 cores/node and at least 32GB of RAM/node.

  5. --mem is a flag to request the minimum memory/RAM per node that we’ll need for our job. Above we specify 8G, so 8GB. This is under the 32GB of RAM/node for the partition (moran) we asked for in our salloc command, so Slurm accepts this memory request.

    1. The -mem flag should be followed by a unit prefix (G for GB).

    2. If a unit prefix is not specified and only an integer is provided, default prefix is M (megabytes).

  6. --job-name is a flag to specify the name of our job allocation. This will appear with the job id number if we query running jobs on the HPC.

  7. --mail-type is a flag to specify which job events should trigger notification e-mails. Setting it to ALL means notification e-mails will be sent when a job begins, ends, fails, hits time limits, never runs due to problems with the request, or gets requeued.

  8. --mail-user is a flag to specifies the e-mail address to notify when job events occur.

  9. In this basic example, aside from time requested and account used, all allocated resources are set to the default.

    1. Total CPUs/cores available for this session is set to 1 by default.

    2. Total nodes we have access to in our session is set to 1 by default.

    3. Total tasks we will run concurrently is set to 1 by default.

  10. In the last line we run a python script named ‘my_job_sequential_steps.py' using the default version of python installed on the cluster.

Assuming our batch script and the python script are complete and ready to run, we log into the HPC and run it on the cluster to submit our job by navigating to the location of our script, then running it with the following command:

Code Block
sbatch myfirstjob.sh

Since this batch script first makes a request to Slurm to schedule our job and allocate resources before performing any computations, we can submit it on the login node.

To learn more about running parallel jobs, running jobs with GPUs, and avoid more common issues, see our SLURM tutorial.

3a. Get access to software

Option 1: Use The Module System

LMOD is very useful software on a HPC cluster that is leveraged to maintain a number of dynamic user environments and allow users to switch between software stacks and packages on HPC resources. You may check to see if software is available as a module by running a module spider in the following expandable example.

Expand
titleUsing module spider to search for software modules:

Insert excerpt
DOCUMENTAT:The Module System: LMOD
DOCUMENTAT:The Module System: LMOD
nameSearching Modules
nopaneltrue

If you have a software package that is not installed as a module, but you think it would be widely utilize, make a request with us to see if it can be installed. Learn more about using LMOD here.

...

Option 2: Install it Yourself

If your software packages are somewhat research specific, you may install them to your project. ARCC will be providing an additional allocation of 250GB in every MedicineBow /project directory under /project/for software installations. Information on installing software on your own will vary depending on the software. General instructions may be found here.

3b. Transfer Data on/off HPC

Data transfer can be performed between HPC resources using a number of methods

...

. The two easiest ways to transfer data are detailed below. A cumulative list of methods to transfer data on or off of ARCC Resources are detailed here.

...

Option 1: Southpass

Expand
titleSouthpass Directions

Insert excerpt
SouthPass
SouthPass
nameAccessing your Beartooth Data in Southpass
nopaneltrue

Option 2: Globus (For big data transfers)

Expand
titleGlobus Configuration Directions

Insert excerpt
Globus Online
Globus Online
nameSetup and Configuration
nopaneltrue

3c. View Visual Data or

...

Access HPC with Graphics / Visual Interface

If you want to view visual output you’ve created on Beartooth or just need access to a GUI (Graphical User Interface), please use Southpass. Pages have been created for accessing Beartooth

...

and Wildiris in a

...

graphical user interface.