- Log into the XSEDE Single Sign-On (SSO) Hub:
ssh [email protected]
- Log in with your XSEDE username and password
- Note: Must have Duo multi-factor authentication enabled (https://portal.xsede.org/mfa)
- Log into Bridges:
gsissh bridges
- Note the path information:
username@br###
- This will be your "head node" (a randomly assigned login node). This means it'll change each time you log in. This may cause problems with programs like GNU Screen or TMUX (similar to byobu).
- Keeping track of your assigned node will allow us to preserve all of our work if our connection is interrupted.
- Note: Head nodes are not intended for long-term use. Any long-running processes on head nodes will be terminated by the system automatically.
- Note the path information:
- Start TMUX (which also runs GNU Screen):
tmux
- If disconnected from your old node and assigned a different (new) node upon login, re-access your old node and TMUX session:
- From your new Terminal, log into that old node:
ssh br###
- In your new terminal, restart the same version of tmux:
tmux attach
- From your new Terminal, log into that old node:
- If disconnected from your old node and assigned a different (new) node upon login, re-access your old node and TMUX session:
- Load desired modules.
- To see currently loaded modules:
module list
- To see all available modules:
module avail
- To load a specific module:
module load module_name
- Note: By default, Bridges loads the Intel compiler. Keep in mind that this may affect any compiling later (e.g., R libraries).
- This differs from Jetstream, which utilizes the GCC compiler. If needed, you may load a GCC compiler module. If attempting to run something on Bridges that was already running on Jetstream, it is preferable to load the closest version to the one running on the Jetstream instance being emulated.
- To see currently loaded modules:
- Transfer data.
- If transferring local data, use Globus Connect Personal.
- Follow download instructions: https://docs.globus.org/how-to/globus-connect-personal-mac/
- Once the Bridges instance is running, navigate to "Web: Transfer Files" to begin data upload.
- Specify local files on lefthand side:
- Click "Endpoint"
- Click "Administered by me"
- Select files to be uploaded as needed.
- Specify remote location on righthand side:
- Needs to be figured out.
- Specify local files on lefthand side:
- Otherwise, fetch data from open website:
wget "http://your-url-here.com"
- In Bridges, you have multiple work areas.
/home/username
: Head node location. Does not use resources. To access, may use global variable$HOME
instead (e.g.,cd $HOME
)./pylon_number/group_name/username
: Project location. All data should be stored here. To access, may use global variable$SCRATCH
instead (e.g.,cd $SCRATCH
). For more on group names, see https://portal.xsede.org/psc-bridges#account:multiple.
- If transferring local data, use Globus Connect Personal.
- Start processing.
- Start process on compute node:
srun command
- To get a pseudoterminal on a compute node instead run:
srun --pty command
- To get a pseudoterminal on a compute node instead run:
- Start batch on compute node:
sbatch batch_file_name
- Keep in mind the resources you're using.
srun
allows you to be interactive, but it spends compute resources the entire time it's running.sbatch
is not interactive, but it stops the processes immediately upon finishing the scripts.
- Start process on compute node:
- Download Atom: https://atom.io/.
- Install the
atom-commander
package: Packages > Settings View > Install Packages/Themes > search for "atom-commander" > install - Toggle Atom Commander toolbar: Packages > Atom Commander > Toggle Focus
- Press "alt" (after clicking on the Atom Commander toolbar) to bring up options.
- Click "Servers", then "Add".
- Follow the SFTP setup directions from XSEDE: https://portal.xsede.org/psc-bridges#transfer:sftp
- After clicking the Atom Commander toolbar again, press "alt" to bring up options.
- Click "Open".
- Follow the prompts to log into your account.
Because Bridges users do not have root access, we need to install everything locally in order to get it to work.
- Package management with pip (thanks to https://gist.github.com/saurabhshri/46e4069164b87a708b39d947e4527298)
- To install pip for yourself (only needs to be done once):
- Download pip:
wget https://bootstrap.pypa.io/get-pip.py
- Install:
python get-pip.py --user
- Navigate to pip's new directory:
cd ~/.local/bin
- Update your
$PATH
variable:PATH=$PATH:~/.local/bin
- Source new bash for changes to take effect:
source ~/.bashrc
- Download pip:
- To install/update packages with pip:
- For individual packages, run:
pip install package_name --user
- For requirements files, run:
pip install -r requirements.txt --user
- For individual packages, run:
- To install pip for yourself (only needs to be done once):
- Package management with conda
- To install conda for yourself (only needs to be done once):
- Download source:
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
- Install:
bash Anaconda3-5.0.1-Linux-x86_64.sh
- Change the default installation to be in (at least) the
.local
folder:/home/username/.local/anaconda3
- Follow the prompts as needed.
- Download source:
- To install conda for yourself (only needs to be done once):
- To see available software modules: https://portal.xsede.org/software#/
- To load a resource, search for it by name, then click the desired software's name on the target resource.
- For an overview of software modules: https://www.psc.edu/index.php/user-resources/software/module
- For overview on PSC Bridges: https://portal.xsede.org/psc-bridges
- Various cheatsheets:
- Bridges storage info: https://portal.xsede.org/psc-bridges#filespaces
- See TMUX cheatsheet: https://tmuxcheatsheet.com/
- See SLURM cheatsheets: