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

NMF in parallel mode runs only in two cores. #188

Open
lincj1994 opened this issue Sep 20, 2024 · 1 comment
Open

NMF in parallel mode runs only in two cores. #188

lincj1994 opened this issue Sep 20, 2024 · 1 comment

Comments

@lincj1994
Copy link

lincj1994 commented Sep 20, 2024

Hi @renozao @khughitt .

I ran NMF in parallel mode by setting .options = 'v2p8' in the Ubuntu terminal using R. However, it seems that NMF only uses 2 cores, regardless of the value I assign to p. Has anyone experienced this or know how to make better use of available cores?

Thanks!

> nmf_res = nmf(df, rank = 5:20, method = 'snmf/l', seed = 123, nrun = 100, .options = 'v2p8')
Compute NMF rank= 5  ... NMF algorithm: 'snmf/l'
Multiple runs: 100
# Setting up requested `foreach` environment: try-parallel [par]
# Check host compatibility ... OK
# Registering backend `doParallel` ... OK
# Setting up RNG ... OK
# Using foreach backend: doParallelMC [version 1.0.17]
Mode: parallel (2/16 core(s))
# Check shared memory capability ... NO

@SAADAT-Abu
Copy link

HI.

I am facing the same problem. Additionally, if you observe it is not using your seed but a random seed which is also happening to me when I am trying to run "nmfEstimateRank".

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