- Timestamp:
 - Dec 12, 2014, 4:52:47 PM (11 years ago)
 - File:
 - 
          
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
r904 r906 8 8 import faultyprocs 9 9 import argparse 10 import multiprocessing 10 11 11 12 def run(args): … … 86 87 os.environ["SOCLIB_TTY"] = "FILES" 87 88 88 if (args.x * args.y) <= 4: 89 ompthreads = args.x * args.y 90 elif (args.x * args.y) <= 16: 91 ompthreads = 4 92 else: 93 ompthreads = 8 89 ompthreads = (args.x * args.y) / 4 90 cpucount = multiprocessing.cpu_count() 91 if ompthreads > cpucount: ompthreads = cpucount 94 92 95 93 print "[ run.py ] starting simulation"  
Note: See TracChangeset
          for help on using the changeset viewer.
      