Scripts for running CellListsBenchmarks.jl from the command line and plotting the results.
The benchmarks/run.jl file contains the script to run benchmarks from the command line. We can test the commands locally with benchmarks/test.sh. The test script also demonstrates how to use the commands.
First, lets connect to Aalto VPN.
sudo openconnect https://vpn.aalto.fiThen, we can connect to Triton using SSH.
ssh USERNAME@triton.aalto.fiLet's navigate to the work directory and clone the repository.
cd $WRKDIR
git clone https://github.com/jaantollander/cell-lists-benchmarks.gitThen, we can navigate the repository directory and load the Julia module.
cd cell-lists-benchmarks
module load juliaWe need to install CellLists.jl and CellListsBenchmarks.jl manually from GitHub and then activate the environment to install other dependencies from Project.toml. Open the Julia REPL by typing julia the command line.
julia> ]
pkg> add https://github.com/jaantollander/CellLists.jl
pkg> add https://github.com/jaantollander/CellListsBenchmarks.jl
pkg> add ArgParse Dates Random JLDWe should start by changing our working directory to benchmarks and create the output directory.
cd benchmarks
mkdir outputThen, we can submit a batch jobs to the Slurm scheduler with the sbatch command.
sbatch brute_force.sh
sbatch cell_lists.sh
sbatch cell_list_constructor_serial.sh
sbatch cell_list_constructor_threads2.sh
sbatch near_neighbors_serial.sh
sbatch near_neighbors_threads4.shWe can access the benchmark data on Triton by remote mount the work directory to our local computer. We can remote mount our work directory using sshfs.
mkdir ~/triton_work
sshfs USERNAME@triton.aalto.fi:/scratch/work/USERNAME ~/triton_work