Quick Start
Categories:
3 minute read
Quick Start
After reading the introduction of USBC, you may have interest in running your first program on it. Steps are as follows: Apply for an account. Log in the Cluster (set up campus VPN service connection if you are off-campus). Upload your program source code. Prepare a SLURM script to run your program. Submit your program running task to the Cluster.
Request for an Account
Usually, only authorized user (faculty and students in Statistics of BNU-HKBU UIC) are allowed to log in the Bayes cluster. You have to request an account before using the Bayes cluster, please fill out the Application Form to request an account.
Runtime
In order to optimize computing resources on the Bayes cluster, the defualt storage for each account is limited to 50GB. The submitted computing tasks will also be queued to be processed by specified compute nodes, and the maximum running time for each task is limited as follows,
Node Name | Maximum runtime |
---|---|
Compute2030005000 | 24 Hours |
Compute2030005001 | 7 Days |
Compute2030005002 | 24 Hours |
Compute2030005003 | 7 Days |
Access to the System
The Bayes cluster can only be accessed from UIC campus by an authorized user. If you are off-campus, you need to use UIC-VPN Service to connect the cluster.
The following instructions, we assume you:
- You have an USBC account (username:
user_name
, password:passwd
) - Are connecting:
- (if on-campus) from the campus wired/wireless network
- (if off-campus) with UIC-VPN Service
SSH
In order to connect to the university computing clusters, you will need an SSH (secure shell) client, a piece of software for establishing secure connections to remote machines. On macOS and Linux, the default Termina application has such a client built-in. No download is necessary. On Windows machines, there is also an SSH-enable client (Windows CMD and Windows Powershell). You can also try PuTTY and MobaXterm.
- Access a command-line tool on your machine:
- Linux open a Terminal window
- macOS open a Terminal window
- Windows open a CMD/Powershell window
- SSH into the cluster:
- type:
ssh user_name@hpc.uicstat.com
- If you are first time connecting to the cluster, you will see a comment about the fingerprint along with the question:
Are you sure you want to continue connecting (yes/no/[fingerprint])?
, please answer yes - Enter your password 1
- type:
- End the SSH connect to the cluster:
- To close the SSH connection, simply type
exit
- To close the SSH connection, simply type
Before using it
Every user have a default folder: ~/user_name/
. Please use the ~/user_name/
folder to store your data, codes and etc.. As the default home path has very limited storage (100MB) and the ~/user_name/
has 50GB. If you need external storage, please connect the maintainer.
File Transfer
After obtaining an account one of the things that you may wish to do is get data transferred to or from the Bayes cluster. Two of the most widely available tools for secure file transfer are SCP (Secure Copy) and SFTP (Secure File Transfer Protocol) which utilize the SSH protocol to implement security. While SCP is a simple, non-interactive command line tool, it is often a more suitable choice when setting up unattended file transfers using scripts. Alternatively, SFTP is an interactive tool which offers features like remote file listing, copying, deleting, directory creation, etc.
For using the SCP:
- Copy file (
name.file
) from local to the cluster:scp /path_of_local/name.file user_name@hpc.uicstat.com:/path_of_remote/name.file
- Get file (
name.file
) from the cluster to local:scp user_name@hpc.uicstat.com:/path_of_remote/name.file /path_of_local/name.file
For using the SFTP:
- Copy file (
fname.file
) from local to the cluster:sftp user_name@hpc.uicstat.com put /path_of_remote/name.file
- Get file (
name.file
) from the cluster to local:sftp user_name@hpc.uicstat.com get /path_of_remote/name.file
-
There are no asterisks or dots to indicate how many characters you’ve typed, so if you think you’ve made a typo, hit Backspace many times and enter the password from scratch. ↩︎
Feedback
Was this page helpful?
Glad to hear it!
Sorry to hear that. Please tell us how we can improve.