Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmansour
jmansour / weighted residual.ipynb
Created November 29, 2017 05:19
Weighted residual projection failings
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmansour
jmansour / usage_metrics_gpu.py
Last active February 4, 2018 22:09
This script extracts basic gpu usage metrics from data generated by nvidia-smi
#!/usr/bin/env python
# This script simply extracts some metrics from runtime gpu utilisation data
# This data is generated using:
# $ nvidia-smi --query-gpu=index,utilization.gpu,utilization.memory,memory.total,memory.free,memory.used --format=csv,nounits -l 10 > gpu-${SLURM_JOBID}.out
import numpy as np
import sys
try:
@jmansour
jmansour / Movable Circle.ipynb
Created August 25, 2017 04:22
Movable Circle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmansour
jmansour / Dockerfile
Last active August 14, 2019 00:04
Polygon Rotations via Python in Underworld2
FROM underworldcode/underworld2:2.8.0b
COPY PolygonRotations.ipynb $NB_WORK