Skip to content

Commit

Permalink
benchmark: add batchtools runner
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Oct 13, 2023
1 parent 8cd1635 commit 40cfb20
Show file tree
Hide file tree
Showing 37 changed files with 2,229 additions and 6,950 deletions.
22 changes: 22 additions & 0 deletions benchmark/batchtools.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
library(batchtools)

unlink("benchmark/registry", recursive = TRUE)
reg = makeRegistry(file.dir = "benchmark/registry", conf.file = NA, packages = "renv", seed = 1)

# reg = makeRegistry(file.dir = "/gscratch/mbecke16/2023-10-13-rush", conf.file = "batchtools.conf.R", packages = "renv", seed = 1)
# unlink("/gscratch/mbecke16/2023-10-13-rush", recursive = TRUE)
# reg = loadRegistry(file.dir = "/gscratch/mbecke16/2023-10-13-rush", writeable = TRUE)

source("benchmark/runner.R")

batchMap(
fun = runner,
renv_project = list("benchmark/snapshot-2023-10-13"),
times = list(1)
)

submitJobs()

loadResult(1)

getLog(1)
3 changes: 3 additions & 0 deletions benchmark/batchtools.conf.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cluster.functions = batchtools::makeClusterFunctionsSlurm("/home/mbecke16/slurm_wyoming.tmpl", array.jobs = FALSE)
default.resources = list(walltime = 28800L, memory = 4000L, ntasks = 1L, ncpus = 32L, nodes = 1L, clusters = "teton")
max.concurrent.jobs = 4000
2,018 changes: 0 additions & 2,018 deletions benchmark/benchmark_files/libs/bootstrap/bootstrap-icons.css

This file was deleted.

Binary file not shown.
10 changes: 0 additions & 10 deletions benchmark/benchmark_files/libs/bootstrap/bootstrap.min.css

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/benchmark_files/libs/bootstrap/bootstrap.min.js

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/benchmark_files/libs/clipboard/clipboard.min.js

This file was deleted.

9 changes: 0 additions & 9 deletions benchmark/benchmark_files/libs/quarto-html/anchor.min.js

This file was deleted.

6 changes: 0 additions & 6 deletions benchmark/benchmark_files/libs/quarto-html/popper.min.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit 40cfb20

Please sign in to comment.