Changeset 1048 for trunk/platforms/tsar_generic_xbar/scripts/run_simus.py
- Timestamp:
- Feb 16, 2017, 3:51:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_xbar/scripts/run_simus.py
r1023 r1048 17 17 bscpu = 0 # bootstrap CPU 18 18 nb_procs = [ 4 ] 19 #nb_procs = [ 1, 4, 8, 16, 32, 64, 128, 256 ]19 #nb_procs = [ 1, 2, 4, 8, 16, 32, 64, 128, 256 ] 20 20 rerun_stats = False 21 use_omp = False22 protocol = ' rwt'21 use_omp = True 22 protocol = 'dhccp' 23 23 cpu_per_cluster = 4 24 24 # mode must be one of 'test' and 'simu' … … 27 27 #apps = [ 'cholesky', 'fft', 'fft_ga', 'filter', 'filt_ga', 'histogram', 'kmeans', 'lu', 'mandel', 'mat_mult', 'pca', 'radix_ga' ] 28 28 #apps = [ 'histogram', 'mandel', 'filter', 'radix_ga', 'fft_ga', 'kmeans' ] 29 #apps = [ 'blackscholes', 'linear_regression', 'string_match', 'swaptions', 'fluidanimate' ]30 apps = [ 'hello', 'taquin', '2048' ] 31 32 33 # Variables which could be changed but ought not to because they are reflected in the create_graphs.py script 29 apps = [ 'fal_sh_2' ] 30 31 #apps = [ 'pca-opt', 'blackscholes', 'fft_ga', 'filt_ga', 'histo-opt', 'kmeans-opt', 'linear_regression', 'lu', 'mandel', 'radix_ga', 'string_match' ] 32 #apps = [ 'pca-opt', 'blackscholes', 'fft_ga', 'filt_ga', 'histo-opt', 'kmeans-opt', 'linear_regression', 'lu', 'mandel', 'mat_mult-opt', 'radix_ga', 'string_match' ] 33 34 34 if mode == 'test': 35 35 data_dir = 'data_test' 36 36 else: 37 37 data_dir = 'data' 38 log_init_name = protocol + '_stdo_' 38 39 # Variables which could be changed but ought not to because they are reflected in the create_graphs.py script 40 41 log_stdo_name = protocol + '_stdo_' 39 42 log_term_name = protocol + '_term_' 40 43 44 41 45 # Global Variables 42 46 43 all_apps = [ '2048', 'blackscholes', 'boot_only', 'cholesky', 'fft', 'fft_ga', 'filter', 'filt_ga', 'fluidanimate', 'hello', 'histogram', 'histo-opt', 'kmeans', 'kmeans-opt', 'linear_regression', 'lu', 'mandel', 'mat_mult', 'mat_mult-opt', 'pca', 'pca-opt', 'radix', 'radix_ga', 'showimg', 'string_match', 'swaptions', 'taquin'] 47 all_modes = ['simu', 'test'] 48 all_apps = [ 'blackscholes', 'boot_only', 'cholesky', 'fal_sh_1', 'fal_sh_2', 'fft', 'fft_ga', 'filter', 'filt_ga', 'fluidanimate', 'hello', 'histogram', 'histo-opt', 'kmeans', 'kmeans-opt', 'linear_regression', 'lu', 'mandel', 'mat_mult', 'mat_mult-opt', 'pca', 'pca-opt', 'radix', 'radix_ga', 'showimg', 'string_match', 'swaptions', ] 44 49 # to come: 'barnes', 'fmm', 'ocean', 'raytrace', 'radiosity', 'waters', 'watern' 45 50 … … 60 65 hard_config_name = os.path.join(almos_path, "hard_config.h") 61 66 bootloader_file_name = os.path.join(almos_path, "bootloader-tsar-mipsel.bin") 62 preloader_file_name = os.path.join(almos_path, "preloader.elf")67 #preloader_file_name = os.path.join(almos_path, "preloader.elf") 63 68 preloader_build_path = os.path.join(almos_path, "build_preloader") 64 69 bootloader_build_path = os.path.join(almos_path, "build_bootloader") … … 227 232 for common_module in common_modules: 228 233 f.write("config.addDescPath(\"%s/%s\")\n" % (tsar_dir, common_module)) 229 #f.write("\n")230 234 231 235 if protocol == "dhccp": … … 243 247 f.write("config.addDescPath(\"%s/%s\")\n" % (arch_dir, specific_module)) 244 248 245 #f.write("\n")246 249 f.close() 247 250 … … 330 333 print "cd", preloader_src_dir 331 334 os.chdir(preloader_src_dir) 332 cmd = ['make', hard_conf_path_set, bscpu_set, ' USE_DT=0', 'BUILD_DIR=%s' % (preloader_build_path)]335 cmd = ['make', hard_conf_path_set, bscpu_set, 'BLOCK_SIZE=4096', 'USE_32BIT=1', 'USE_DT=0', 'BUILD_DIR=%s' % (preloader_build_path)] 333 336 retval = print_and_call(cmd) 334 337 if retval != 0: … … 406 409 elif (app_name == "boot_only"): 407 410 shrc = "exec -p 0 /bin/boot_onl\n" 411 elif (app_name == "fal_sh_1"): 412 shrc = "exec -p 0 /bin/fal_sh_1 -n %(nproc)d -p %(niter)d\n" % dict(nproc = nprocs, niter = 100) 413 elif (app_name == "fal_sh_2"): 414 shrc = "exec -p 0 /bin/fal_sh_2 -n %(nproc)d -p %(niter)d\n" % dict(nproc = nprocs, niter = 100) 408 415 elif (app_name == "filter"): 409 416 shrc = "exec -p 0 /bin/filter -l 128 -c 128 -n %(nproc)d -i /etc/img128.raw\n" % dict(nproc = nprocs) … … 460 467 elif (app_name == "cholesky"): 461 468 shrc = "exec -p 0 /bin/cholesky -n%(nproc)d /etc/tk14.O\n" % dict(nproc = nprocs) 469 elif (app_name == "fal_sh_1"): 470 shrc = "exec -p 0 /bin/fal_sh_1 -n %(nproc)d -p %(niter)d\n" % dict(nproc = nprocs, niter = 10000) 471 elif (app_name == "fal_sh_2"): 472 shrc = "exec -p 0 /bin/fal_sh_2 -n %(nproc)d -p %(niter)d\n" % dict(nproc = nprocs, niter = 10000) 462 473 elif (app_name == "fft"): 463 474 shrc = "exec -p 0 /bin/fft -n%(nproc)d -m18\n" % dict(nproc = nprocs) … … 533 544 print_and_call(cmd) 534 545 535 #gen_sym_links()536 546 gen_soclib_conf() 537 547 compile_almos() … … 580 590 else: 581 591 cmd = ['./simul.x'] 582 filename = os.path.join(scripts_path, data_dir, app + '_' + log_ init_name + str(i))592 filename = os.path.join(scripts_path, data_dir, app + '_' + log_stdo_name + str(i)) 583 593 output = print_and_popen(cmd, filename) 584 594 … … 613 623 else: 614 624 cmd = ['./simul.x', '--reset-counters', start2, '--dump-counters', end] 615 filename = os.path.join(scripts_path, data_dir, app + '_' + log_ init_name + str(i))625 filename = os.path.join(scripts_path, data_dir, app + '_' + log_stdo_name + str(i)) 616 626 output = print_and_popen(cmd, filename) 617 627
Note: See TracChangeset
for help on using the changeset viewer.