#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --time=01:00:00
#SBATCH --partition=compute_partners
#SBATCH --qos=short
#SBATCH --exclusive
#SBATCH --output=scimlmpi-%j.out

export JULIA_DEPOT_PATH=/path/to/pkgs/.julia
module load julia
unset LD_LIBRARY_PATH
cd /share/$GROUP/$USER/julia_sciml/SciMLBenchmarks.jl

for v in $(compgen -v | grep -E '^(SLURM_|PMI_|PMIX_|OMPI_|I_MPI_|HYDRA_)'); do unset $v; done

julia --project=. -e 'using Weave; tangle("benchmarks/LinearSolveDistributed/StrongScaling.jmd")'
julia --project=benchmarks/LinearSolveDistributed -e 'using Pkg; Pkg.precompile()'
julia --project=benchmarks/LinearSolveDistributed benchmarks/LinearSolveDistributed/StrongScaling.jl