Execute different scripts with GEM5, and output the stats to different directories;
#!/usr/bin/env Python3##A Python script to run all Chai ' s data-partition benchmarks with different partition ratios.##Copyright (C) Huan Chen#ImportOsratios= [ #' 0 ', #' 0.05 ', #' 0.1 ', #' 0.15 ', '0.2', '0.25', '0.3', '0.35', '0.4', '0.45', '0.5', '0.55', '0.6', '0.65', '0.7', '0.75', '0.8', '0.85', '0.9', '0.95', '0.1']defRun (ratio): Cmd_run='/home/hao/gem5-gpu/gem5/build/x86_vi_hammer_gpu/gem5.opt-d/home/hao/gem5-gpu/m5out'+ratio+'/home/hao/gem5-gpu/gem5-gpu/configs/fs_fusion.py--script=/home/hao/gem5-gpu/m5out'+ratio+'/bs.rcs--cpu-type=timing--gpu_core_config=maxwell--num-cpus=8--clusters=8--cores_per_cluster=2--num-dirs=4 --mem-type=ddr4_2400_x64--TOTAL-MEM-SIZE=3GB--access-host-pagetable' Print(Cmd_run) Os.system (cmd_run)defrun_experiments (): forRatioinchRatios:run (ratio) run_experiments ()
Python script runs Linux command