Getting Started
This page contains the most common steps for setting up and getting started with your SuperCloud account. We provide this page as a convenient reference to get started. To learn how to use your SuperCloud account, complete the Practical HPC course, which contains the material below and more. The course will walk you through these steps in more detail and often with videos to see how it is done. The course is self paced, can be accessed anytime, and is kept up to date. More reference material is available throughout site (some of this material links to those pages).
When your account is first created you will have a small startup allocation. Once you complete the Practical HPC course you can request your account be updated to the standard allocation by sending email to supercloud@mit.edu. Resource allocations are listed on the Systems and Software page.
Logging in Via ssh
The first thing you should do when you get a new account is verify that you can log in. The primary way to access the MIT SuperCloud system is through ssh. Instructions for different operating systems are below. Keep in mind that you will only be able to access the system from ssh from the machine where you generated your ssh key. You will not be able to log in until we have sent you an email stating that we have created your account, which will contain your username.
First, add your ssh key to the web portal. Go to https://txe1-portal.mit.edu/. If you affiliated with MIT or another institution/university select the middle option “MIT Touchstone/InCommon Federation” to log in. Select your institution from the dropdown (be aware they are spelled out, MIT is listed as Massachusetts Institute of Technology, for example), click “Remember my choice” box and then the “Select” button. Then log in with your institution credentials. Once you are logged in, click on the “sshkeys” link and paste your ssh key in the box at the bottom of the page and click “Update Keys”.
For instructions on how to generate ssh keys, retrieve your public key, and additional troubleshooting tips, watch the videos in the “Account Setup and SSH Keys” section in the “Getting Started” module of the Practical HPC course, or see this page.
First open a command line terminal window where you generated your ssh
keys. Enter the following command, where USERNAME
is your username
on the MIT SuperCloud system:
ssh USERNAME@txe1-login.mit.edu
If you generated your keys using PuTTY, open a PuTTY window. In the box
labeled “Host Name” enterUSERNAME@txe1-login.mit.edu
,
whereUSERNAME
is your username on the MIT SuperCloud system. Keep
the ssh box checked (this should be default) and Port should be set to
22. Click “Open” to start the session. You may also need to indicate
your private key on the Connection -> SSH -> Auth page.
Software and Packages
The first thing you may want to do is make sure the system has the software and packages you need. We have installed a lot of software and packages on the system already, even though it may not be immediately obvious that it is there. Review our page on Software and Package Management, paying particular attention to the section on modules and installing packages for the language that you use. If you are ever unsure if we have a particular software, and you cannot find it, please send us an email and ask before you spend a lot of time trying to install it. If we have it, we can point you to it, provide advice on how to use it, and if we don’t have it we can often give pointers on how to install it. Further, if a lot of people request the same software, we may consider adding it to the system image.
Linux Command Line
The MIT SuperCloud runs Linux, so much of what you do on the cluster involves the Linux command line. That doesn’t mean you have to be a Linux expert to use the system! However the more you can get comfortable with the Linux command line and a handful of basic commands, the easier using the system will be. If you are already familiar with Linux, feel free to skip this section, or skim as a refresher.
Most Linux commands deal with directories and files. A
directory, synonymous to a folder, contains files and other
directories. The list of directories that lead to a particular directory
or file is called its path. In Linux, directories on a path are
separated by forward slashes ‘/’. It is also important to note that
everything in Linux is case sensitive, so a file myScript.sh
is not
the same as the file myscript.sh
. When you first log in you are in
you home directory. Your home directory is where you can put all the
code and data you need to run your job. Your home directory is not
accessible to other users, if you need a space to share files with other
users, let us know and we can make a shared group directory for you.
The path to your home directory on SuperCloud is
/home/gridsan/[USERNAME]
, where [USERNAME]
is your username. The
character ~
is also shorthand for your home directory in any Linux
commands.
Anytime after you start typing a Linux command you can press the “Tab” button your your keyboard. This called tab-complete, and will try to autocomplete what you are typing. This is particularly helpful when typing out long directory paths and file names. Pressing “Tab” once will complete if there is a single completion, pressing it twice will list all potential completions. It is a bit difficult to explain in text, but you can try it out yourself and watch the short demonstration here.
Finally, below is a list of Linux Commands. Try them out for yourself at the command line.
- Creating, navigating and viewing directories:
pwd
: tells you the full path of the directory you are currently inmkdir dirname
: creates a directory with the name “dirname”cd dirname
: change directory to directory “dirname”cd ../
: takes you up one level
ls
: lists the files in the directoryls -a
: lists all files including hidden filesls -l
: lists files in “long format” including ownership and date of last updatels -t
: lists files by date stamp, most recently updated file firstls -tr
: lists files by dates stamp in reverse order, most recently updated file is listed last (this is useful if you have a lot of files, you want to know which file you changed last and the list of files results in a scrolling window)ls dirname
: lists the files in the directory “dirname”
- Viewing files
more filename
: shows the first part of a file, hitting the space bar allows you to scroll through the rest of the file, q will cause you to exit out of the file.less filename
: allows you to scroll through the file, forward and backward, using the arrow keys.tail filename
: shows the last 10 lines of a file (useful when you are monitoring a logfile or output file to see that the values are correct)- t
ail <number> filename
: show you the last <number> lines of a file. tail -f filename
: shows you new lines as they are written to the end of the file. Press CMD+C or Control+C to exit. This is helpful to monitor the log file of a batch job.
- t
- Copying, moving, renaming, and deleting files
mv filename dirname
: moves filename to directory dirname.mv filename1 filename2
: moves filename1 to filename2, in essence renames the file. The date and time are not changed by the mv command.
cp filename dirname
: copies to directory dirname.cp filename1 filename2
: copies filename1 to filename2. The date stamp on filename2 will be the date/time that the file was movedcp -r dirname1 dirname2
: copies directory dirname1 and its contents to dirname2.
rm filename
: removes (deletes) the file
Transferring Files to MIT SuperCloud
One of the first tasks is to get your code, data, and any other files you need into your home directory on the system. If your code is in github you can use git commands on the system to clone your repository to your home directory. You can also transfer your files to your home directory from your computer by using the commands scp or rsync. Read the page on Transferring Files to learn how to use these commands and transfer what you need to your home directory.
Testing your Code
At this point you may want to do a test-run of your code. You always want to start small in your test runs, so you should choose a small example that tests the functionality of what you would ultimately like to run on the system. If your test code is serial and runs okay on a moderate personal laptop or desktop you can request an interactive session to run your code in by executing the command:
LLsub -i
After you run this command you will be on a compute node and you can do a test-run of your code. This command will allocate one core to your job. If your test code is multithreaded or parallel, or uses a lot of memory, you should request a full node to be sure you don’t impact other jobs on the system:
LLsub -i full
These commands by no means represent the full use of the system, and most likely won’t be the primary way you run your code. In our tutorial we go over much more on how to submit jobs and will make sure you have the tools you need to get the most out of the MIT SuperCloud.
SuperCloud Downtimes
Note that SuperCloud has Monthly Downtimes which are scheduled for the Third Thursday of each month. During downtimes the system is not available. Downtimes usually last about a day and emails are sent when they are complete. We also send out a reminder email a few days before each downtime.