vsoch / forward

Port Forwarding Utility
https://vsoch.github.io/lessons/sherlock-singularity/
MIT License
52 stars 27 forks source link

Added CPUS_PER_TASK and a jupyterlab.sbatch #44

Open emarti opened 1 year ago

emarti commented 1 year ago

Two changes: First, I added jupyterlab.sbatch so we can use jupyter lab notebooks instead of the modern ones. Second, I added a CPUS_PER_TASK parameter in param.sh so we can change the number of CPUs requested.

vsoch commented 1 year ago

This looks great! Two quick checks:

emarti commented 1 year ago
  1. When the memory specified is large (on our nodes bigger than 16 GB) then slurm automatically assigns more CPUs. This change will fix this.
  2. Yes, I have tested it and it works. For the jupyter lab sbatch, jupyterlab must be installed on sherlock. Perhaps further instructions are needed?
vsoch commented 1 year ago

When the memory specified is large (on our nodes bigger than 16 GB) then slurm automatically assigns more CPUs. This change will fix this.

Gotcha. In this case, we don't want to set a default to be 1, because it will break the default behavior. Let's keep the variable unset, and then only add it to the command if it's defined.