Skip to content

threads not being respected and defaulting to 1 #249

Description

@pdimens
  • I have the most recent version of poppr and R
  • I have found a bug
  • I want to request a new feature

Please include a brief description of the problem with a code example:

I have a dataset with which parallelized AMOVA would dramatically speed up runtime. Using threads = 20L for 20 threads (or any value, for that matter) results in only a single thread being used each time when running a script via Rscript.

System

Arch Linux
R 4.4.1
poppr 2.9.3:

This is poppr version 2.9.3. To get started, type package?poppr
OMP parallel support: available
# part of the Rscript
amova_results_neut <- poppr.amova(
  bft_neut,
  hier = ~year/population,
  clonecorrect = FALSE,
  within = TRUE,
  squared = TRUE,
  correction = "quasieuclid",
  algorithm = "farthest_neighbor",
  threads = 20L,
  missing = "loci",
  cutoff = 0.1,
  quiet = FALSE,
  method = "pegas",
  nperm = 50000
)

and the bash top command

   PID     USER  NI    RES    SHR S  %CPU  %MEM     TIME+                        COMMAND
156535  pdimens   0 723056  19884 R 100.0   0.3   8:13.11                              R

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions