This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HRR339728 | |
HRR339729 | |
HRR339730 | |
HRR339731 | |
HRR339732 | |
HRR339733 | |
HRR339734 | |
HRR339735 | |
HRR339736 | |
HRR339737 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Plots | |
pyplot() | |
struct Corner end | |
ts=f["timeseries/η"] |> keys | |
ncs=32 | |
cmap_id=:bwr | |
cmap_id=:jet1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup environment | |
using Pkg | |
Pkg.add("PyPlot") | |
using PyPlot | |
Pkg.add("Printf") | |
using Printf | |
Pkg.add("LinearAlgebra") | |
using LinearAlgebra | |
Pkg.add("FFTW") | |
using FFTW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM julia:1.6.1 | |
RUN apt-get update && apt-get install -y hdf5-tools | |
RUN apt-get install -y ffmpeg | |
RUN apt-get install -y git | |
RUN apt-get install -y wget | |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
RUN chmod +x Miniconda3-latest-Linux-x86_64.sh | |
RUN ./Miniconda3-latest-Linux-x86_64.sh -b -p miniconda3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ./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 |
NewerOlder