Files for the EAS 6995 course at Cornell University, covering Deep Learning in the Earth Sciences. This repository, in addition to the course work itself, contains the custom matplotlib stylesheet I use in my figures for reproducability.
-
To
sshinto Derecho and Casper, I set up my.ssh/configso that I can bypass having to typessh your_username@derecho.hpc.ucar.eduand just dossh derecho. After establishing a connection, I just need to enter my password and confirm the Duo push notification. I connect to remote servers using VSCode, so that I can have my interactive environment available. -
I created a simple PBS shell script to run a Python file, which looks like
#!/bin/bash
#PBS -N hello_ncar
#PBS -A UCOR0090
#PBS -j oe
#PBS -k eod
#PBS -q casper
#PBS -l walltime=00:05:00
#PBS -l select=1:ncpus=1:mpiprocs=1
### Set temp to scratch
export TMPDIR=${SCRATCH}/${USER}/temp && mkdir -p $TMPDIR
cd /glade/u/home/aidenz/Documents/EAS6995/hello_ncar
### specify desired module environment
module purge
module load conda
conda activate /glade/u/apps/opt/conda/envs/npl-2025a
### Compile & Run MPI Program
python /glade/u/home/aidenz/Documents/EAS6995/hello_ncar/hello.py
IMPORTANT: To run on derecho, change #PBS -q casper to #PBS -q main.
This can be run using qsub <script name>. The status of all active runs can be checked using qstat -u <username> and all ended scripts qstat -x -u <username>.
-
Transfering files can be done using
scporsftp. An example to go from local to derecho would be to runscp local_file <username>@derecho.hpc.ucar.edu:/path/to/hpc/folder. -
To run an interactive job on casper, do
qsub -I -l select=1:ncpus=1:mem=20GB:ngpus=1 -q casper@casper-pbs -l walltime=00:10:00 -A <ACCOUNT #>and for derechoqsub -I -l select=1:ncpus=1:mem=20GB:ngpus=1 -q main@desched1 -l walltime=00:10:00 -A <ACCOUNT #>