I wish run my parallel programs as
$ myprogram <args> -n 4 <args>
instead
$ myprogram <args> +RTS -N4 -RTS <args>
the main reason is to normalize the argument format on my programs.
I know it would can do as
$ myprogramwrapper <args> -n 4 <args>
$ cat myprogramwrapper
#!/bin/bash
ARG1=parse args
ARG2=...
NCORES=....
myprogram $ARG1 ... +RTS -N$NCORES
but it's ugly.
Thanks a lot! :)
You can use function setNumCapabilities at runtime.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With