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

Windows system not support mclapply #26

Open
ghjghjghkimo opened this issue Feb 22, 2024 · 1 comment
Open

Windows system not support mclapply #26

ghjghjghkimo opened this issue Feb 22, 2024 · 1 comment

Comments

@ghjghjghkimo
Copy link

parallel::mclapply(1:spotNum, LRNetworkScore, mc.cores = coreNo)

Windows not support coreNo>1

can add system detection? or use
"
numCores <- detectCores() - 1
cl <- makeCluster(numCores)

LRNetworkScoreList <- parLapply(cl, 1:spotNum, LRNetworkScore)

stopCluster(cl)
"

@beibeiru
Copy link
Collaborator

Hi, @ghjghjghkimo

Thank you very much for your suggestion.
I have added a "system os check" part in the function from SpaCET.
If a user runs SpaCET in Windows OS, coreNo will be set as 1 automatically.

Best,
Beibei

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