title: how to start parallel process on specific core?
body: <p>I am building an image analysis workflow that take advantage of the <a href="https://github.com/diku-dk/bfast" rel="nofollow noreferrer">bfast</a> library. what I was doing so far is using the future lib as such:</p>
  <pre><code>with futures.ThreadPoolExecutor() as executor: # use all the available CPU/GPU
      executor.map(partial(bfast_stack, **bfast_params), sub_stack_files)
  </code></pre>
  <p>with <code>sub_stack_files</code> being chunks of my image and <code>bfas_stack</code> the function that run the actual model. The process was extremely slow and talking with the owner of the repository (<a href="https://github.com/diku-dk/bfast/issues/26" rel="nofollow noreferrer">github#26</a>) it seems that <code>bfastMonitor</code> only run on the first GPU (index = 0) if it's not specified.</p>
  <p>So my question is simple can I get the core index number when I run a parralel program in Python so that I can use the appropriate core number when running the bfast model ?</p>
  <p><strong>nota bene</strong><br />
  I am open to other libs</p>