csgillespie / benchmarkme

Crowd sourced benchmarking
https://csgillespie.github.io/benchmarkme/
40 stars 13 forks source link

errors benchmarking with multiple cores? #23

Closed cboettig closed 5 years ago

cboettig commented 5 years ago

Hey Colin,

Thanks for this cool package. I'm having trouble whenever I try to benchmark with multiple cores, e.g.:

benchmarkme::benchmark_std(cores = 2)
# Programming benchmarks (5 tests):
starting worker pid=10077 on localhost:11653 at 20:04:34.058
starting worker pid=10106 on localhost:11653 at 20:04:34.473
Error in get(name, envir = envir) : object 'bm_prog_fib' not found

Any ideas?

``` sessionInfo() R version 3.6.0 (2019-04-26) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 9 (stretch) Matrix products: default BLAS/LAPACK: /usr/lib/libopenblasp-r0.2.19.so locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 [4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=C [7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C [10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] Rcpp_1.0.1 lattice_0.20-38 codetools_0.2-16 crayon_1.3.4 [5] packrat_0.5.0 foreach_1.4.4 dplyr_0.8.1 assertthat_0.2.1 [9] grid_3.6.0 R6_2.4.0 magrittr_1.5 httr_1.4.0 [13] pillar_1.4.0 rlang_0.3.4 rstudioapi_0.10 doParallel_1.0.14 [17] benchmarkmeData_1.0.1 Matrix_1.2-17 iterators_1.0.10 tools_3.6.0 [21] glue_1.3.1 benchmarkme_1.0.0 purrr_0.3.2 parallel_3.6.0 [25] compiler_3.6.0 pkgconfig_2.0.2 tidyselect_0.2.5 tibble_2.1.1 ```
csgillespie commented 5 years ago

Thanks for this. If you run

library(benchmarkme)

first, it should work. This should be fixed on the dev branch. I'll update CRAN next week.


https://github.com/csgillespie/benchmarkme/issues/21