Skip to content

Instantly share code, notes, and snippets.

View willirath's full-sized avatar

Willi Rath willirath

View GitHub Profile
@willirath
willirath / SLURMCluster_vs_Singularity.ipynb
Last active December 11, 2023 14:15
Dask-Jobqueue SLURMCluster with Singularity
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willirath
willirath / 2023-11-21_topo_selection_xoak.ipynb
Created November 21, 2023 14:37
Selecting NEMO topo with Xoak
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willirath
willirath / parcels_NEMO_tracer_vert-axis.ipynb
Last active August 28, 2023 16:04
Parcels C-Grid tracer vert axis supplementary
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env bash
#SBATCH --job-name=high_throughput
#SBATCH --ntasks=13 # number of tasks running at the same time
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=12G
#SBATCH --time=1:00:00 # one hour
#SBATCH --partition=cluster
#SBATCH --output=high_throughput.out
#SBATCH --error=high_throughput.err
#SBATCH --mail-user=myname@example.com
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willirath
willirath / rotating_velocities_on_the_NEMO_grid.ipynb
Created March 14, 2023 07:47
Rotating velocity vectors on a NEMO grid
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willirath
willirath / plot_cape_verde_turtle_trajs_on_a_map.ipynb
Last active November 30, 2022 15:15
Plot cape verde turtles on a map.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willirath
willirath / dask_salloc_srun.md
Last active July 7, 2022 19:07
Dask cluster with salloc and srun

Allocate 3 nodes with 1 task of 24 cpus each:

salloc -N 3 -n 3 -c 24

Within the allocation, make sure you have dask etc (e.g. by activating a virtual or conda env).

Start a scheduler (on the first node) and three workers (one per node):

$ srun -n1 -N1 -r0 dask-scheduler --scheduler-file scheduler.json &>> scheduler.log &