- Timestamp:
- Jan 20, 2015, 4:06:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
r919 r926 69 69 os.unlink(dst) 70 70 71 os.symlink(os.path.join(basedir, "soft/config/boot_config.h"), dst) 72 73 # stop after compiling the platform when the compile-only option is activated 74 if args.compileonly == True: 75 exit(0) 71 os.symlink(os.path.join(basedir, "soft/test/config/boot_config.h"), dst) 76 72 77 73 print "[ run.py ] compiling distributed boot procedure" … … 82 78 subprocess.call(command, stdout=logfile, stderr=logfile) 83 79 80 # stop after compiling when the compile-only option is activated 81 if args.compileonly == True: 82 exit(0) 83 84 84 # 5. execute simulator 85 85 os.environ["DISTRIBUTED_BOOT"] = "1" … … 88 88 os.environ["SOCLIB_TTY"] = "FILES" 89 89 90 ompthreads = (args.x * args.y) / 491 cpucount = multiprocessing.cpu_count()92 if ompthreads > cpucount: ompthreads = cpucount93 94 90 print "[ run.py ] starting simulation" 95 91 command = [] 96 92 command.extend([os.path.join(basedir, "simul.x")]) 97 command.extend(["-SOFT", os.path.join(basedir, "soft/build/soft.elf")]) 98 command.extend(["-DISK", "/dev/null"]) 99 command.extend(["-THREADS", str(ompthreads)]) 93 command.extend(["-DSOFT", os.path.join(basedir, "soft/build/soft.elf")]) 94 command.extend(["-SOFT", os.path.join(basedir, 95 "soft/loader/build/loader.elf")]) 96 command.extend(["-DISK", "file.dmg"]) 100 97 101 98 if args.faultyrouter != None: … … 104 101 command.extend(["-FAULTY_ROUTER", str(f[0]), str(f[1]), str(f[2])]) 105 102 103 ompthreads = 1 106 104 if args.debug != None: 107 105 command.extend(["-DEBUG", str(args.debug[0])]); … … 109 107 command.extend(["-PROCID", str(args.debug[2])]); 110 108 command.extend(["-MEMCID", str(args.debug[3])]); 109 111 110 elif os.environ.get('SOCLIB_GDB') == None: 111 ompthreads = (args.x * args.y) / 4 112 cpucount = multiprocessing.cpu_count() 113 if ompthreads > cpucount: 114 ompthreads = cpucount 115 112 116 # the procedure grows linearly with the diameter of the mesh. 113 maxcycles = 400000 + (args.x + args.y) * 20000;117 maxcycles = 1500000 + (args.x + args.y) * 20000 114 118 command.extend(["-NCYCLES", str(maxcycles)]) 119 120 command.extend(["-THREADS", str(ompthreads)]) 115 121 116 122 logfile.write("Execute: {0}\n".format(" ".join(command)))
Note: See TracChangeset
for help on using the changeset viewer.