Scripts for managing creation of local user accounts that pull auth keys from github and that user github for uid/gid
Can be used, for example, with VM for creating Singularity images for Satori
HRR339728 | |
HRR339729 | |
HRR339730 | |
HRR339731 | |
HRR339732 | |
HRR339733 | |
HRR339734 | |
HRR339735 | |
HRR339736 | |
HRR339737 |
using Pkg | |
Pkg.add("Enzyme") | |
Pkg.add("Oceananigans") | |
using Enzyme | |
using Oceananigans | |
# Lets create a one-dimensional array, with N elements, using Oceananigans data structures | |
# |
#!/bin/bash | |
# | |
# == | |
# == Typical run command for this script | |
# == | |
# $ cat setup_and_test_julia_mpi.slurm | sbatch -p sched_mit_darwin2 -N 2 --exclusive --time=0-12:00:00 | |
# | |
# | |
# == Activate cluster MPI |
#!/bin/bash | |
# sbatch -p sched_mit_darwin2 -N 2 -n 24 --mincpus=12 --cores-per-socket=12 | |
cd /nfs/cnhlab001/cnh/projects/mpi-test/argonne-tests/barrier | |
scontrol -o show node=${SLURM_STEP_NODELIST} | awk '{print $1}' | awk -F= '{print $2}' | awk '{print $1" slots=12"}' > hf | |
module purge | |
module load gcc/9.3.0 | |
module load openmpi/4.0.5 | |
module load ucx/1.9.0 | |
cat > barrier.c <<EOF |
# ./Miniconda3-latest-Linux-x86_64.sh -b -p ./miniconda3 | |
# source miniconda3/bin/activate | |
# conda create -n py38 python=3.8 | |
# conda activate py38 | |
# conda install s3fs | |
# conda install xarray | |
# conda install dask | |
# conda install fsspec | |
# conda install zarr | |
# conda install requests aiohttp |
Scripts for managing creation of local user accounts that pull auth keys from github and that user github for uid/gid
Can be used, for example, with VM for creating Singularity images for Satori
alias julia=~/projects/julia-1.6.1/bin/julia | |
plat="Linux" | |
alias julia=/Applications/Julia-1.6.app/Contents/Resources/julia/bin/julia | |
plat="MacOSX" | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-${plat}-x86_64.sh | |
# To set up MPI may need | |
# /home/ubuntu/projects/julia-1.6.1/bin/julia -e 'using Libdl; p=dlopen("libmpi", RTLD_LAZY; throw_error=false); p=dlopen("libmpi", RTLD_LAZY; throw_error=false); using Pkg; Pkg.build("MPI"; verbose=true)' | |
chmod +x Miniconda3-latest-${plat}-x86_64.sh |
using Plots | |
pyplot() | |
struct Corner end | |
ts=f["timeseries/η"] |> keys | |
ncs=32 | |
cmap_id=:bwr | |
cmap_id=:jet1 |
# Setup environment | |
using Pkg | |
Pkg.add("PyPlot") | |
using PyPlot | |
Pkg.add("Printf") | |
using Printf | |
Pkg.add("LinearAlgebra") | |
using LinearAlgebra | |
Pkg.add("FFTW") | |
using FFTW |