-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bootdht can now run in parallel via the foreach/doMC packages, see th…
…e cores argument. closes #44
- Loading branch information
David Lawrence Miller
committed
Jun 8, 2021
1 parent
a04ce8b
commit 9450d68
Showing
4 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9450d68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure of the situation with the package doMC. Apparently there is not a Windows version on CRAN.
Console capture when invoking
bootdht
in Windows:9450d68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for letting me know. This is frustrating. Okay, I'll have to rethink how to do this in a platform independent way. Probably using
snow
.9450d68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to hunt down a Github version, or any conversations about a Windows version, but came up empty. Apparently this is *nix only? If so, I would have expected comments to that effect somewhere.
9450d68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess Github Actions came to a similar conclusion about
doMC
.9450d68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best I can find is here.
I'll see if I can get
snow
to work this afternoon adn hopefully that's an easier cross-platform solution.9450d68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case it's any use: I think the parallel package is the replacement for snow. I've used the doParallel package to facilitate the use of foreach. Something like
I think doParallel works on multiple platforms, as I think I've used it on isbjorn as well as my windows machine. There's also doRNG if you need to preserve random seeds across parallel instances.
9450d68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.