Resource for common modifiers for HPC Load Sharing Facility (LSF): https://hpc-wiki.info/hpc/LSF
Recourse for common Linux commands: https://drive.google.com/file/d/1V4Fv7V1yQopjDt-kTcKWEgDNxo3swsVs/view?usp=sharing
HPC tutorials: https://projects.ncsu.edu/hpc/Documents/hpc_links.php
Reminder, if working off campus you MUST be connected to NCSU SSL VPN.
To login to HPC using a terminal you will need to use your unique NC State Unity ID to adapt the following command:
ssh YourUnityID@login.hpc.ncsu.edu
Once you have submitted this command, you will be prompted to enter your NCSU password. Do not be alarmed when you do not see any characters typed
This will set you in you home space (where you cannot do work because it has basically no storage space). You can confirm your location by using the command 'pwd' to print your working directory
You should get a response of /home/YourUnityID
YourUnityID must be customized to your actual UnityID. Ex: Dr. Sjogren's UnityID is casjogre.
Do not do any work in your home directory or on the head node. Only use our class directory and submit work as a job to the scheduler.
To edit a file that is uploaded to the HPC you can use the command vi:
vi NameOfFile
To use the functionality of vi to edit:
i = edit mode
Ecs = stop edit mode
:wq = save changes
:noh = clear yellow highlighting within the script
Both of these options are written out as being run on your local machine.
Send files from your local machine to the HPC
scp /local_machine_path/filename UnityID@login.hpc.ncsu.edu:/share/bitcpt/Fall2022/UnityID
scp is the command
The next two arguments are the addresses of the file to be sent (FROM) and where it is being sent (TO):
FROM: /local_machine_path/filename is the source path ending in your filename.
On you desktop, the path is often /Users/username/Desktop/ where your username is whatever your PC/Mac device is named
TO: UnityID@login.hpc.ncsu.edu:/share/bitcpt/Fall2022/UnityID is the delivery path ending in the directory you want your file delivered to.
Send files from the HPC to your local machine
scp UnityID@login.hpc.ncsu.edu:/share/bitcpt/Fall2022/UnityID /local_machine_path/filename
scp is the command
The next two arguments are the addresses of the file to be sent (FROM) and where it is being sent (TO):
FROM: TO: UnityID@login.hpc.ncsu.edu:/share/bitcpt/Fall2022/UnityID is the delivery path ending in the directory you want your file delivered to.
TO: /local_machine_path/filename is the source path ending in your filename.
On you desktop, the path is often /Users/username/Desktop/ where your username is whatever your PC/Mac device is named
cd
cp
mv
ls
ll
bsub < job.sh - to submit a job (example: bsub < starindex.sh)
bjobs - to check the status of your jobs
bkill <JOBID> - to kill a specific job (ex: bkill 267358)
more