i have some R scripts, which only can run in sequential way, cannot be broken into chunks or any parallel library for R or any other language cannot be used.
Is there any way i can distribute the Sequential execution of code to multiple cores or may be multiple servers in network? to speed up execution ?
So let us assume you can run:
And you want to run the script on
arg1
..arg1000
. Then you can use GNU Parallel:This will start one
my_script.R
per CPU thread.If you have multiple servers at your disposal that you can
ssh
to:If this does not answer your question, please elaborate on your situation.