locked
Parallel run RRS feed

  • Question

  • Hello 

    I wanted to ask if it is possible to run an infer.net application in parallel.

    For example we have several regression problems and we may want to run them at the same time.

    Is that possible? 

    If we have the same regression model and 100 sets of data for which we want to do regression, how can we run the code in parallel? Isn't there a problem when they share the same model? 

    Can anyone put a small sample code here?

    Thank you 

    Thursday, September 29, 2016 6:38 PM

Answers

  • There are 3 options:

    1. Multiple processes.  Create an executable that takes data and runs the model.  Invoke the executable multiple times.

    2. Multiple threads A. Each thread creates its own Variables representing the model and its own InferenceEngine.

    3. Multiple threads B. Each thread creates and runs its own copy of the precompiled algorithm.  See Using a precompiled inference algorithm. 

    • Marked as answer by Capli19 Tuesday, November 1, 2016 11:01 AM
    Sunday, October 2, 2016 9:54 PM
    Owner