Skip to content
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

pgenlibr: multi-threading? #249

Open
agilly-regn opened this issue Oct 13, 2023 · 1 comment
Open

pgenlibr: multi-threading? #249

agilly-regn opened this issue Oct 13, 2023 · 1 comment

Comments

@agilly-regn
Copy link

Hi,

I am wondering whether, by default, pgenlibr uses multithreading the same way plink2 does?
We are comparing performance between pgenlibr and wrapped plink2 calls in R and are seeing decreased performance in the former. If by default pgenlibr is single-threaded, how can we enable multithreading?

Thanks!

@chrchang
Copy link
Owner

The C++ pgenlib code does not contain any multithreading of its own (unless you count the isolated .pvar loader); it only includes some low-level constructs which are practical for plink2 to build multithreading logic on top of. The pgenlibr R package does not currently contain this sort of multithreading logic.

It is possible to modify pgenlibr's large-matrix-filling functions to imitate what plink2 does, though that would take a significant amount of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants