ocaml-bench / sandmark

A benchmark suite for the OCaml compiler
The Unlicense
82 stars 40 forks source link

Add parallel benchmark: Merge Sort #334

Open Sudha247 opened 2 years ago

Sudha247 commented 2 years ago

Source: https://github.com/ckoparkar/ocaml-benchmarks/blob/master/mergesort.ml

Sandmark has a mergesort (https://github.com/ocaml-bench/sandmark/blob/main/benchmarks/multicore-numerical/mergesort_multicore.ml), would be nice to compare the two versions.

ernestmusong commented 2 years ago

Hi @Sudha247 can I work on this?

Sudha247 commented 2 years ago

Sure, you can go ahead. Please not that the benchmarks in the repo are written for an older version of domainslib and may require updating. Don't hesitate to post here if you have any questions on errors or building the benchmark.

ernestmusong commented 2 years ago

Sure, you can go ahead. Please not that the benchmarks in the repo are written for an older version of domainslib and may require updating. Don't hesitate to post here if you have any questions on errors or building the benchmark.

Thanks @Sudha247 I'm getting started

ernestmusong commented 2 years ago

Hi @Sudha247 I'm stuck filtering and running parallel benchmarks. I've used these commands:-

TAG='"run_in_ci"' make run_config_filtered.json USE_SYS_DUNE_HACK=1 RUN_CONFIG_JSON=multicore_parallel_run_config.json make ocaml-versions/5.0.0+trunk.bench

But it's not filtering them. Look at this:- Done: 2/190 (jobs: 1)

ernestmusong commented 2 years ago

Sure, you can go ahead. Please not that the benchmarks in the repo are written for an older version of domainslib and may require updating. Don't hesitate to post here if you have any questions on errors or building the benchmark.

Hi @Sudha247 some benchmarks did not run successfully. So as you mentioned the need to update, please what should be updated domainslib or the benchmarks?