Control threads

Hi,
Every time I run Hail, all the threads are called in,so could you please tell me how do I control the threads used by the Hail runtime.
Thanks!

This is controlled by Spark, and you can set it with the master argument to hl.init: https://hail.is/docs/0.2/api.html#hail.init. For example: hl.init(master='local[2]') to use 2 cores.

1 Like