Changeset 571 for trunk/softs/test_llsc/scripts
- Timestamp:
- Oct 31, 2013, 5:47:51 PM (11 years ago)
- Location:
- trunk/softs/test_llsc/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/test_llsc/scripts/LLSCTestGenerator/Program.hpp
r546 r571 89 89 res << " tab = (int *) SRL_MEMSPACE_ADDR(memspace);" << endl; 90 90 res << " srl_barrier_t barrier = SRL_GET_BARRIER(barrier);" << endl; 91 res << " srl_barrier_t barrier2 = SRL_GET_BARRIER(barrier2);" << endl; 91 92 res << endl; 92 93 res << " // Initialisation du tableau" << endl; … … 99 100 res << " run0();" << endl; 100 101 res << endl; 101 res << " barrier_wait(barrier );" << endl;102 res << " barrier_wait(barrier2);" << endl; 102 103 res << endl; 103 104 res << " for (i = 0; i < " << tab_size << "; i++) {" << endl; … … 158 159 res << " tab = (int *) SRL_MEMSPACE_ADDR(memspace);" << endl; 159 160 res << " srl_barrier_t barrier = SRL_GET_BARRIER(barrier);" << endl; 161 res << " srl_barrier_t barrier2 = SRL_GET_BARRIER(barrier2);" << endl; 160 162 res << " int thread_id = SRL_GET_CONST(id);" << endl; 161 163 res << endl; … … 174 176 res << " }" << endl; 175 177 res << endl; 176 res << " barrier_wait(barrier );" << endl;178 res << " barrier_wait(barrier2);" << endl; 177 179 res << endl; 178 180 res << " srl_exit();" << endl; -
trunk/softs/test_llsc/scripts/functions.c
r536 r571 7 7 "move $16, %0 \n" 8 8 "giet_lock_try : \n" 9 "lw $2, 0($16) \n" 9 10 "ll $2, 0($16) \n" 10 11 "bnez $2, giet_lock_try \n" -
trunk/softs/test_llsc/scripts/run_simus.py
r536 r571 23 23 nb_locks = 20 24 24 nb_max_incr = 2000 25 nb_procs = 425 nb_procs = 64 26 26 27 27 … … 105 105 # Quit if results obtained by simulation are incorrect 106 106 print "diff", term_filename, os.path.join(data_dir, res_natif) 107 output = subprocess.Popen([ 'diff', term_filename, os.path.join(data_dir, res_natif) ] ).communicate()[0]108 if output != None:107 output = subprocess.Popen([ 'diff', term_filename, os.path.join(data_dir, res_natif) ], stdout = subprocess.PIPE).communicate()[0] 108 if output != "": 109 109 break; 110 110 -
trunk/softs/test_llsc/scripts/test_llsc.py
r546 r571 15 15 cluster_x = int(sys.argv[1]) 16 16 cluster_y = int(sys.argv[2]) 17 memspace_size = int(sys.argv[3]) 17 memspace_size = int(sys.argv[3]) * 4 18 18 19 19 nb_procs = 4 … … 27 27 'table': MemspacePort(), 28 28 'barrier': BarrierPort(), 29 'barrier2': BarrierPort(), 29 30 }, 30 31 impls = [ … … 44 45 'table': MemspacePort(), 45 46 'barrier': BarrierPort(), 47 'barrier2': BarrierPort(), 46 48 'id' : ConstPort(), 47 49 }, … … 57 59 58 60 barrier = Barrier('barrier') 61 barrier2 = Barrier('barrier2') 59 62 memspace = Memspace('memspace', memspace_size) 60 63 … … 66 69 'table' : memspace, 67 70 'barrier' : barrier, 71 'barrier2' : barrier2, 68 72 }, 69 73 defines = {} ), … … 75 79 'table' : memspace, 76 80 'barrier' : barrier, 81 'barrier2' : barrier2, 77 82 'id' : i, 78 83 }, 79 84 defines = {} ), 80 85 81 82 83 84 86 tcg = dsx.Tcg('test_llsc', *tasks) 85 87 86 mpr = Mapper(hd ,tcg)88 mpr = Mapper(hd, tcg) 87 89 88 90 mpr.map('task_llsc_main', cluster = 0, proc = 0, stack = "PSEG_RAM_0") … … 95 97 mpr.map(const, pseg = 'PSEG_RAM_0') 96 98 99 97 100 mpr.map('memspace', pseg = "PSEG_RAM_0") 98 101 mpr.map('barrier', pseg = "PSEG_RAM_0") 102 mpr.map('barrier2', pseg = "PSEG_RAM_0") 99 103 100 104 mpr.map(tcg, code = 'PSEG_RAM_0', data = 'PSEG_RAM_0', ptab = "PSEG_RAM_0") 101 105 mpr.map('system', boot = 'PSEG_RAM_0', kernel = 'PSEG_RAM_0', scheduler = True) 102 106 103 mpr.generate(dsx.Giet(outdir = '.', vaddr_replicated_peri_inc = 0x2000, debug = True))107 mpr.generate(dsx.Giet(outdir = '.', vaddr_replicated_peri_inc = 0x2000, debug = False)) 104 108
Note: See TracChangeset
for help on using the changeset viewer.