Hpc guide overview¶
Login system¶
With vpn enabled, start a command line tool such as terminal (mac) or cmd (windows): Enter the following command to log in to the server:
1 |
|
1 2 3 4 |
|
yes
you will be prompted for a password: 1 2 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
Warning
The login node itself cannot perform tasks, please do not perform tasks directly on the login node
File storage and work path¶
Generally, you can store your software and execute your commands in two places, your home directory "/mnt/home/\(user" and your working directory "/mnt/scratch/\)user" The data files you store on obs are stored in the read-only directory "/mnt/bucket".
/mnt/home/$user
This is your personal folder where you can keep things like frequently used software and reference data. You can enter this directory with the following commands:
1 |
|
1 |
|
1 |
|
Warning
The files stored here will incur a fee depending on the total size, so it is not recommended to store a large number of files here for a long time.
/mnt/scratch/$user
This is a shared working directory. You can perform tasks or store temporary files here. The files here will be cleaned up regularly. Therefore, please store the data that needs to be stored for a long time in obs in time.
You can enter this directory with the following command
1 |
|
Warning
The cleaning cycle of the files stored is 30 days. After the files are cleaned up, they cannot be recovered. Please transfer important files in time.
/mnt/bucket
This is the address of your organization's obs network disk. You can view and read files stored in obs in this read-only directory.
Submit tasks¶
There are two main ways to submit tasks to the computing node at the login node, ekbatch and ekrun.
ekbatch will help you generate a task script and automatically submit the task for you. The task script and running results will be stored in "/mnt/scratch/$user/ekbatch" Enter the ekbatch
command There will be the following prompts:
1 2 3 |
|
1 2 |
|
1 2 |
|
1 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
The ekrun command is used to perform tasks that require real-time feedback. You only need to add ekrun to your command to submit a task to the supercomputing system with one cpu and two gigabytes of memory and get feedback in real time. Like ekrun your job
;
You can also enter interact anywhere in the command to manually enter information such as the number of memory required and the number of cores to compute. Such as ekrun interact hostname
. Executing the above command will get the following result:
1 2 3 4 5 6 |
|
Inquire your tasks¶
You can query your current task progress by entering ekqueue
. The query result is generally as shown below:
1 2 |
|