Table of content:
Refer to the specific user guide for the server (e.g., Bridges-2 User Guide, Delta User Guide)
-
Type in in your command line
ssh <user-name>@bridges2.psc.edu
to connect to the default port 22. -
Type in your passward.
Connecting thru SSH will work but if you want to navigate the file system more easily and modify the code without using terminal editor, you should setup your vscode following the steps below.
-
Download VSCode if you have not already.
-
Once you open the VSCode, click the Extensions button on the left of the screen.
-
Search for "Remote Explorer" and click install.
-
Once you installed the Remote Explorer, you will see the button on the left of the screen.
-
Click it and you may see dropdowns named SSH, SSH TARGETS, or REMOTE.
-
A window will drop from the upper center of the screen as the following:
-
Click the */.ssh/config file and paste the following lines with your information.
Host <host> # you can use any name
HostName bridges2.psc.edu # you have to use the correct name
User <user-name> # your user name
Port 22 # default port
-
You will see an addition dropdown named
<host>
on the left panel of you VSCode where you performed step 5. -
Hover over
<host>
you will see connect to two icons . You can click on either one and you will be prompt to enter you password to the server. -
You are successfully logged in and you can access the server within VSCode as if it is your local desktop. Click the Terminal tab on top of your screen to access the terminal of the server. You will see the same login page as in step 3 of section SSH.
-
To access a folder easily, you need to add the path to Remote Explorer by clicking the blue button on the left panel after step 10:
-
You will be prompt to enter the working direction. You need to paste your working directory for a project here.
Note: the default location is not always the good choice if you have larger files (e.g., the default location on bridges2 is your home dirtory
/jet/home/<user-name>/
which has only 25GB). You can accecss the larger partition the specific server provides (e.g., on bridges2, doecho $PROJECT
in the Terminal you opend in step 11 to find out the path.) -
If you need to add another project, repeat steps 10 to 13.
-
You will have additionals dropdowns under
<host>
on the left side panel, each of which represent a working directory for a project. You may navigate them as if you are working on your local machine.
-
You need to setup an environment for your job. The recomendation is to use Anaconda. Anaconda should be preinstalled and you can use it by loading a module (e.g.,bridges2 and Delta).
-
For example, on bridges2, you can use
module avail
to see the list of avalible modules to load. If you need to load Anaconda, you can domodule load anaconda3/2022.10
based on the avaliability of modules. -
Once you have Anaconda loaded, you can manage your environment by following the Anaconda User Guide.
The interactive session is limited to a short amount of time (e.g,. 8 hours on bridges2) and it is intended to be used to debug your code. Refer to the Bridges2 Guide for bridges2 and Delta Guide for Delta.
Note:
-
There are different type of node you can use, for example, on bridges2 you have:
-
A "Bridges-2 Regular Memory" allocation allows you to use Bridges-2's RM (256 and 512GB) nodes. The RM, RM-shared and RM-512 partitions handle jobs for these nodes.
-
A "Bridges-2 Extreme Memory" allocation allows you to use Bridges-2’s 4TB EM nodes. The EM partition handles jobs for these nodes.
-
A "Bridges-2 GPU" allocation allows you to use Bridges-2's GPU nodes. The GPU and GPU-shared partitions handle jobs for these nodes.
Only <partition>-shared allowed to use part of the resources in a machine (e.g,. 1 gpu from a 8 gpu machine). A sample script to active an interactive session using 1 32GB VRAM v100 gpu on 1 node for 8 hours is below:
interact -p GPU-shared -N 1 --gres=gpu:v100-32:1 -t 8:00:00
-
-
The charging rates and policies on different systems are different. For example, Delta chages more for interactive session.
To run a job for longer time, you need to write a job script. For bridges2 this is an example.
...