Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2094

Generate random numbers in second process

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: TVB-Simulator
    • Labels:
      None

      Description

      Random number generation can account for as much simulation time as the mass model evaluation itself. It can also be done independently of the simulation execution thread.

      This task is to implement and test using a second process for generating random numbers to be consumed by the simulator. The backing numpy array should be allocated once and shared. Events can be used to synchronize.

      There should also be an option to enable/disable this feature. If N cores are available and N simulations are started, this strategy may result in worse performance rather than better. However, if hyperthreading is enabled, it may still be a performance gain, to be tested.

        Attachments

          Activity

            People

            • Assignee:
              marmaduke.woodman Marmaduke Woodman
              Reporter:
              marmaduke.woodman Marmaduke Woodman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified