Skip to content

docs: improve docs #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# image build artifacts
envs/*.sif

# snakemake
snakemake.log
.snakemake/

# vim swaps
*.swp
*.swo
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
MAX_CORES ?= 10
# by default, we want to run all snakemake rules even if there are failures
OB_CMD=ob run benchmark -k --local --task-timeout "4h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markrobinsonuzh the 4h would be per (isolated) task (rule), we could well reduce it to 10 min or whatever fitting

prepare_apptainer_env:
cd envs && ./build_singularity.sh
run_with_apptainer_backend:
${OB_CMD} -b Clustering_singularity.yml --cores ${MAX_CORES}
mv out out_apptainer
run_with_conda_backend:
${OB_CMD} -b Clustering_conda.yml --cores ${MAX_CORES}
mv out out_conda
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ A clustering example for omnibenchmark
# How to run

1. Install omnibenchmark using [our tutorial](https://omnibenchmark.org/tutorial/)
2. Clone the benchmark definition / this repository with `git clone git@github.com:omnibenchmark/clustering_example.git`
3. Move to the cloned repository `cd clustering_example`
2. Clone the benchmark definition / this repository with `git clone https://github.com/omnibenchmark/clustering_example`
3. Move into the cloned folder: `cd clustering_example`
4. Run locally, somewhat in parallel `ob run benchmark -b CLUSTERING.YAML --local --threads 6`. Choose `Clustering.yml` specification based on whether running it with conda, easybuild, apptainer, etc. [More details about the available backends](https://github.com/omnibenchmark/clustering_example/blob/main/envs/README.md).

# Clustbench attribution
Expand Down
14 changes: 5 additions & 9 deletions envs/build_singularity.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash

sudo singularity build sklearn.sif sklearn_singularity.def

sudo singularity build clustbench.sif clustbench_singularity.def

sudo singularity build r.sif r_singularity.def

sudo singularity build fcps.sif fcps_singularity.def
#!/bin/sh
singularity build sklearn.sif sklearn_singularity.def
singularity build clustbench.sif clustbench_singularity.def
singularity build r.sif r_singularity.def
singularity build fcps.sif fcps_singularity.def